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.0008706/0.0008706, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008578/0.0008578, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8703/0.8703, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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.2083/0.2083, allocations: 29.41 MB / 290.1 MB, free: 2.445 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.415e-06/2.415e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.244e-05/2.486e-05, allocations: 6.781 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003837/0.003862, allocations: 3.593 MB / 433.8 MB, free: 9.977 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.005634, allocations: 1.835 MB / 435.6 MB, free: 8.133 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.005773, allocations: 11.88 kB / 435.6 MB, free: 8.121 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005889/0.006362, allocations: 230.8 kB / 435.9 MB, free: 7.895 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004976/0.00686, allocations: 310.4 kB / 436.2 MB, free: 7.59 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.00718, allocations: 183.2 kB / 436.4 MB, free: 7.41 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003758/0.007556, allocations: 470.7 kB / 436.8 MB, free: 6.949 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002604/0.007816, allocations: 162 kB / 437 MB, free: 6.789 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003642/0.00818, allocations: 263.3 kB / 437.2 MB, free: 6.531 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.008376, allocations: 171.4 kB / 437.4 MB, free: 6.363 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.008407, allocations: 32 kB / 437.4 MB, free: 6.332 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003809/0.008788, allocations: 331 kB / 437.8 MB, free: 6.008 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.008892, allocations: 131.6 kB / 437.9 MB, free: 5.879 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.087e-05/0.008973, allocations: 107.8 kB / 438 MB, free: 5.773 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005679/0.009541, allocations: 0.5959 MB / 438.6 MB, free: 5.176 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.009544, allocations: 0 / 438.6 MB, free: 5.176 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.009545, allocations: 0 / 438.6 MB, free: 5.176 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.00955, allocations: 0 / 438.6 MB, free: 5.176 MB / 410.7 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.0006871/0.01024, allocations: 0.5788 MB / 439.2 MB, free: 4.562 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.01027, allocations: 15.98 kB / 439.2 MB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.6e-05/0.01032, allocations: 58.72 kB / 439.2 MB, free: 4.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004222/0.01074, allocations: 88.62 kB / 439.3 MB, free: 4.395 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.01107, allocations: 292.6 kB / 439.6 MB, free: 4.086 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.01109, allocations: 12.75 kB / 439.6 MB, free: 4.074 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.01111, allocations: 16.38 kB / 439.6 MB, free: 4.059 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004405/0.01155, allocations: 407.1 kB / 440 MB, free: 3.625 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.01156, allocations: 0 / 440 MB, free: 3.625 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.01158, allocations: 11.94 kB / 440 MB, free: 3.613 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.01161, allocations: 20.34 kB / 440.1 MB, free: 3.594 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004122/0.01202, allocations: 440.6 kB / 440.5 MB, free: 3.164 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.01332, allocations: 1.403 MB / 441.9 MB, free: 1.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.01376, allocations: 337.1 kB / 442.2 MB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.01387, allocations: 109.7 kB / 442.3 MB, free: 1.219 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.01389, allocations: 11.98 kB / 442.3 MB, free: 1.207 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002211/0.01411, allocations: 205.7 kB / 442.5 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.102e-06/0.01411, allocations: 0 / 442.5 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005073/0.01462, allocations: 432 kB / 443 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.01467, allocations: 136.5 kB / 443.1 MB, free: 404 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.01492, allocations: 348.5 kB / 443.4 MB, free: 48 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.01494, allocations: 37.7 kB / 443.5 MB, free: 4 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1465/0.1614, allocations: 178.5 kB / 443.7 MB, free: 54.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.161e-05/0.1615, allocations: 88.05 kB / 443.7 MB, free: 54.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-05/0.1616, allocations: 57.89 kB / 443.8 MB, free: 54.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.912e-05/0.1616, allocations: 342.6 kB / 444.1 MB, free: 54.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.1618, allocations: 107.9 kB / 444.2 MB, free: 54.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.1619, allocations: 224.6 kB / 444.5 MB, free: 54.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.1622, allocations: 331.3 kB / 444.8 MB, free: 53.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1622, allocations: 1.625 kB / 444.8 MB, free: 53.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003614/0.1625, allocations: 397.2 kB / 445.2 MB, free: 53.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1625, allocations: 7 kB / 445.2 MB, free: 53.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1625, allocations: 2.594 kB / 445.2 MB, free: 53.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.1626, allocations: 5.25 kB / 445.2 MB, free: 53.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.1627, allocations: 62.31 kB / 445.2 MB, free: 53.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.1627, allocations: 3.281 kB / 445.2 MB, free: 53.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.03e-05/0.1628, allocations: 29.27 kB / 445.3 MB, free: 53.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.1628, allocations: 13.97 kB / 445.3 MB, free: 53.79 MB / 410.7 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.0001076/0.1629, allocations: 188.1 kB / 445.5 MB, free: 53.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.163, allocations: 31.03 kB / 445.5 MB, free: 53.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003924/0.1634, allocations: 411 kB / 445.9 MB, free: 53.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1634, allocations: 3 kB / 445.9 MB, free: 53.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1634, allocations: 0 / 445.9 MB, free: 53.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.1634, allocations: 3.031 kB / 445.9 MB, free: 53.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005796/0.164, allocations: 0.7935 MB / 446.7 MB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.164, allocations: 3.969 kB / 446.7 MB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1641, allocations: 55.8 kB / 446.8 MB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1641, allocations: 0 / 446.8 MB, free: 53.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.1641, allocations: 13.78 kB / 446.8 MB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1641, allocations: 0.6562 kB / 446.8 MB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1641, allocations: 3.281 kB / 446.8 MB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.1644, allocations: 486.2 kB / 447.3 MB, free: 52.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.857e-05/0.1644, allocations: 41.95 kB / 447.3 MB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.1644, allocations: 13.2 kB / 447.3 MB, free: 52.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.131e-05/0.1645, allocations: 7.125 kB / 447.3 MB, free: 52.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.1646, allocations: 32.34 kB / 447.3 MB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1646, allocations: 10.78 kB / 447.4 MB, free: 52.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001304/0.1647, allocations: 261.8 kB / 447.6 MB, free: 52.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1647, allocations: 0 / 447.6 MB, free: 52.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000268/0.165, allocations: 100.8 kB / 447.7 MB, free: 52.55 MB / 410.7 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 (34): * Single equations (assignments): 31 * 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.001114/0.1661, allocations: 1.473 MB / 449.2 MB, free: 51.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002841/0.1664, allocations: 282.9 kB / 449.5 MB, free: 51.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1664, allocations: 0 / 449.5 MB, free: 51.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.1665, allocations: 139.4 kB / 449.6 MB, free: 51.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.1668, allocations: 70.08 kB / 449.7 MB, free: 51.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/0.1688, allocations: 3.244 MB / 452.9 MB, free: 49.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.1689, allocations: 201.5 kB / 453.1 MB, free: 49.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.169, allocations: 83.09 kB / 453.2 MB, free: 49.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.1691, allocations: 119.4 kB / 453.3 MB, free: 49.27 MB / 410.7 MB Notification: Performance of SimCode: time 6.82e-07/0.1692, allocations: 0 / 453.3 MB, free: 49.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.1881, allocations: 8.812 MB / 462.1 MB, free: 47.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.85/7.038, allocations: 7.125 kB / 462.1 MB, free: 47.37 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins/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: 8.887515905313194]