Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest") translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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.001268/0.001268, allocations: 169.5 kB / 16.76 MB, free: 5.055 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.23/1.23, allocations: 205.4 MB / 222.9 MB, free: 9.039 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.0006987/0.0006987, allocations: 93.06 kB / 271.3 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1695/0.1695, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004709/0.000471, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2472, allocations: 56.32 MB / 480.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1183/0.3656, allocations: 95.06 MB / 0.5618 GB, free: 7.297 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001628/0.3672, allocations: 0.8701 MB / 0.5627 GB, free: 6.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0364/0.4036, allocations: 15.02 MB / 0.5774 GB, free: 7.254 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4037, allocations: 0 / 0.5774 GB, free: 7.254 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.57e-05/0.4037, allocations: 15.98 kB / 0.5774 GB, free: 7.238 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.0009312/0.4047, allocations: 0.5973 MB / 0.578 GB, free: 6.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.4047, allocations: 11.97 kB / 0.578 GB, free: 6.578 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007558/0.4055, allocations: 107.9 kB / 0.5781 GB, free: 6.473 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005387/0.406, allocations: 370.3 kB / 0.5784 GB, free: 6.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.4061, allocations: 16.38 kB / 0.5784 GB, free: 6.055 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.4061, allocations: 16 kB / 0.5785 GB, free: 6.039 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005585/0.4067, allocations: 360.6 kB / 0.5788 GB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.4067, allocations: 0 / 0.5788 GB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.4067, allocations: 11.98 kB / 0.5788 GB, free: 5.645 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.427e-05/0.4068, allocations: 24.36 kB / 0.5788 GB, free: 5.621 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006441/0.4074, allocations: 432.6 kB / 0.5792 GB, free: 5.195 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.4094, allocations: 1.597 MB / 0.5808 GB, free: 3.488 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006766/0.4101, allocations: 361 kB / 0.5812 GB, free: 3.117 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.4103, allocations: 109.7 kB / 0.5813 GB, free: 3.004 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.4103, allocations: 4 kB / 0.5813 GB, free: 3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000318/0.4106, allocations: 209.7 kB / 0.5815 GB, free: 2.773 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.973e-06/0.4106, allocations: 0 / 0.5815 GB, free: 2.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007688/0.4114, allocations: 413.5 kB / 0.5819 GB, free: 2.363 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.4115, allocations: 136.5 kB / 0.582 GB, free: 2.199 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.4119, allocations: 323.2 kB / 0.5823 GB, free: 1.871 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.4119, allocations: 41.7 kB / 0.5823 GB, free: 1.824 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.412, allocations: 176.2 kB / 0.5825 GB, free: 1.648 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.4121, allocations: 82.97 kB / 0.5826 GB, free: 1.566 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.4121, allocations: 8 kB / 0.5826 GB, free: 1.559 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.4122, allocations: 338.8 kB / 0.5829 GB, free: 1.219 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.4124, allocations: 100.5 kB / 0.583 GB, free: 1.117 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/0.4127, allocations: 199.2 kB / 0.5832 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004143/0.4131, allocations: 309.3 kB / 0.5835 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4131, allocations: 3.938 kB / 0.5835 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005617/0.4137, allocations: 380.9 kB / 0.5839 GB, free: 172 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4137, allocations: 10.33 kB / 0.5839 GB, free: 164 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4137, allocations: 4 kB / 0.5839 GB, free: 160 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.4137, allocations: 4 kB / 0.5839 GB, free: 156 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.414, allocations: 59.91 kB / 0.5839 GB, free: 96 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.414, allocations: 4.312 kB / 0.5839 GB, free: 92 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.4142, allocations: 27.78 kB / 0.584 GB, free: 64 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.4142, allocations: 23.92 kB / 0.584 GB, free: 40 kB / 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 ($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.0001921/0.4144, allocations: 173.8 kB / 0.5842 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.793e-05/0.4145, allocations: 35.56 kB / 0.5842 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006492/0.4151, allocations: 399.9 kB / 0.5846 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.4151, allocations: 11.98 kB / 0.5846 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4151, allocations: 0 / 0.5846 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.4152, allocations: 0 / 0.5846 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.4162, allocations: 0.8496 MB / 0.5854 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4162, allocations: 4 kB / 0.5854 GB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.4164, allocations: 51.98 kB / 0.5855 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.4164, allocations: 3.938 kB / 0.5855 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.4165, allocations: 11.98 kB / 0.5855 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.4165, allocations: 11.94 kB / 0.5855 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4165, allocations: 4 kB / 0.5855 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006022/0.4171, allocations: 466.6 kB / 0.5859 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.632e-05/0.4172, allocations: 116.7 kB / 0.586 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.387e-05/0.4173, allocations: 15.98 kB / 0.5861 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.4174, allocations: 12 kB / 0.5861 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.4175, allocations: 23.95 kB / 0.5861 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.4175, allocations: 12 kB / 0.5861 GB, free: 13.75 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002467/0.4178, allocations: 241.9 kB / 0.5863 GB, free: 13.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4178, allocations: 3.938 kB / 0.5863 GB, free: 13.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004093/0.4182, allocations: 103.7 kB / 0.5864 GB, free: 13.41 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.0009203/0.4191, allocations: 478.1 kB / 0.5869 GB, free: 13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004837/0.4196, allocations: 279.7 kB / 0.5872 GB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4196, allocations: 0 / 0.5872 GB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.4198, allocations: 148.5 kB / 0.5873 GB, free: 12.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.4203, allocations: 57.42 kB / 0.5874 GB, free: 12.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.4214, allocations: 0.785 MB / 0.5881 GB, free: 11.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.4218, allocations: 0.8003 MB / 0.5889 GB, free: 10.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.4219, allocations: 43.42 kB / 0.589 GB, free: 10.84 MB / 426.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4219, allocations: 0 / 0.589 GB, free: 10.84 MB / 426.7 MB Notification: Performance of Templates: time 0.006513/0.4284, allocations: 4.658 MB / 0.5935 GB, free: 6.164 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)