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.00151/0.00151, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.252/1.252, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007929/0.0007928, allocations: 101.5 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1549/0.1549, allocations: 38.06 MB / 357.2 MB, free: 1.902 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002902/0.0002902, allocations: 8 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2385, allocations: 56.32 MB / 480.3 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.3506, allocations: 95.01 MB / 0.5618 GB, free: 7.418 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001459/0.3521, allocations: 0.8588 MB / 0.5627 GB, free: 6.559 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03377/0.3859, allocations: 14.99 MB / 0.5773 GB, free: 7.414 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.3859, allocations: 4 kB / 0.5773 GB, free: 7.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.386, allocations: 8 kB / 0.5773 GB, free: 7.402 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.0007368/0.3867, allocations: 0.6012 MB / 0.5779 GB, free: 6.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.326e-05/0.3867, allocations: 11.97 kB / 0.5779 GB, free: 6.738 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006778/0.3874, allocations: 107.5 kB / 0.578 GB, free: 6.633 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004909/0.3879, allocations: 362.4 kB / 0.5784 GB, free: 6.238 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.3879, allocations: 12.38 kB / 0.5784 GB, free: 6.227 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.388, allocations: 16 kB / 0.5784 GB, free: 6.211 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.3885, allocations: 360.4 kB / 0.5787 GB, free: 5.828 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3885, allocations: 11.92 kB / 0.5788 GB, free: 5.816 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.3885, allocations: 8 kB / 0.5788 GB, free: 5.809 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.24e-05/0.3886, allocations: 16.38 kB / 0.5788 GB, free: 5.793 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005967/0.3892, allocations: 432.7 kB / 0.5792 GB, free: 5.367 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.391, allocations: 1.601 MB / 0.5807 GB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006164/0.3916, allocations: 353 kB / 0.5811 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.3916, allocations: 4.75 kB / 0.5811 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/0.3919, allocations: 209.7 kB / 0.5813 GB, free: 3.062 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.744e-06/0.3919, allocations: 0 / 0.5813 GB, free: 3.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006916/0.3926, allocations: 401.7 kB / 0.5817 GB, free: 2.664 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.3927, allocations: 136.5 kB / 0.5818 GB, free: 2.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.393, allocations: 310 kB / 0.5821 GB, free: 2.184 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.3931, allocations: 37.95 kB / 0.5821 GB, free: 2.141 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3932, allocations: 168.2 kB / 0.5823 GB, free: 1.973 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.363e-05/0.3933, allocations: 90.95 kB / 0.5824 GB, free: 1.883 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.308e-05/0.3933, allocations: 4 kB / 0.5824 GB, free: 1.879 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3934, allocations: 338.8 kB / 0.5827 GB, free: 1.539 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.3936, allocations: 112.4 kB / 0.5828 GB, free: 1.426 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.3938, allocations: 187.3 kB / 0.583 GB, free: 1.207 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.394, allocations: 139.1 kB / 0.5831 GB, free: 1.074 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3941, allocations: 3.938 kB / 0.5831 GB, free: 1.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005214/0.3946, allocations: 365 kB / 0.5835 GB, free: 0.707 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3946, allocations: 8 kB / 0.5835 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3946, allocations: 320 / 0.5835 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3946, allocations: 8 kB / 0.5835 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.3949, allocations: 67.89 kB / 0.5836 GB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.3949, allocations: 7.938 kB / 0.5836 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.395, allocations: 27.69 kB / 0.5836 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.3951, allocations: 15.95 kB / 0.5836 GB, free: 0.5742 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 ($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.0001632/0.3952, allocations: 189.6 kB / 0.5838 GB, free: 388 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.3953, allocations: 27.62 kB / 0.5838 GB, free: 360 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006341/0.3959, allocations: 399.9 kB / 0.5842 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.3959, allocations: 4 kB / 0.5842 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3959, allocations: 0 / 0.5842 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.396, allocations: 7.984 kB / 0.5842 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.397, allocations: 0.8458 MB / 0.585 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.397, allocations: 0 / 0.585 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.3972, allocations: 59.92 kB / 0.5851 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3972, allocations: 4 kB / 0.5851 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.3972, allocations: 11.98 kB / 0.5851 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3972, allocations: 0 / 0.5851 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3973, allocations: 3.938 kB / 0.5851 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005587/0.3978, allocations: 494 kB / 0.5856 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.315e-05/0.3979, allocations: 120.7 kB / 0.5857 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.188e-05/0.398, allocations: 23.94 kB / 0.5857 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.3981, allocations: 8 kB / 0.5857 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.3982, allocations: 23.95 kB / 0.5858 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.3982, allocations: 12 kB / 0.5858 GB, free: 14.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002235/0.3984, allocations: 241.9 kB / 0.586 GB, free: 14.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3984, allocations: 4 kB / 0.586 GB, free: 14.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003804/0.3988, allocations: 95.77 kB / 0.5861 GB, free: 13.91 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.0008897/0.3997, allocations: 473.8 kB / 0.5865 GB, free: 13.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004359/0.4002, allocations: 279.8 kB / 0.5868 GB, free: 13.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4002, allocations: 0 / 0.5868 GB, free: 13.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002032/0.4004, allocations: 155.8 kB / 0.587 GB, free: 13.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.4007, allocations: 44.77 kB / 0.587 GB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000903/0.4016, allocations: 0.741 MB / 0.5877 GB, free: 12.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.4019, allocations: 0.8081 MB / 0.5885 GB, free: 11.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000195/0.4022, allocations: 90.86 kB / 0.5886 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.295e-05/0.4022, allocations: 35.42 kB / 0.5886 GB, free: 11.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4023, allocations: 0 / 0.5886 GB, free: 11.3 MB / 426.7 MB Notification: Performance of Templates: time 0.00638/0.4086, allocations: 3.732 MB / 0.5923 GB, free: 7.57 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/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