Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 112.6 kB / 17.06 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 199 kB / 18 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1875/0.1875, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3591, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006316/0.3655, allocations: 4.931 MB / 0.5084 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003247/0.3688, allocations: 2.478 MB / 0.5108 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000336/0.3692, allocations: 12.66 kB / 0.5109 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.3704, allocations: 427 kB / 0.5113 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.3715, allocations: 0.5091 MB / 0.5118 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007203/0.3722, allocations: 281.9 kB / 0.512 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008383/0.3731, allocations: 0.7463 MB / 0.5128 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.3736, allocations: 330.3 kB / 0.5131 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000476/0.3741, allocations: 328 kB / 0.5134 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004589/0.3746, allocations: 328.7 kB / 0.5137 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.129e-05/0.3746, allocations: 36.69 kB / 0.5137 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.3758, allocations: 0.629 MB / 0.5144 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002483/0.3761, allocations: 202.7 kB / 0.5145 GB, free: 488 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.3763, allocations: 245.2 kB / 0.5148 GB, free: 344 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.3774, allocations: 0.7638 MB / 0.5155 GB, free: 60 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3774, allocations: 0.9844 kB / 0.5155 GB, free: 60 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3774, allocations: 0 / 0.5155 GB, free: 60 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3774, allocations: 1.25 kB / 0.5155 GB, free: 60 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001148/0.3786, allocations: 0.7717 MB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3786, allocations: 17.3 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/0.3787, allocations: 89.77 kB / 0.5164 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.3805, allocations: 201.5 kB / 0.5166 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000652/0.3811, allocations: 366.5 kB / 0.5169 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/0.3812, allocations: 38.73 kB / 0.517 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.3813, allocations: 40.72 kB / 0.517 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.3826, allocations: 0.6252 MB / 0.5176 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.06e-05/0.3827, allocations: 6.203 kB / 0.5176 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/0.3827, allocations: 16.22 kB / 0.5176 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.792e-05/0.3828, allocations: 39.66 kB / 0.5177 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.384, allocations: 0.6083 MB / 0.5183 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003502/0.3875, allocations: 2.247 MB / 0.5205 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007901/0.3883, allocations: 485.8 kB / 0.5209 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004596/0.3888, allocations: 239.3 kB / 0.5212 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.625e-05/0.3889, allocations: 4.406 kB / 0.5212 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.3889, allocations: 46.55 kB / 0.5212 GB, free: 12.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.014e-06/0.3889, allocations: 0 / 0.5212 GB, free: 12.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.004013/0.3929, allocations: 1.709 MB / 0.5229 GB, free: 11.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.393, allocations: 85.84 kB / 0.5229 GB, free: 11.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.3934, allocations: 280.5 kB / 0.5232 GB, free: 11.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.3934, allocations: 35.08 kB / 0.5233 GB, free: 11.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.3936, allocations: 228.2 kB / 0.5235 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.3937, allocations: 150 kB / 0.5236 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/0.3939, allocations: 85.38 kB / 0.5237 GB, free: 11.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.394, allocations: 348 kB / 0.524 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.3943, allocations: 179.5 kB / 0.5242 GB, free: 10.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.3947, allocations: 295.7 kB / 0.5245 GB, free: 10.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007047/0.3954, allocations: 0.5036 MB / 0.525 GB, free: 10.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3954, allocations: 1.156 kB / 0.525 GB, free: 10.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001313/0.3967, allocations: 0.6804 MB / 0.5256 GB, free: 9.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.3968, allocations: 9.5 kB / 0.5256 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.3968, allocations: 4.094 kB / 0.5256 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006499/0.3974, allocations: 180.1 kB / 0.5258 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.3978, allocations: 90.56 kB / 0.5259 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003762/0.4016, allocations: 2.789 MB / 0.5286 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.402, allocations: 16.58 kB / 0.5286 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/0.402, allocations: 22.25 kB / 0.5287 GB, free: 7.898 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003506/0.4024, allocations: 199.4 kB / 0.5289 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.4025, allocations: 41.08 kB / 0.5289 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.4038, allocations: 0.6344 MB / 0.5295 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4039, allocations: 5.953 kB / 0.5295 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4039, allocations: 4.031 kB / 0.5295 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/0.4039, allocations: 7.172 kB / 0.5295 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.4062, allocations: 1.344 MB / 0.5308 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.4062, allocations: 1.312 kB / 0.5308 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003477/0.4065, allocations: 83.53 kB / 0.5309 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004737/0.407, allocations: 144.2 kB / 0.5311 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-05/0.4071, allocations: 8.156 kB / 0.5311 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003156/0.4102, allocations: 2.562 MB / 0.5336 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.4102, allocations: 1.125 kB / 0.5336 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.4117, allocations: 0.962 MB / 0.5345 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.4119, allocations: 104.7 kB / 0.5346 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-05/0.412, allocations: 19.34 kB / 0.5346 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.4122, allocations: 16.88 kB / 0.5346 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.4123, allocations: 35.67 kB / 0.5347 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.225e-05/0.4124, allocations: 14.22 kB / 0.5347 GB, free: 3.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003193/0.4127, allocations: 199.5 kB / 0.5349 GB, free: 3.742 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4127, allocations: 0 / 0.5349 GB, free: 3.742 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009493/0.4137, allocations: 138.4 kB / 0.535 GB, free: 3.727 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002305/0.416, allocations: 1.509 MB / 0.5365 GB, free: 2.605 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.4178, allocations: 0.6616 MB / 0.5371 GB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4178, allocations: 192 / 0.5371 GB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008005/0.4186, allocations: 430.6 kB / 0.5375 GB, free: 1.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.4192, allocations: 67.91 kB / 0.5376 GB, free: 1.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006942/0.4262, allocations: 4.461 MB / 0.542 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005438/0.4267, allocations: 0.8685 MB / 0.5428 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.427, allocations: 71.42 kB / 0.5429 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.4272, allocations: 149.9 kB / 0.543 GB, free: 13.86 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4272, allocations: 0 / 0.543 GB, free: 13.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.4591, allocations: 10.07 MB / 0.5529 GB, free: 5.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.76, allocations: 15.5 kB / 0.5529 GB, free: 5.215 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches