Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.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.001311/0.001311, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001701/0.001701, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.186/0.186, allocations: 38.53 MB / 352.5 MB, free: 12.54 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.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",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.003279/0.003279, allocations: 70.39 kB / 492.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3242, allocations: 62.47 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006078/0.3303, allocations: 3.763 MB / 0.5457 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003482/0.3337, allocations: 1.992 MB / 0.5476 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002963/0.334, allocations: 18.62 kB / 0.5476 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.3351, allocations: 233.8 kB / 0.5479 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009372/0.336, allocations: 315.2 kB / 0.5482 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006626/0.3367, allocations: 174 kB / 0.5483 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007578/0.3375, allocations: 456.7 kB / 0.5488 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004009/0.3379, allocations: 158 kB / 0.5489 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004954/0.3384, allocations: 215.1 kB / 0.5491 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003289/0.3387, allocations: 183 kB / 0.5493 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.3387, allocations: 28.31 kB / 0.5493 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000704/0.3394, allocations: 388 kB / 0.5497 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.3396, allocations: 116.4 kB / 0.5498 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.3398, allocations: 152.6 kB / 0.5499 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009987/0.3408, allocations: 0.571 MB / 0.5505 GB, free: 9.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3408, allocations: 0 / 0.5505 GB, free: 9.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3408, allocations: 5.469 kB / 0.5505 GB, free: 9.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3408, allocations: 0 / 0.5505 GB, free: 9.988 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001211/0.342, allocations: 0.5819 MB / 0.5511 GB, free: 9.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.3421, allocations: 14.17 kB / 0.5511 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.211e-05/0.3422, allocations: 53.89 kB / 0.5511 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009578/0.3431, allocations: 98.75 kB / 0.5512 GB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006373/0.3438, allocations: 324.5 kB / 0.5515 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.3438, allocations: 16.11 kB / 0.5516 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.3438, allocations: 20.06 kB / 0.5516 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006975/0.3445, allocations: 361 kB / 0.5519 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3446, allocations: 1.188 kB / 0.5519 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.785e-05/0.3446, allocations: 10 kB / 0.5519 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.225e-05/0.3446, allocations: 12.25 kB / 0.5519 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007795/0.3454, allocations: 390.7 kB / 0.5523 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.3477, allocations: 1.511 MB / 0.5538 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006738/0.3484, allocations: 302.2 kB / 0.5541 GB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.3486, allocations: 96.98 kB / 0.5542 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.3487, allocations: 5.906 kB / 0.5542 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004203/0.3491, allocations: 203.9 kB / 0.5544 GB, free: 6.902 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.505e-06/0.3491, allocations: 0 / 0.5544 GB, free: 6.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009011/0.35, allocations: 387.3 kB / 0.5547 GB, free: 6.715 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001687/0.3502, allocations: 135.7 kB / 0.5549 GB, free: 6.555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.3506, allocations: 312.7 kB / 0.5552 GB, free: 6.348 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.3506, allocations: 33.11 kB / 0.5552 GB, free: 6.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.3508, allocations: 184.6 kB / 0.5554 GB, free: 6.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.973e-05/0.3508, allocations: 88.52 kB / 0.5555 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.3509, allocations: 56.8 kB / 0.5555 GB, free: 6.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3511, allocations: 342.4 kB / 0.5558 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.3513, allocations: 93.23 kB / 0.5559 GB, free: 5.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.3516, allocations: 190.3 kB / 0.5561 GB, free: 5.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.352, allocations: 290.5 kB / 0.5564 GB, free: 5.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.352, allocations: 1.281 kB / 0.5564 GB, free: 5.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000621/0.3526, allocations: 364.8 kB / 0.5567 GB, free: 4.996 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.3526, allocations: 15.06 kB / 0.5568 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.353e-05/0.3527, allocations: 4 kB / 0.5568 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.124e-05/0.3527, allocations: 4 kB / 0.5568 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.353, allocations: 63.91 kB / 0.5568 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/0.353, allocations: 11.88 kB / 0.5568 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.3532, allocations: 28.09 kB / 0.5569 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.3532, allocations: 19.98 kB / 0.5569 GB, free: 4.855 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0002105/0.3534, allocations: 176.3 kB / 0.557 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.3535, allocations: 27.81 kB / 0.5571 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006696/0.3542, allocations: 342.3 kB / 0.5574 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.3542, allocations: 7.984 kB / 0.5574 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/0.3542, allocations: 7.922 kB / 0.5574 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3542, allocations: 8 kB / 0.5574 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.3553, allocations: 0.7236 MB / 0.5581 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3553, allocations: 0 / 0.5581 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.3555, allocations: 39.92 kB / 0.5582 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.3555, allocations: 7.938 kB / 0.5582 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.3555, allocations: 11.98 kB / 0.5582 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3555, allocations: 0 / 0.5582 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3555, allocations: 3.984 kB / 0.5582 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006266/0.3561, allocations: 408.9 kB / 0.5586 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.3562, allocations: 35.67 kB / 0.5586 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.217e-05/0.3563, allocations: 16 kB / 0.5586 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.3564, allocations: 4 kB / 0.5586 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.187e-05/0.3565, allocations: 19.91 kB / 0.5587 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.3565, allocations: 15.98 kB / 0.5587 GB, free: 2.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002499/0.3567, allocations: 219.1 kB / 0.5589 GB, free: 2.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3567, allocations: 4 kB / 0.5589 GB, free: 2.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005415/0.3573, allocations: 99.75 kB / 0.559 GB, free: 2.621 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00278/0.3601, allocations: 1.347 MB / 0.5603 GB, free: 1.438 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005263/0.3606, allocations: 242.8 kB / 0.5605 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3606, allocations: 0 / 0.5605 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.3608, allocations: 111.8 kB / 0.5606 GB, free: 1.094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.3614, allocations: 64.27 kB / 0.5607 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004644/0.366, allocations: 3.111 MB / 0.5637 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.3665, allocations: 0.7953 MB / 0.5645 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002526/0.3668, allocations: 86.88 kB / 0.5646 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.367, allocations: 107.4 kB / 0.5647 GB, free: 12.75 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.367, allocations: 0 / 0.5647 GB, free: 12.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03655/0.4036, allocations: 7.756 MB / 0.5723 GB, free: 5.047 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.27, allocations: 14.64 kB / 0.5723 GB, free: 5.035 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.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: 15.144795045023784]