Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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.001844/0.001844, 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.001464/0.001464, allocations: 213.2 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.529/1.529, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2971/0.2971, allocations: 38.56 MB / 352.5 MB, free: 12.28 MB / 286.1 MB " [Timeout remaining time 179] 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.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",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.002135/0.002135, allocations: 71.88 kB / 492.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3786, allocations: 62.46 MB / 0.5419 GB, free: 224 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005916/0.3846, allocations: 3.43 MB / 0.5453 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.387, allocations: 1.437 MB / 0.5467 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.3871, allocations: 9.438 kB / 0.5467 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008825/0.388, allocations: 252 kB / 0.5469 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006603/0.3887, allocations: 280.1 kB / 0.5472 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.389, allocations: 135.3 kB / 0.5473 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004047/0.3894, allocations: 339.6 kB / 0.5477 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/0.3897, allocations: 115.3 kB / 0.5478 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.39, allocations: 159.3 kB / 0.5479 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002608/0.3903, allocations: 156.1 kB / 0.5481 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.3903, allocations: 14.06 kB / 0.5481 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004815/0.3908, allocations: 273.8 kB / 0.5483 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.3909, allocations: 105.4 kB / 0.5484 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.391, allocations: 85.7 kB / 0.5485 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005099/0.3915, allocations: 363.6 kB / 0.5489 GB, free: 11.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3916, allocations: 0 / 0.5489 GB, free: 11.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3916, allocations: 1.125 kB / 0.5489 GB, free: 11.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3916, allocations: 0 / 0.5489 GB, free: 11.05 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007061/0.3923, allocations: 455.2 kB / 0.5493 GB, free: 10.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3923, allocations: 13.05 kB / 0.5493 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.569e-05/0.3924, allocations: 54.02 kB / 0.5494 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009269/0.3933, allocations: 104.6 kB / 0.5495 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.3938, allocations: 216.5 kB / 0.5497 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.3938, allocations: 19.11 kB / 0.5497 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.3939, allocations: 19.47 kB / 0.5497 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.3944, allocations: 325.9 kB / 0.55 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.3944, allocations: 0 / 0.55 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.3944, allocations: 10.23 kB / 0.55 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-05/0.3945, allocations: 19.83 kB / 0.5501 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004723/0.395, allocations: 306 kB / 0.5503 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.3968, allocations: 1.195 MB / 0.5515 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.3971, allocations: 121.1 kB / 0.5516 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.916e-05/0.3972, allocations: 37.08 kB / 0.5517 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.3972, allocations: 6.188 kB / 0.5517 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.3972, allocations: 36.66 kB / 0.5517 GB, free: 8.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.3972, allocations: 0 / 0.5517 GB, free: 8.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003503/0.3976, allocations: 141 kB / 0.5518 GB, free: 8.652 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.3977, allocations: 79.3 kB / 0.5519 GB, free: 8.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.3979, allocations: 221.7 kB / 0.5521 GB, free: 8.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.398, allocations: 27.08 kB / 0.5522 GB, free: 8.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.3981, allocations: 168.1 kB / 0.5523 GB, free: 8.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.022e-05/0.3982, allocations: 40.94 kB / 0.5524 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-05/0.3982, allocations: 45.28 kB / 0.5524 GB, free: 8.133 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3984, allocations: 327.1 kB / 0.5527 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.68e-05/0.3985, allocations: 42.06 kB / 0.5527 GB, free: 7.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.3987, allocations: 136.1 kB / 0.5529 GB, free: 7.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.3989, allocations: 198.9 kB / 0.5531 GB, free: 7.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3989, allocations: 1.125 kB / 0.5531 GB, free: 7.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003625/0.3993, allocations: 205.9 kB / 0.5533 GB, free: 7.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3993, allocations: 6.781 kB / 0.5533 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3993, allocations: 3.719 kB / 0.5533 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.3994, allocations: 4.844 kB / 0.5533 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.3995, allocations: 52.53 kB / 0.5533 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3995, allocations: 5.531 kB / 0.5533 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.3997, allocations: 23.12 kB / 0.5534 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.3997, allocations: 12.84 kB / 0.5534 GB, free: 7.309 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001601/0.3999, allocations: 156.7 kB / 0.5535 GB, free: 7.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.3999, allocations: 19.12 kB / 0.5535 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002359/0.4001, allocations: 126 kB / 0.5537 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4001, allocations: 2.281 kB / 0.5537 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.4001, allocations: 1.531 kB / 0.5537 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.4002, allocations: 64 / 0.5537 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008996/0.4011, allocations: 0.5368 MB / 0.5542 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.4011, allocations: 10.5 kB / 0.5542 GB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.954e-05/0.4011, allocations: 19.95 kB / 0.5542 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.4011, allocations: 7.781 kB / 0.5542 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.4012, allocations: 7.062 kB / 0.5542 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.4012, allocations: 7.125 kB / 0.5542 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4012, allocations: 3.344 kB / 0.5542 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/0.4015, allocations: 279 kB / 0.5545 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.831e-05/0.4016, allocations: 20.22 kB / 0.5545 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.4016, allocations: 12.48 kB / 0.5545 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.4017, allocations: 11.44 kB / 0.5545 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.4018, allocations: 9.953 kB / 0.5546 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.4018, allocations: 8.656 kB / 0.5546 GB, free: 6.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.4019, allocations: 153.4 kB / 0.5547 GB, free: 6.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4019, allocations: 0 / 0.5547 GB, free: 6.152 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003892/0.4023, allocations: 52.3 kB / 0.5548 GB, free: 6.141 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006256/0.403, allocations: 0.8168 MB / 0.5556 GB, free: 5.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002396/0.4032, allocations: 113.5 kB / 0.5557 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4032, allocations: 1.438 kB / 0.5557 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.02e-05/0.4033, allocations: 49.19 kB / 0.5557 GB, free: 5.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.4037, allocations: 30.61 kB / 0.5557 GB, free: 5.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.4065, allocations: 2.331 MB / 0.558 GB, free: 2.973 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.4067, allocations: 143.9 kB / 0.5582 GB, free: 2.812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.4068, allocations: 37.61 kB / 0.5582 GB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.819e-05/0.4069, allocations: 55.42 kB / 0.5582 GB, free: 2.723 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4069, allocations: 0 / 0.5582 GB, free: 2.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.4386, allocations: 3.919 MB / 0.5621 GB, free: 14.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.67, allocations: 15.23 kB / 0.5621 GB, free: 14.91 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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: 14.689634400885552]