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.00161/0.00161, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001476/0.001476, allocations: 212.2 kB / 24.52 MB, free: 4.074 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.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.1937/0.1937, allocations: 38.53 MB / 353.2 MB, free: 12.5 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.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.00317/0.00317, allocations: 68.19 kB / 493.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3468, allocations: 62.46 MB / 0.5428 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005065/0.3518, allocations: 3.58 MB / 0.5463 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002306/0.3542, allocations: 1.58 MB / 0.5478 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.3543, allocations: 13.56 kB / 0.5478 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000897/0.3552, allocations: 259.6 kB / 0.5481 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006737/0.3558, allocations: 286.4 kB / 0.5483 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.3562, allocations: 119 kB / 0.5484 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004463/0.3566, allocations: 344.4 kB / 0.5488 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000297/0.3569, allocations: 122.8 kB / 0.5489 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003216/0.3572, allocations: 155.5 kB / 0.549 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.3575, allocations: 163.9 kB / 0.5492 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.3575, allocations: 13.66 kB / 0.5492 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000534/0.3581, allocations: 350.7 kB / 0.5495 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.3582, allocations: 101.4 kB / 0.5496 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.3583, allocations: 101.1 kB / 0.5497 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004894/0.3588, allocations: 356.6 kB / 0.5501 GB, free: 10.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3588, allocations: 1 kB / 0.5501 GB, free: 10.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.3588, allocations: 4 kB / 0.5501 GB, free: 10.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.3588, allocations: 0 / 0.5501 GB, free: 10.84 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.0007642/0.3596, allocations: 458.2 kB / 0.5505 GB, free: 10.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3596, allocations: 13.23 kB / 0.5505 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.856e-05/0.3596, allocations: 9.156 kB / 0.5505 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.792e-05/0.3597, allocations: 53.64 kB / 0.5506 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009503/0.3607, allocations: 104.5 kB / 0.5507 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003779/0.361, allocations: 217.6 kB / 0.5509 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.3611, allocations: 16.12 kB / 0.5509 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.3611, allocations: 15.38 kB / 0.5509 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005428/0.3616, allocations: 331.7 kB / 0.5512 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3617, allocations: 0 / 0.5512 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.905e-05/0.3617, allocations: 10.59 kB / 0.5513 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-05/0.3617, allocations: 11.22 kB / 0.5513 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/0.3622, allocations: 308 kB / 0.5516 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.364, allocations: 1.243 MB / 0.5528 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.3644, allocations: 121.1 kB / 0.5529 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.66e-05/0.3644, allocations: 45.61 kB / 0.5529 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.3645, allocations: 1.469 kB / 0.5529 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.3645, allocations: 31.94 kB / 0.553 GB, free: 8.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.492e-06/0.3645, allocations: 4 kB / 0.553 GB, free: 8.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000326/0.3648, allocations: 142.4 kB / 0.5531 GB, free: 8.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.3649, allocations: 78.2 kB / 0.5532 GB, free: 8.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002319/0.3651, allocations: 213.2 kB / 0.5534 GB, free: 8.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.3651, allocations: 29.7 kB / 0.5534 GB, free: 8.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.3653, allocations: 173.1 kB / 0.5536 GB, free: 7.941 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.3653, allocations: 36.16 kB / 0.5536 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.3654, allocations: 44.88 kB / 0.5537 GB, free: 7.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3655, allocations: 336 kB / 0.554 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.3656, allocations: 40.34 kB / 0.554 GB, free: 7.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.3658, allocations: 134.7 kB / 0.5541 GB, free: 7.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.366, allocations: 188.7 kB / 0.5543 GB, free: 7.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.366, allocations: 4.625 kB / 0.5543 GB, free: 7.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003208/0.3663, allocations: 210.3 kB / 0.5545 GB, free: 7.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3664, allocations: 6.531 kB / 0.5545 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.3664, allocations: 8.547 kB / 0.5545 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.3664, allocations: 5.094 kB / 0.5545 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.3665, allocations: 52.47 kB / 0.5546 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.3666, allocations: 11.86 kB / 0.5546 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.3667, allocations: 19.36 kB / 0.5546 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.3667, allocations: 9.406 kB / 0.5546 GB, free: 7.035 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.0001513/0.3668, allocations: 160.8 kB / 0.5548 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.459e-05/0.3669, allocations: 19.61 kB / 0.5548 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002301/0.3671, allocations: 125.7 kB / 0.5549 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3671, allocations: 1.094 kB / 0.5549 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3671, allocations: 5.219 kB / 0.5549 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.3671, allocations: 1.125 kB / 0.5549 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007784/0.3679, allocations: 0.5403 MB / 0.5555 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3679, allocations: 2.375 kB / 0.5555 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.674e-05/0.368, allocations: 18.64 kB / 0.5555 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.368, allocations: 7.281 kB / 0.5555 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.368, allocations: 12.59 kB / 0.5555 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.368, allocations: 7.25 kB / 0.5555 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.368, allocations: 2.312 kB / 0.5555 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.3683, allocations: 283.2 kB / 0.5558 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.3684, allocations: 28.59 kB / 0.5558 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.3684, allocations: 7.234 kB / 0.5558 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3685, allocations: 7.219 kB / 0.5558 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.52e-05/0.3685, allocations: 9.516 kB / 0.5558 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.3686, allocations: 9.469 kB / 0.5558 GB, free: 5.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001436/0.3687, allocations: 151.9 kB / 0.556 GB, free: 5.863 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3687, allocations: 0 / 0.556 GB, free: 5.863 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003538/0.3691, allocations: 56.97 kB / 0.556 GB, free: 5.848 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.0006219/0.3697, allocations: 0.8114 MB / 0.5568 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002403/0.3699, allocations: 114.4 kB / 0.5569 GB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3699, allocations: 0 / 0.5569 GB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.684e-05/0.37, allocations: 50.22 kB / 0.557 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.3706, allocations: 34.08 kB / 0.557 GB, free: 4.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.3734, allocations: 2.33 MB / 0.5593 GB, free: 2.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.3738, allocations: 0.7515 MB / 0.56 GB, free: 1.973 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.3739, allocations: 37.61 kB / 0.5601 GB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.374, allocations: 55.42 kB / 0.5601 GB, free: 1.883 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.374, allocations: 0 / 0.5601 GB, free: 1.883 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02333/0.3974, allocations: 3.643 MB / 0.5637 GB, free: 14.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.69, allocations: 7.125 kB / 0.5637 GB, free: 14.36 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.701280257024337]