Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007525/0.0007525, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009875/0.00174, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007198/0.0007198, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008674/0.001587, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.917/0.917, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08907/1.006, allocations: 53.66 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 244.6 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.698e-06/1.108e-05, allocations: 2.312 kB / 244.6 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.143/0.143, allocations: 37.91 MB / 282.5 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02491/0.1679, allocations: 11.25 MB / 293.7 MB, free: 15.94 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006748/0.1746, allocations: 369.7 kB / 294.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009641/0.1843, allocations: 9.057 MB / 303.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008559/0.1928, allocations: 3.562 MB / 306.7 MB, free: 9.504 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004826/0.1977, allocations: 2.371 MB / 309.1 MB, free: 7.621 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01298/0.2106, allocations: 13.59 MB / 322.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02216/0.2328, allocations: 17.16 MB / 339.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01506/0.2479, allocations: 11.08 MB / 350.9 MB, free: 264 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009025/0.2569, allocations: 7.513 MB / 358.4 MB, free: 8.73 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003085/0.26, allocations: 1.938 MB / 360.4 MB, free: 6.793 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004397/0.2644, allocations: 2.366 MB / 362.7 MB, free: 4.426 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002201/0.2666, allocations: 3.258 MB / 366 MB, free: 1.16 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00489/0.2714, allocations: 4.274 MB / 370.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.2828, allocations: 11.9 MB / 382.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.312e-05/0.2828, allocations: 0 / 382.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2828, allocations: 0 / 382.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003106/0.2831, allocations: 0 / 382.2 MB, free: 0.9414 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.02051/0.3036, allocations: 17.1 MB / 399.3 MB, free: 15.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.3036, allocations: 11.97 kB / 399.3 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01509/0.3187, allocations: 6.341 MB / 405.6 MB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007609/0.3263, allocations: 4.384 MB / 410 MB, free: 4.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004585/0.3268, allocations: 0.9148 MB / 410.9 MB, free: 3.949 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001343/0.3281, allocations: 1.195 MB / 412.1 MB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/0.3395, allocations: 9.653 MB / 421.8 MB, free: 8.953 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000176/0.3397, allocations: 27.81 kB / 421.8 MB, free: 8.926 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007548/0.3405, allocations: 496 kB / 422.3 MB, free: 8.441 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003971/0.3409, allocations: 0.6421 MB / 422.9 MB, free: 7.797 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007842/0.3487, allocations: 4.676 MB / 427.6 MB, free: 3.094 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1865/0.5352, allocations: 36.81 MB / 464.4 MB, free: 79.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005549/0.5408, allocations: 6.137 MB / 470.5 MB, free: 78.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.5419, allocations: 1.293 MB / 471.8 MB, free: 77.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005009/0.5469, allocations: 4.228 MB / 476 MB, free: 76.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.547, allocations: 69.94 kB / 476.1 MB, free: 76.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=349): time 4.388e-06/0.547, allocations: 0 / 476.1 MB, free: 76.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=389): time 0.01119/0.5582, allocations: 8.325 MB / 484.4 MB, free: 70.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.5582, allocations: 90.47 kB / 484.5 MB, free: 70.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/0.5599, allocations: 3.335 MB / 487.9 MB, free: 68.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.5601, allocations: 85.7 kB / 487.9 MB, free: 67.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.5612, allocations: 5.111 MB / 493.1 MB, free: 63.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004674/0.5617, allocations: 1.409 MB / 494.5 MB, free: 61.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009285/0.5626, allocations: 1.233 MB / 495.7 MB, free: 60.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 2.764e-05/0.5627, allocations: 309.1 kB / 496 MB, free: 60.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000849/0.5635, allocations: 0.8659 MB / 496.9 MB, free: 59.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.5649, allocations: 3.692 MB / 0.4888 GB, free: 54.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002945/0.5678, allocations: 5.221 MB / 0.4939 GB, free: 48.47 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-05/0.5679, allocations: 28 kB / 0.494 GB, free: 48.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.00439/0.5722, allocations: 4.533 MB / 0.4984 GB, free: 44.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.769e-05/0.5723, allocations: 49.72 kB / 0.4984 GB, free: 44.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.637e-05/0.5724, allocations: 101.3 kB / 0.4985 GB, free: 44.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/0.5736, allocations: 0.7991 MB / 0.4993 GB, free: 43.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/0.5763, allocations: 1.674 MB / 0.5009 GB, free: 42.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003577/0.5799, allocations: 6.041 MB / 0.5068 GB, free: 35.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.5816, allocations: 283.6 kB / 0.5071 GB, free: 35.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/0.5819, allocations: 292 kB / 0.5074 GB, free: 35.31 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001619/0.5835, allocations: 0.5806 MB / 0.508 GB, free: 34.83 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004639/0.584, allocations: 419.5 kB / 0.5084 GB, free: 34.42 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.5869, allocations: 2.708 MB / 0.511 GB, free: 31.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.5869, allocations: 40 kB / 0.511 GB, free: 31.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.587, allocations: 8 kB / 0.511 GB, free: 31.67 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/0.587, allocations: 19.92 kB / 0.5111 GB, free: 31.65 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007321/0.5943, allocations: 6.807 MB / 0.5177 GB, free: 25.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.5943, allocations: 4 kB / 0.5177 GB, free: 25.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/0.5959, allocations: 0.7594 MB / 0.5185 GB, free: 24.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007331/0.5967, allocations: 0.573 MB / 0.519 GB, free: 24.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.5978, allocations: 0.6548 MB / 0.5197 GB, free: 23.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.5979, allocations: 79.97 kB / 0.5197 GB, free: 23.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.6009, allocations: 5.658 MB / 0.5253 GB, free: 17.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.6009, allocations: 3.188 kB / 0.5253 GB, free: 17.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003206/0.6042, allocations: 3.272 MB / 0.5285 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003219/0.6045, allocations: 68 kB / 0.5285 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008246/0.6053, allocations: 104 kB / 0.5286 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002714/0.6056, allocations: 277.8 kB / 0.5289 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/0.6057, allocations: 79.97 kB / 0.529 GB, free: 13.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009315/0.6066, allocations: 1.542 MB / 0.5305 GB, free: 12.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.6066, allocations: 0 / 0.5305 GB, free: 12.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003067/0.6097, allocations: 1.863 MB / 0.5323 GB, free: 10.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003437/0.6101, allocations: 251.9 kB / 0.5325 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002972/0.613, allocations: 3.639 MB / 0.5361 GB, free: 7.145 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001394/0.6132, allocations: 125.7 kB / 0.5362 GB, free: 7.012 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.6146, allocations: 1.775 MB / 0.5379 GB, free: 5.301 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.6169, allocations: 1.569 MB / 0.5395 GB, free: 3.781 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06375/0.6807, allocations: 17.36 MB / 0.5564 GB, free: 2.348 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00196/0.6826, allocations: 2.27 MB / 0.5586 GB, free: 52 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002209/0.6848, allocations: 0.8043 MB / 0.5594 GB, free: 15.24 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001856/0.6867, allocations: 1.128 MB / 0.5605 GB, free: 14.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6867, allocations: 0 / 0.5605 GB, free: 14.1 MB / 426.7 MB Notification: Performance of Templates: time 0.2204/0.9071, allocations: 73.9 MB / 0.6327 GB, free: 85.14 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.128666581586003]