Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.001359/0.001359, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.001609/0.001609, allocations: 211.3 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.576/1.576, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1874/0.1874, allocations: 38.55 MB / 352.5 MB, free: 12.33 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) 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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003034/0.003034, allocations: 59.91 kB / 492.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3555, allocations: 62.47 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005619/0.3611, allocations: 3.314 MB / 0.5452 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.3631, allocations: 1.165 MB / 0.5463 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.3632, allocations: 13.41 kB / 0.5463 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006633/0.3639, allocations: 159 kB / 0.5465 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004914/0.3644, allocations: 179.4 kB / 0.5466 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.3647, allocations: 130.3 kB / 0.5468 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.3651, allocations: 288.8 kB / 0.547 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/0.3654, allocations: 119.7 kB / 0.5472 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.3657, allocations: 123.9 kB / 0.5473 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.3659, allocations: 114.3 kB / 0.5474 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.366, allocations: 14.09 kB / 0.5474 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003865/0.3664, allocations: 191.6 kB / 0.5476 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.3665, allocations: 59.55 kB / 0.5476 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.3666, allocations: 80.62 kB / 0.5477 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.3671, allocations: 292 kB / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3671, allocations: 1.094 kB / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3671, allocations: 0 / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.3671, allocations: 0 / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007209/0.3678, allocations: 432.8 kB / 0.5484 GB, free: 11.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3678, allocations: 18.09 kB / 0.5484 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.083e-05/0.3679, allocations: 60.47 kB / 0.5485 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007385/0.3686, allocations: 77.19 kB / 0.5486 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.369, allocations: 198.1 kB / 0.5487 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.369, allocations: 11.23 kB / 0.5488 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.603e-05/0.3691, allocations: 22.78 kB / 0.5488 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004512/0.3695, allocations: 264.2 kB / 0.549 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.3695, allocations: 1.375 kB / 0.549 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.3696, allocations: 10.75 kB / 0.549 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.3696, allocations: 14.03 kB / 0.5491 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003626/0.37, allocations: 224.2 kB / 0.5493 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.3717, allocations: 1.11 MB / 0.5504 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.3719, allocations: 130.8 kB / 0.5505 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.856e-05/0.372, allocations: 41.08 kB / 0.5505 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.372, allocations: 5.375 kB / 0.5505 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.3721, allocations: 36.62 kB / 0.5506 GB, free: 9.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.813e-06/0.3721, allocations: 4 kB / 0.5506 GB, free: 9.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004032/0.3725, allocations: 166.8 kB / 0.5507 GB, free: 9.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.691e-05/0.3726, allocations: 79.3 kB / 0.5508 GB, free: 9.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/0.3728, allocations: 214.4 kB / 0.551 GB, free: 9.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.3728, allocations: 29.64 kB / 0.551 GB, free: 9.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.373, allocations: 167.6 kB / 0.5512 GB, free: 8.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.373, allocations: 40.95 kB / 0.5512 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.48e-05/0.3731, allocations: 43.8 kB / 0.5513 GB, free: 8.898 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3733, allocations: 328.7 kB / 0.5516 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.408e-05/0.3734, allocations: 42.33 kB / 0.5516 GB, free: 8.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.3735, allocations: 127 kB / 0.5517 GB, free: 8.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/0.3738, allocations: 179.6 kB / 0.5519 GB, free: 8.277 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3738, allocations: 5.156 kB / 0.5519 GB, free: 8.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003485/0.3741, allocations: 203.1 kB / 0.5521 GB, free: 8.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3742, allocations: 6.688 kB / 0.5521 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3742, allocations: 2.281 kB / 0.5521 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.3742, allocations: 8.469 kB / 0.5521 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.3745, allocations: 53.47 kB / 0.5522 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.3757, allocations: 1.313 MB / 0.5535 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.3759, allocations: 17.59 kB / 0.5535 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.3759, allocations: 12.69 kB / 0.5535 GB, free: 6.777 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001744/0.3761, allocations: 147.4 kB / 0.5536 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.605e-05/0.3761, allocations: 16.59 kB / 0.5536 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.3764, allocations: 150.8 kB / 0.5538 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3764, allocations: 5.953 kB / 0.5538 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3764, allocations: 5.562 kB / 0.5538 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3764, allocations: 0 / 0.5538 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007362/0.3771, allocations: 451.5 kB / 0.5542 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3771, allocations: 1.25 kB / 0.5542 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.3773, allocations: 35.69 kB / 0.5543 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.3773, allocations: 1.188 kB / 0.5543 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3773, allocations: 6.938 kB / 0.5543 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.3784, allocations: 1.325 MB / 0.5556 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3784, allocations: 5.266 kB / 0.5556 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003762/0.3788, allocations: 299.5 kB / 0.5559 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.3788, allocations: 18.66 kB / 0.5559 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.3788, allocations: 6.25 kB / 0.5559 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-05/0.3789, allocations: 5.125 kB / 0.5559 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.429e-05/0.379, allocations: 12.77 kB / 0.5559 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.379, allocations: 11.55 kB / 0.5559 GB, free: 4.473 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.3791, allocations: 149.6 kB / 0.5561 GB, free: 4.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3791, allocations: 0 / 0.5561 GB, free: 4.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003589/0.3795, allocations: 47.05 kB / 0.5561 GB, free: 4.355 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007203/0.3802, allocations: 0.8472 MB / 0.5569 GB, free: 3.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003454/0.3806, allocations: 122.2 kB / 0.557 GB, free: 3.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3806, allocations: 4.25 kB / 0.557 GB, free: 3.523 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.3807, allocations: 59 kB / 0.5571 GB, free: 3.496 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.3811, allocations: 44.12 kB / 0.5571 GB, free: 3.473 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.384, allocations: 2.351 MB / 0.5594 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.3842, allocations: 131.6 kB / 0.5596 GB, free: 1.367 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3843, allocations: 37.62 kB / 0.5596 GB, free: 1.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3844, allocations: 51.42 kB / 0.5597 GB, free: 1.277 MB / 398.1 MB Notification: Performance of SimCode: time 5.72e-07/0.3844, allocations: 0 / 0.5597 GB, free: 1.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03252/0.4169, allocations: 4.335 MB / 0.5639 GB, free: 13.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.14, allocations: 6.844 kB / 0.5639 GB, free: 13.07 MB / 414.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.143203876912594]