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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 175.6 kB / 17.4 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.4 MB / 223.5 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007534/0.0007533, allocations: 88.95 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1922/0.1922, allocations: 38.07 MB / 358.2 MB, free: 1.746 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003662, allocations: 15.98 kB / 425.2 MB, free: 37.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3215, allocations: 56.31 MB / 481.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1364/0.458, allocations: 95.06 MB / 0.5631 GB, free: 7.219 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001951/0.46, allocations: 0.8806 MB / 0.564 GB, free: 6.344 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03855/0.4986, allocations: 15.02 MB / 0.5786 GB, free: 7.168 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4986, allocations: 0 / 0.5786 GB, free: 7.168 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.621e-05/0.4987, allocations: 8 kB / 0.5786 GB, free: 7.16 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.0009459/0.4996, allocations: 0.6012 MB / 0.5792 GB, free: 6.508 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.4997, allocations: 19.97 kB / 0.5792 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007194/0.5004, allocations: 103.9 kB / 0.5793 GB, free: 6.387 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005428/0.5009, allocations: 366.3 kB / 0.5797 GB, free: 5.988 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.501, allocations: 20.34 kB / 0.5797 GB, free: 5.969 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.501, allocations: 16 kB / 0.5797 GB, free: 5.953 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005801/0.5016, allocations: 360.6 kB / 0.5801 GB, free: 5.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.5016, allocations: 0 / 0.5801 GB, free: 5.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.5017, allocations: 11.98 kB / 0.5801 GB, free: 5.559 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.614e-05/0.5017, allocations: 20.31 kB / 0.5801 GB, free: 5.539 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006654/0.5024, allocations: 436.6 kB / 0.5805 GB, free: 5.109 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002003/0.5044, allocations: 1.601 MB / 0.5821 GB, free: 3.398 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006532/0.5051, allocations: 352.4 kB / 0.5824 GB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.5053, allocations: 121.6 kB / 0.5825 GB, free: 2.914 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.5053, allocations: 8.062 kB / 0.5825 GB, free: 2.906 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/0.5057, allocations: 201.7 kB / 0.5827 GB, free: 2.688 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 2.504e-06/0.5057, allocations: 0 / 0.5827 GB, free: 2.688 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008426/0.5066, allocations: 417 kB / 0.5831 GB, free: 2.273 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.921e-05/0.5067, allocations: 136.5 kB / 0.5833 GB, free: 2.109 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.5071, allocations: 327 kB / 0.5836 GB, free: 1.777 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.5071, allocations: 29.7 kB / 0.5836 GB, free: 1.742 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.5072, allocations: 180.2 kB / 0.5838 GB, free: 1.562 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.035e-05/0.5073, allocations: 82.91 kB / 0.5839 GB, free: 1.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.283e-05/0.5073, allocations: 4 kB / 0.5839 GB, free: 1.477 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.5075, allocations: 343.1 kB / 0.5842 GB, free: 1.133 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.5077, allocations: 104.5 kB / 0.5843 GB, free: 1.027 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.5079, allocations: 187.2 kB / 0.5845 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.5084, allocations: 317.3 kB / 0.5848 GB, free: 476 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.5084, allocations: 7.938 kB / 0.5848 GB, free: 468 kB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005607/0.509, allocations: 373.6 kB / 0.5851 GB, free: 88 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.509, allocations: 8.312 kB / 0.5851 GB, free: 80 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.509, allocations: 4 kB / 0.5851 GB, free: 76 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.509, allocations: 4 kB / 0.5851 GB, free: 72 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/0.5093, allocations: 71.89 kB / 0.5852 GB, free: 0 / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.508e-05/0.5093, allocations: 4.047 kB / 0.5852 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.5095, allocations: 23.78 kB / 0.5852 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.5095, allocations: 15.94 kB / 0.5853 GB, free: 15.95 MB / 426.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 ($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.0002016/0.5097, allocations: 181.6 kB / 0.5854 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.915e-05/0.5098, allocations: 35.56 kB / 0.5855 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000679/0.5105, allocations: 395.9 kB / 0.5858 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.5105, allocations: 4 kB / 0.5858 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5105, allocations: 4 kB / 0.5858 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.5105, allocations: 3.984 kB / 0.5858 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.5117, allocations: 0.8536 MB / 0.5867 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.5117, allocations: 7.922 kB / 0.5867 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/0.5119, allocations: 51.92 kB / 0.5867 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.5119, allocations: 0 / 0.5867 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.5119, allocations: 11.98 kB / 0.5868 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.5119, allocations: 4 kB / 0.5868 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.512, allocations: 7.922 kB / 0.5868 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/0.5126, allocations: 470.6 kB / 0.5872 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.981e-05/0.5127, allocations: 120.7 kB / 0.5873 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.807e-05/0.5127, allocations: 8 kB / 0.5873 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.5129, allocations: 11.98 kB / 0.5873 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.5129, allocations: 27.95 kB / 0.5874 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.513, allocations: 12 kB / 0.5874 GB, free: 13.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002629/0.5132, allocations: 241.9 kB / 0.5876 GB, free: 13.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5132, allocations: 0 / 0.5876 GB, free: 13.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004196/0.5137, allocations: 111.7 kB / 0.5877 GB, free: 13.32 MB / 426.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 (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.0009847/0.5147, allocations: 468.5 kB / 0.5882 GB, free: 12.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004864/0.5152, allocations: 284.1 kB / 0.5884 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5152, allocations: 4 kB / 0.5884 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.5154, allocations: 143.8 kB / 0.5886 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.5159, allocations: 53.36 kB / 0.5886 GB, free: 12.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.517, allocations: 0.7407 MB / 0.5894 GB, free: 11.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.5173, allocations: 0.8042 MB / 0.5901 GB, free: 10.84 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.5176, allocations: 86.88 kB / 0.5902 GB, free: 10.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.788e-05/0.5177, allocations: 43.42 kB / 0.5903 GB, free: 10.71 MB / 426.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5177, allocations: 0 / 0.5903 GB, free: 10.71 MB / 426.7 MB Notification: Performance of Templates: time 0.007368/0.5251, allocations: 3.756 MB / 0.5939 GB, free: 6.953 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins1/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