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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000875/0.0008751, allocations: 92.53 kB / 16.3 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008367/0.0008367, allocations: 186.5 kB / 17.2 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2645/0.2645, allocations: 38.08 MB / 330.3 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.000291, allocations: 12 kB / 400 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2328, allocations: 59.15 MB / 459.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.003775/0.2366, allocations: 3.269 MB / 462.4 MB, free: 27.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.2388, allocations: 1.692 MB / 464.1 MB, free: 26.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.239, allocations: 15.5 kB / 464.1 MB, free: 26.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003954/0.2394, allocations: 63.03 kB / 464.2 MB, free: 26.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005112/0.2399, allocations: 177.5 kB / 464.3 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.2403, allocations: 171.2 kB / 464.5 MB, free: 26.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000268/0.2406, allocations: 220.7 kB / 464.7 MB, free: 26.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005263/0.2411, allocations: 326.4 kB / 465 MB, free: 26.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.2414, allocations: 141 kB / 465.2 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.2416, allocations: 102.4 kB / 465.3 MB, free: 26.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.2416, allocations: 10.31 kB / 465.3 MB, free: 26.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003428/0.242, allocations: 159.9 kB / 465.4 MB, free: 26.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.2421, allocations: 90.44 kB / 465.5 MB, free: 26.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.258e-05/0.2422, allocations: 77.89 kB / 465.6 MB, free: 26.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004583/0.2426, allocations: 388.2 kB / 466 MB, free: 25.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.2427, allocations: 0 / 466 MB, free: 25.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2427, allocations: 4.906 kB / 466 MB, free: 25.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2427, allocations: 0 / 466 MB, free: 25.91 MB / 350.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.0006351/0.2433, allocations: 0.5594 MB / 466.5 MB, free: 25.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.2434, allocations: 10.33 kB / 466.6 MB, free: 25.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007008/0.2441, allocations: 103.6 kB / 466.7 MB, free: 25.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.2445, allocations: 358.5 kB / 467 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.2445, allocations: 20.7 kB / 467 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.2446, allocations: 15.59 kB / 467 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.2451, allocations: 355.2 kB / 467.4 MB, free: 24.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2451, allocations: 9 kB / 467.4 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.2451, allocations: 6.219 kB / 467.4 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.2452, allocations: 16.14 kB / 467.4 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005511/0.2457, allocations: 389.2 kB / 467.8 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.2472, allocations: 1.548 MB / 469.3 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000567/0.2478, allocations: 327.2 kB / 469.7 MB, free: 23.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.2478, allocations: 6.047 kB / 469.7 MB, free: 23.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002593/0.2481, allocations: 199.8 kB / 469.9 MB, free: 23.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.2481, allocations: 0 / 469.9 MB, free: 23.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006133/0.2487, allocations: 385.8 kB / 470.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.2488, allocations: 133.3 kB / 470.4 MB, free: 22.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/0.249, allocations: 287.7 kB / 470.7 MB, free: 22.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.2491, allocations: 38.02 kB / 470.7 MB, free: 22.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.857e-05/0.2492, allocations: 178.1 kB / 470.9 MB, free: 22.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.2492, allocations: 84.56 kB / 470.9 MB, free: 22.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.2492, allocations: 5.875 kB / 471 MB, free: 22.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.474e-05/0.2493, allocations: 342.8 kB / 471.3 MB, free: 22.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.2494, allocations: 92.31 kB / 471.4 MB, free: 22.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.2496, allocations: 185 kB / 471.6 MB, free: 22.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.2498, allocations: 127.3 kB / 471.7 MB, free: 22.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2498, allocations: 1 kB / 471.7 MB, free: 22.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005051/0.2503, allocations: 355.2 kB / 472 MB, free: 21.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2503, allocations: 8.656 kB / 472 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2504, allocations: 2.906 kB / 472 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2504, allocations: 9.031 kB / 472 MB, free: 21.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.2506, allocations: 61.03 kB / 472.1 MB, free: 21.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.2506, allocations: 13.17 kB / 472.1 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.2507, allocations: 25.64 kB / 472.1 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.2508, allocations: 14.72 kB / 472.2 MB, free: 21.82 MB / 350.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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.2509, allocations: 185.7 kB / 472.3 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.251, allocations: 26.88 kB / 472.4 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004922/0.2514, allocations: 323.8 kB / 472.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.2515, allocations: 4.516 kB / 472.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2515, allocations: 0 / 472.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2515, allocations: 2.266 kB / 472.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007935/0.2523, allocations: 0.7501 MB / 473.4 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2523, allocations: 6.484 kB / 473.4 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.2525, allocations: 42.66 kB / 473.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2525, allocations: 9.469 kB / 473.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.2525, allocations: 13.31 kB / 473.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.2525, allocations: 2.188 kB / 473.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2525, allocations: 1.375 kB / 473.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004162/0.2529, allocations: 429.9 kB / 473.9 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.525e-05/0.253, allocations: 111.3 kB / 474 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.78e-05/0.253, allocations: 14.77 kB / 474.1 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.2532, allocations: 7.406 kB / 474.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.936e-05/0.2532, allocations: 20.05 kB / 474.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.2532, allocations: 14.3 kB / 474.1 MB, free: 20.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.2534, allocations: 212.1 kB / 474.3 MB, free: 20.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2534, allocations: 0 / 474.3 MB, free: 20.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.2538, allocations: 75.2 kB / 474.4 MB, free: 20.47 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008222/0.2546, allocations: 462.9 kB / 474.8 MB, free: 20.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.255, allocations: 254.2 kB / 475.1 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.255, allocations: 1.375 kB / 475.1 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.2552, allocations: 112.7 kB / 475.2 MB, free: 20.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.2555, allocations: 44.88 kB / 475.2 MB, free: 20.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008045/0.2563, allocations: 0.6785 MB / 475.9 MB, free: 19.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.2566, allocations: 0.8021 MB / 476.7 MB, free: 18.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.2568, allocations: 91.8 kB / 476.8 MB, free: 18.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.2569, allocations: 41.5 kB / 476.8 MB, free: 18.96 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2569, allocations: 0 / 476.8 MB, free: 18.96 MB / 350.1 MB Notification: Performance of Templates: time 0.006399/0.2633, allocations: 3.301 MB / 480.1 MB, free: 17.81 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile Environment - environmentSimulation: (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 & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches