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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 124.2 kB / 17.78 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001895/0.001895, allocations: 189.2 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.176/0.176, allocations: 38.51 MB / 342.5 MB, free: 8.055 MB / 270.1 MB " [Timeout remaining time 180] 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.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: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 66.92 kB / 478.6 MB, free: 33.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1026, allocations: 61.24 MB / 0.5272 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.00541/0.108, allocations: 3.46 MB / 0.5306 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.1104, allocations: 1.543 MB / 0.5321 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1105, allocations: 8 kB / 0.5321 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008429/0.1114, allocations: 262.9 kB / 0.5324 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005927/0.1119, allocations: 275 kB / 0.5326 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.1123, allocations: 135.6 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004292/0.1127, allocations: 331 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.1129, allocations: 105.9 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/0.1132, allocations: 155.4 kB / 0.5333 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.1134, allocations: 163.4 kB / 0.5335 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.133e-05/0.1134, allocations: 19.94 kB / 0.5335 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005297/0.114, allocations: 351.1 kB / 0.5338 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.1141, allocations: 91.77 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.1142, allocations: 107.5 kB / 0.534 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005031/0.1147, allocations: 354.7 kB / 0.5343 GB, free: 10.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1147, allocations: 0 / 0.5343 GB, free: 10.03 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1147, allocations: 3.938 kB / 0.5344 GB, free: 10.03 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1147, allocations: 4 kB / 0.5344 GB, free: 10.02 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.0007604/0.1155, allocations: 0.5138 MB / 0.5349 GB, free: 9.461 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1156, allocations: 15.89 kB / 0.5349 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.128e-05/0.1156, allocations: 58.72 kB / 0.5349 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009144/0.1165, allocations: 108.7 kB / 0.535 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.117, allocations: 268.5 kB / 0.5353 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.117, allocations: 12.38 kB / 0.5353 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.117, allocations: 23.94 kB / 0.5353 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005778/0.1176, allocations: 326.3 kB / 0.5356 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1176, allocations: 0 / 0.5356 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.1176, allocations: 8 kB / 0.5356 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.801e-05/0.1177, allocations: 15.98 kB / 0.5357 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005239/0.1182, allocations: 299.7 kB / 0.5359 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.1201, allocations: 1.293 MB / 0.5372 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.1204, allocations: 190.3 kB / 0.5374 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.78e-05/0.1205, allocations: 45.89 kB / 0.5374 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.1205, allocations: 4 kB / 0.5374 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.1205, allocations: 30.56 kB / 0.5375 GB, free: 6.566 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.1205, allocations: 0 / 0.5375 GB, free: 6.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003254/0.1209, allocations: 133.5 kB / 0.5376 GB, free: 6.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.1209, allocations: 89.05 kB / 0.5377 GB, free: 6.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.1212, allocations: 215.7 kB / 0.5379 GB, free: 6.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.1212, allocations: 29.7 kB / 0.5379 GB, free: 6.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1213, allocations: 176 kB / 0.5381 GB, free: 5.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.1213, allocations: 35.73 kB / 0.5381 GB, free: 5.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.479e-05/0.1214, allocations: 41.66 kB / 0.5382 GB, free: 5.809 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1216, allocations: 326.8 kB / 0.5385 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.696e-05/0.1216, allocations: 48.03 kB / 0.5385 GB, free: 5.434 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.1218, allocations: 136.1 kB / 0.5386 GB, free: 5.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.1221, allocations: 204.5 kB / 0.5388 GB, free: 5.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1221, allocations: 0 / 0.5388 GB, free: 5.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003298/0.1224, allocations: 205.6 kB / 0.539 GB, free: 4.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1224, allocations: 4 kB / 0.539 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1224, allocations: 4 kB / 0.539 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.1224, allocations: 4 kB / 0.539 GB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.1226, allocations: 51.91 kB / 0.5391 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.1226, allocations: 11.94 kB / 0.5391 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.1228, allocations: 23.84 kB / 0.5391 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.1228, allocations: 8 kB / 0.5391 GB, free: 4.699 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.0001579/0.1229, allocations: 153.8 kB / 0.5393 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.322e-05/0.123, allocations: 27.88 kB / 0.5393 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.1232, allocations: 119 kB / 0.5394 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1232, allocations: 7.938 kB / 0.5394 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1232, allocations: 0 / 0.5394 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1232, allocations: 3.938 kB / 0.5394 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.124, allocations: 0.5682 MB / 0.54 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.124, allocations: 4 kB / 0.54 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-05/0.1241, allocations: 19.92 kB / 0.54 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.1241, allocations: 7.938 kB / 0.54 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.1241, allocations: 8.312 kB / 0.54 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.1241, allocations: 11.98 kB / 0.54 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.1241, allocations: 7.938 kB / 0.54 GB, free: 3.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.1244, allocations: 272.2 kB / 0.5403 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.23e-05/0.1245, allocations: 108.9 kB / 0.5404 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.1246, allocations: 11.88 kB / 0.5404 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.1247, allocations: 4 kB / 0.5404 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.1247, allocations: 19.98 kB / 0.5404 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.1247, allocations: 4 kB / 0.5404 GB, free: 3.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001533/0.1249, allocations: 157.5 kB / 0.5406 GB, free: 3.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1249, allocations: 3.938 kB / 0.5406 GB, free: 3.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003561/0.1252, allocations: 51.89 kB / 0.5406 GB, free: 2.98 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.0006292/0.1258, allocations: 0.8182 MB / 0.5414 GB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002354/0.1261, allocations: 108 kB / 0.5416 GB, free: 2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1261, allocations: 0.875 kB / 0.5416 GB, free: 2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.952e-05/0.1262, allocations: 51.84 kB / 0.5416 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.1266, allocations: 34.67 kB / 0.5416 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.1292, allocations: 2.324 MB / 0.5439 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.1297, allocations: 0.7554 MB / 0.5446 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.1298, allocations: 41.45 kB / 0.5447 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.357e-05/0.1299, allocations: 59.42 kB / 0.5447 GB, free: 14.48 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.1299, allocations: 0 / 0.5447 GB, free: 14.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.155, allocations: 3.398 MB / 0.5481 GB, free: 11.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.149, allocations: 4 kB / 0.5481 GB, free: 11.17 MB / 414.1 MB " [Timeout remaining time 652] (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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.920223973225802]