Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001803, allocations: 112.5 kB / 17.7 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 183 kB / 18.62 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.663/1.663, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1811/0.1811, allocations: 38.04 MB / 330.5 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 56.81 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1662, allocations: 58.06 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01227/0.1786, allocations: 7.592 MB / 465.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006372/0.185, allocations: 2.317 MB / 468.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.1862, allocations: 31.81 kB / 468.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003082/0.1893, allocations: 0.8479 MB / 469.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002347/0.1917, allocations: 0.5053 MB / 469.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.1939, allocations: 443 kB / 470 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002925/0.1969, allocations: 1.274 MB / 471.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00164/0.1985, allocations: 0.6816 MB / 472 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001733/0.2003, allocations: 0.5563 MB / 472.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001957/0.2022, allocations: 0.6579 MB / 473.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004736/0.2027, allocations: 76 kB / 473.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001168/0.2039, allocations: 203.8 kB / 473.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.205, allocations: 494.8 kB / 474 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00179/0.2068, allocations: 0.5286 MB / 474.5 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002184/0.209, allocations: 1.246 MB / 475.7 MB, free: 5.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.209, allocations: 4 kB / 475.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.2091, allocations: 0 / 475.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.12e-05/0.2091, allocations: 0 / 475.7 MB, free: 5.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003185/0.2123, allocations: 1.305 MB / 477.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/0.2124, allocations: 8.031 kB / 477.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.2134, allocations: 163.5 kB / 477.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.215, allocations: 0.731 MB / 478 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.376e-05/0.2151, allocations: 66.36 kB / 478 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.2153, allocations: 88.12 kB / 478.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002054/0.2173, allocations: 1.179 MB / 479.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-05/0.2174, allocations: 0 / 479.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.129e-05/0.2175, allocations: 39.94 kB / 479.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.651e-05/0.2176, allocations: 53.98 kB / 479.4 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.2192, allocations: 0.9249 MB / 480.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006667/0.2259, allocations: 4.78 MB / 485.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.2273, allocations: 0.6722 MB / 485.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006066/0.2279, allocations: 378.6 kB / 486.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.401e-05/0.228, allocations: 8.547 kB / 486.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007276/0.2287, allocations: 435.8 kB / 486.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 3.386e-06/0.2287, allocations: 4 kB / 486.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005842/0.2346, allocations: 2.443 MB / 489 MB, free: 8.059 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.2347, allocations: 170.8 kB / 489.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008721/0.2356, allocations: 0.6017 MB / 489.8 MB, free: 7.242 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/0.2357, allocations: 33.7 kB / 489.8 MB, free: 7.203 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004886/0.2362, allocations: 482.7 kB / 490.3 MB, free: 6.723 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/0.2365, allocations: 228.9 kB / 490.5 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000258/0.2367, allocations: 150.5 kB / 490.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002631/0.237, allocations: 386.8 kB / 491 MB, free: 5.957 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/0.2375, allocations: 289.8 kB / 491.3 MB, free: 5.672 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007712/0.2383, allocations: 0.5563 MB / 491.9 MB, free: 4.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.2397, allocations: 0.9495 MB / 492.8 MB, free: 3.902 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.2397, allocations: 7.938 kB / 492.8 MB, free: 3.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002243/0.2419, allocations: 1.227 MB / 494 MB, free: 2.652 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.216e-05/0.242, allocations: 37.7 kB / 494.1 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.2421, allocations: 8 kB / 494.1 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.2433, allocations: 337.8 kB / 494.4 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.2439, allocations: 143.8 kB / 494.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007759/0.2516, allocations: 5.39 MB / 499.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008663/0.2526, allocations: 28.03 kB / 500 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.264e-05/0.2527, allocations: 43.98 kB / 0.4883 GB, free: 12.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008241/0.2535, allocations: 362 kB / 0.4886 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.2537, allocations: 79 kB / 0.4887 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.2559, allocations: 1.04 MB / 0.4897 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.2559, allocations: 8 kB / 0.4897 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.2559, allocations: 4 kB / 0.4897 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.256, allocations: 7.984 kB / 0.4898 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.2599, allocations: 2.051 MB / 0.4918 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.2599, allocations: 4 kB / 0.4918 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.2603, allocations: 71.91 kB / 0.4918 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000987/0.2613, allocations: 317.7 kB / 0.4921 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.2613, allocations: 19.92 kB / 0.4922 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007309/0.2686, allocations: 5.311 MB / 0.4973 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.886e-05/0.2687, allocations: 4 kB / 0.4973 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.2709, allocations: 1.12 MB / 0.4984 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002632/0.2712, allocations: 140.2 kB / 0.4986 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.133e-05/0.2713, allocations: 20 kB / 0.4986 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00034/0.2716, allocations: 19.98 kB / 0.4986 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.2718, allocations: 64.36 kB / 0.4987 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.2719, allocations: 16 kB / 0.4987 GB, free: 1.211 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005678/0.2724, allocations: 415 kB / 0.4991 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2725, allocations: 0 / 0.4991 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001102/0.2736, allocations: 272 kB / 0.4993 GB, free: 0.5469 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001948/0.2738, allocations: 127 kB / 0.4995 GB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.2758, allocations: 1.156 MB / 0.5006 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2758, allocations: 0 / 0.5006 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.2769, allocations: 0.7644 MB / 0.5013 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009316/0.2778, allocations: 188 kB / 0.5015 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003133/0.2809, allocations: 1.736 MB / 0.5032 GB, free: 12.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009266/0.2819, allocations: 1.107 MB / 0.5043 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005057/0.2824, allocations: 174.3 kB / 0.5045 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.2826, allocations: 51.42 kB / 0.5045 GB, free: 11.1 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2826, allocations: 0 / 0.5045 GB, free: 11.1 MB / 398.1 MB Notification: Performance of Templates: time 0.01967/0.3022, allocations: 10.78 MB / 0.515 GB, free: 400 kB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches