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.001494/0.001494, allocations: 112.5 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001658/0.001658, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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 1.364/1.364, allocations: 230.6 MB / 258.3 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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.1776/0.1776, allocations: 38.52 MB / 353.2 MB, free: 12.66 MB / 286.1 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: translateModel(PowerSystems.Examples.PowerWorld.Test.CityTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="Time|city.p.1.|city.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.91 kB / 493.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2777, allocations: 62.47 MB / 0.5432 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005168/0.2829, allocations: 3.771 MB / 0.5469 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.2858, allocations: 1.983 MB / 0.5488 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.286, allocations: 9.406 kB / 0.5488 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007939/0.2868, allocations: 242.5 kB / 0.5491 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006133/0.2874, allocations: 303.8 kB / 0.5494 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.2878, allocations: 186.4 kB / 0.5495 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004986/0.2883, allocations: 452.7 kB / 0.55 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.2886, allocations: 161.2 kB / 0.5501 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/0.289, allocations: 211.5 kB / 0.5503 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002797/0.2892, allocations: 195 kB / 0.5505 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.2893, allocations: 29.12 kB / 0.5505 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005395/0.2898, allocations: 379.1 kB / 0.5509 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.29, allocations: 124 kB / 0.551 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.2901, allocations: 152.4 kB / 0.5512 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007214/0.2908, allocations: 0.5665 MB / 0.5517 GB, free: 10.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2908, allocations: 0 / 0.5517 GB, free: 10.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2908, allocations: 0 / 0.5517 GB, free: 10.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2908, allocations: 1.562 kB / 0.5517 GB, free: 10.19 MB / 398.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.0009191/0.2918, allocations: 0.5882 MB / 0.5523 GB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2918, allocations: 17.59 kB / 0.5523 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000682/0.2925, allocations: 94.12 kB / 0.5524 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005436/0.293, allocations: 324.2 kB / 0.5527 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.2931, allocations: 12.94 kB / 0.5527 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.2931, allocations: 19.16 kB / 0.5528 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005848/0.2937, allocations: 361.6 kB / 0.5531 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.2937, allocations: 1.125 kB / 0.5531 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.2937, allocations: 6.031 kB / 0.5531 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.2937, allocations: 21.11 kB / 0.5531 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000611/0.2944, allocations: 390.2 kB / 0.5535 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.2963, allocations: 1.511 MB / 0.555 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006323/0.2969, allocations: 294.1 kB / 0.5553 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.2971, allocations: 101 kB / 0.5553 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.2972, allocations: 14.03 kB / 0.5554 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.2975, allocations: 196.6 kB / 0.5555 GB, free: 7.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2975, allocations: 0 / 0.5555 GB, free: 7.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.000753/0.2982, allocations: 387.6 kB / 0.5559 GB, free: 6.969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.2983, allocations: 131.8 kB / 0.556 GB, free: 6.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.2987, allocations: 312.8 kB / 0.5563 GB, free: 6.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.2987, allocations: 36.36 kB / 0.5564 GB, free: 6.566 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.2989, allocations: 181.3 kB / 0.5565 GB, free: 6.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.22e-05/0.2989, allocations: 87.75 kB / 0.5566 GB, free: 6.328 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.84e-05/0.299, allocations: 57.66 kB / 0.5567 GB, free: 6.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2992, allocations: 341.8 kB / 0.557 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.2994, allocations: 96.98 kB / 0.5571 GB, free: 5.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.2996, allocations: 183.2 kB / 0.5573 GB, free: 5.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004521/0.3001, allocations: 307.4 kB / 0.5576 GB, free: 5.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3001, allocations: 4 kB / 0.5576 GB, free: 5.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006508/0.3007, allocations: 353.2 kB / 0.5579 GB, free: 5.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3007, allocations: 8 kB / 0.5579 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3007, allocations: 7.875 kB / 0.5579 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3007, allocations: 4 kB / 0.5579 GB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.301, allocations: 68.22 kB / 0.558 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.301, allocations: 7.984 kB / 0.558 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.3012, allocations: 27.78 kB / 0.558 GB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.3012, allocations: 12 kB / 0.558 GB, free: 4.93 MB / 398.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 ($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.0001933/0.3014, allocations: 185.7 kB / 0.5582 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.509e-05/0.3014, allocations: 27.81 kB / 0.5582 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006464/0.3021, allocations: 348 kB / 0.5586 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3021, allocations: 4 kB / 0.5586 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3021, allocations: 4 kB / 0.5586 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3021, allocations: 7.938 kB / 0.5586 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.3031, allocations: 0.7103 MB / 0.5593 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3031, allocations: 0 / 0.5593 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.3033, allocations: 47.92 kB / 0.5593 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.3033, allocations: 7.938 kB / 0.5593 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.3033, allocations: 11.98 kB / 0.5594 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3033, allocations: 0 / 0.5594 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3033, allocations: 0 / 0.5594 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.3039, allocations: 416.9 kB / 0.5598 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.3039, allocations: 27.75 kB / 0.5598 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.454e-05/0.304, allocations: 15.94 kB / 0.5598 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.3041, allocations: 7.984 kB / 0.5598 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.344e-05/0.3042, allocations: 23.97 kB / 0.5598 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.3042, allocations: 8 kB / 0.5598 GB, free: 3.008 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002469/0.3044, allocations: 227 kB / 0.56 GB, free: 2.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3044, allocations: 0 / 0.56 GB, free: 2.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004178/0.3048, allocations: 95.77 kB / 0.5601 GB, free: 2.695 MB / 398.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 (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.001729/0.3066, allocations: 0.5095 MB / 0.5606 GB, free: 2.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004637/0.307, allocations: 232.3 kB / 0.5609 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.307, allocations: 4.062 kB / 0.5609 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.3072, allocations: 115.7 kB / 0.561 GB, free: 2.031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004559/0.3077, allocations: 67.33 kB / 0.561 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.3087, allocations: 0.6282 MB / 0.5616 GB, free: 1.301 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.3092, allocations: 0.7914 MB / 0.5624 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3093, allocations: 47.34 kB / 0.5625 GB, free: 448 kB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3093, allocations: 4 kB / 0.5625 GB, free: 444 kB / 398.1 MB Notification: Performance of Templates: time 0.007826/0.3171, allocations: 4.921 MB / 0.5673 GB, free: 11.53 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins1/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: 7.674404582940042]