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.001438/0.001438, allocations: 120 kB / 18.49 MB, free: 4.562 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.001638/0.001638, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.56/1.56, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.1897/0.1897, allocations: 38.51 MB / 349.4 MB, free: 2.664 MB / 270.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.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="cs",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.002232/0.002232, allocations: 76.17 kB / 487.8 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1202, allocations: 62.42 MB / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005622/0.1258, allocations: 3.477 MB / 0.5407 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.1282, allocations: 1.574 MB / 0.5423 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.1284, allocations: 11.94 kB / 0.5423 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008589/0.1292, allocations: 258.9 kB / 0.5425 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006997/0.1299, allocations: 279 kB / 0.5428 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.1303, allocations: 131.6 kB / 0.5429 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004541/0.1308, allocations: 327.1 kB / 0.5432 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.131, allocations: 113.7 kB / 0.5434 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000312/0.1313, allocations: 171.2 kB / 0.5435 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.1316, allocations: 167.4 kB / 0.5437 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.1316, allocations: 16 kB / 0.5437 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005377/0.1321, allocations: 343.2 kB / 0.544 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.1323, allocations: 95.75 kB / 0.5441 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.1324, allocations: 111.5 kB / 0.5442 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.1329, allocations: 354.7 kB / 0.5446 GB, free: 152 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1329, allocations: 3.938 kB / 0.5446 GB, free: 148 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1329, allocations: 0 / 0.5446 GB, free: 148 kB / 398.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.1329, allocations: 4 kB / 0.5446 GB, free: 144 kB / 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.0007422/0.1336, allocations: 0.5138 MB / 0.5451 GB, free: 15.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1337, allocations: 12.03 kB / 0.5451 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.605e-05/0.1337, allocations: 8.188 kB / 0.5451 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.472e-05/0.1337, allocations: 50.73 kB / 0.5451 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000938/0.1347, allocations: 108.7 kB / 0.5452 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.135, allocations: 264.5 kB / 0.5455 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.1351, allocations: 20.12 kB / 0.5455 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.947e-05/0.1351, allocations: 23.94 kB / 0.5455 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005411/0.1356, allocations: 326.2 kB / 0.5458 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1357, allocations: 0 / 0.5458 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.1357, allocations: 8 kB / 0.5459 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.418e-05/0.1357, allocations: 12 kB / 0.5459 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004847/0.1362, allocations: 311.7 kB / 0.5462 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.138, allocations: 1.289 MB / 0.5474 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.1383, allocations: 194.5 kB / 0.5476 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.094e-05/0.1384, allocations: 49.75 kB / 0.5477 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.1384, allocations: 0 / 0.5477 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1384, allocations: 30.56 kB / 0.5477 GB, free: 12.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.1384, allocations: 4 kB / 0.5477 GB, free: 12.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003293/0.1388, allocations: 141.4 kB / 0.5478 GB, free: 12.53 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.1388, allocations: 77.11 kB / 0.5479 GB, free: 12.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002408/0.1391, allocations: 219.8 kB / 0.5481 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.1391, allocations: 25.7 kB / 0.5481 GB, free: 12.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.1392, allocations: 175.9 kB / 0.5483 GB, free: 12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.1393, allocations: 35.69 kB / 0.5483 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.842e-05/0.1393, allocations: 45.56 kB / 0.5484 GB, free: 11.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1395, allocations: 330.8 kB / 0.5487 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.467e-05/0.1396, allocations: 39.97 kB / 0.5487 GB, free: 11.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.1397, allocations: 133.2 kB / 0.5489 GB, free: 11.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.14, allocations: 204.5 kB / 0.549 GB, free: 11.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.14, allocations: 4 kB / 0.5491 GB, free: 11.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003351/0.1403, allocations: 209.3 kB / 0.5493 GB, free: 10.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1403, allocations: 4 kB / 0.5493 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1404, allocations: 4 kB / 0.5493 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.1404, allocations: 11.94 kB / 0.5493 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.1405, allocations: 43.97 kB / 0.5493 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.1406, allocations: 7.938 kB / 0.5493 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.1407, allocations: 23.95 kB / 0.5493 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.1407, allocations: 8 kB / 0.5494 GB, free: 10.81 MB / 414.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.0001553/0.1408, allocations: 165.9 kB / 0.5495 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.451e-05/0.1409, allocations: 19.86 kB / 0.5495 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000231/0.1411, allocations: 115 kB / 0.5496 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1411, allocations: 4 kB / 0.5496 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1411, allocations: 0 / 0.5496 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.1411, allocations: 3.984 kB / 0.5496 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000784/0.1419, allocations: 0.5682 MB / 0.5502 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.1419, allocations: 4 kB / 0.5502 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.354e-05/0.142, allocations: 23.98 kB / 0.5502 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.207e-06/0.142, allocations: 4.25 kB / 0.5502 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.142, allocations: 8 kB / 0.5502 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.142, allocations: 7.938 kB / 0.5502 GB, free: 9.789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.142, allocations: 4 kB / 0.5502 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.1423, allocations: 284 kB / 0.5505 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.475e-05/0.1424, allocations: 104.9 kB / 0.5506 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.1424, allocations: 11.92 kB / 0.5506 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1426, allocations: 8 kB / 0.5506 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.1426, allocations: 11.98 kB / 0.5507 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.307e-06/0.1426, allocations: 4 kB / 0.5507 GB, free: 9.305 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001418/0.1427, allocations: 153.5 kB / 0.5508 GB, free: 9.156 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1427, allocations: 3.938 kB / 0.5508 GB, free: 9.152 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000367/0.1431, allocations: 55.83 kB / 0.5509 GB, free: 9.098 MB / 414.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.0005838/0.1437, allocations: 0.8067 MB / 0.5516 GB, free: 8.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.1439, allocations: 120.4 kB / 0.5518 GB, free: 8.117 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1439, allocations: 4.062 kB / 0.5518 GB, free: 8.113 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.489e-05/0.144, allocations: 39.92 kB / 0.5518 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.1444, allocations: 39.11 kB / 0.5518 GB, free: 8.039 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.147, allocations: 2.324 MB / 0.5541 GB, free: 5.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.1474, allocations: 0.7593 MB / 0.5549 GB, free: 4.695 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.932e-05/0.1475, allocations: 33.52 kB / 0.5549 GB, free: 4.664 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/0.1476, allocations: 55.42 kB / 0.5549 GB, free: 4.609 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1476, allocations: 4 kB / 0.5549 GB, free: 4.605 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.166, allocations: 3.426 MB / 0.5583 GB, free: 1.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.357/8.523, allocations: 16.42 kB / 0.5583 GB, free: 1.266 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.657810987031553]