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.001908/0.001908, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002384/0.002384, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.46/1.46, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.1881/0.1881, allocations: 38.57 MB / 353.2 MB, free: 12.32 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.002166/0.002166, allocations: 71.89 kB / 493.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2981, allocations: 62.46 MB / 0.5432 GB, free: 424 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005275/0.3034, allocations: 3.615 MB / 0.5467 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00318/0.3066, allocations: 1.827 MB / 0.5485 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.3067, allocations: 9.344 kB / 0.5485 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008474/0.3076, allocations: 223.6 kB / 0.5487 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007286/0.3083, allocations: 308.5 kB / 0.549 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.3088, allocations: 182.7 kB / 0.5492 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005733/0.3094, allocations: 448.5 kB / 0.5496 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003414/0.3097, allocations: 165.2 kB / 0.5497 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004472/0.3102, allocations: 205.2 kB / 0.5499 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002838/0.3104, allocations: 179.8 kB / 0.5501 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.097e-05/0.3105, allocations: 30.44 kB / 0.5501 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006285/0.3111, allocations: 331.2 kB / 0.5505 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.3113, allocations: 129.3 kB / 0.5506 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.3114, allocations: 124.5 kB / 0.5507 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007764/0.3122, allocations: 0.5768 MB / 0.5513 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3122, allocations: 0 / 0.5513 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3122, allocations: 5.156 kB / 0.5513 GB, free: 10.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.3122, allocations: 0 / 0.5513 GB, free: 10.39 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.001036/0.3132, allocations: 0.5839 MB / 0.5518 GB, free: 9.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.3133, allocations: 13.64 kB / 0.5519 GB, free: 9.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000748/0.314, allocations: 93.77 kB / 0.5519 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005375/0.3146, allocations: 295.8 kB / 0.5522 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.3146, allocations: 12.5 kB / 0.5522 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.193e-05/0.3146, allocations: 28.42 kB / 0.5523 GB, free: 9.559 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006596/0.3153, allocations: 398.4 kB / 0.5526 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3153, allocations: 1.094 kB / 0.5526 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.3154, allocations: 6.188 kB / 0.5527 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.564e-05/0.3154, allocations: 12.81 kB / 0.5527 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007083/0.3161, allocations: 436.2 kB / 0.5531 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00204/0.3181, allocations: 1.364 MB / 0.5544 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007386/0.3189, allocations: 338.8 kB / 0.5547 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.3191, allocations: 112.2 kB / 0.5548 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.3191, allocations: 2.25 kB / 0.5548 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.3195, allocations: 218.9 kB / 0.5551 GB, free: 7.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.3195, allocations: 4 kB / 0.5551 GB, free: 7.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008338/0.3203, allocations: 426.6 kB / 0.5555 GB, free: 7.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/0.3204, allocations: 136.9 kB / 0.5556 GB, free: 7.117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004167/0.3208, allocations: 352.2 kB / 0.5559 GB, free: 6.883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.3208, allocations: 29.7 kB / 0.556 GB, free: 6.848 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.321, allocations: 184.3 kB / 0.5561 GB, free: 6.664 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.801e-05/0.3211, allocations: 83.44 kB / 0.5562 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.3212, allocations: 61.92 kB / 0.5563 GB, free: 6.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3214, allocations: 338.8 kB / 0.5566 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.3216, allocations: 112.8 kB / 0.5567 GB, free: 6.062 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000289/0.3219, allocations: 217 kB / 0.5569 GB, free: 5.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005097/0.3224, allocations: 336 kB / 0.5572 GB, free: 5.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3224, allocations: 0 / 0.5572 GB, free: 5.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006671/0.323, allocations: 385.1 kB / 0.5576 GB, free: 5.066 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.3231, allocations: 4 kB / 0.5576 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.3231, allocations: 7.938 kB / 0.5576 GB, free: 5.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.3231, allocations: 4.312 kB / 0.5576 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/0.3234, allocations: 67.91 kB / 0.5577 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.3234, allocations: 7.938 kB / 0.5577 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.3235, allocations: 31.77 kB / 0.5577 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.3236, allocations: 15.94 kB / 0.5577 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.0002298/0.3238, allocations: 179.8 kB / 0.5579 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-05/0.3239, allocations: 31.81 kB / 0.5579 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007766/0.3246, allocations: 400.1 kB / 0.5583 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.3247, allocations: 4 kB / 0.5583 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.3247, allocations: 4 kB / 0.5583 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3247, allocations: 3.984 kB / 0.5583 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.3258, allocations: 0.7559 MB / 0.5591 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3258, allocations: 0 / 0.5591 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002165/0.326, allocations: 59.92 kB / 0.5591 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.341e-06/0.3261, allocations: 4 kB / 0.5591 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.3261, allocations: 11.98 kB / 0.5591 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3261, allocations: 0 / 0.5591 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3261, allocations: 3.938 kB / 0.5591 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006925/0.3268, allocations: 488 kB / 0.5596 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.3268, allocations: 35.75 kB / 0.5596 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.745e-05/0.3269, allocations: 16 kB / 0.5597 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.327, allocations: 7.984 kB / 0.5597 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.3271, allocations: 23.91 kB / 0.5597 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.3271, allocations: 19.92 kB / 0.5597 GB, free: 2.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003114/0.3274, allocations: 251 kB / 0.5599 GB, free: 2.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3274, allocations: 0 / 0.5599 GB, free: 2.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004479/0.3279, allocations: 99.77 kB / 0.56 GB, free: 2.492 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 (34): * Single equations (assignments): 31 * 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.001935/0.3298, allocations: 0.5426 MB / 0.5606 GB, free: 2.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005709/0.3304, allocations: 287.6 kB / 0.5608 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3304, allocations: 0 / 0.5608 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.3307, allocations: 143.8 kB / 0.561 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004951/0.3312, allocations: 56.94 kB / 0.561 GB, free: 1.691 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.3324, allocations: 0.6914 MB / 0.5617 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.3326, allocations: 196.9 kB / 0.5619 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.3328, allocations: 39.42 kB / 0.5619 GB, free: 0.707 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3328, allocations: 0 / 0.5619 GB, free: 0.707 MB / 398.1 MB Notification: Performance of Templates: time 0.008762/0.3415, allocations: 5.145 MB / 0.567 GB, free: 11.59 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: 8.159150112885982]