Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008584/0.0008585, allocations: 178.4 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 225.7 MB / 243.2 MB, free: 10.23 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007928/0.0007928, allocations: 100.5 kB / 294.4 MB, free: 9.758 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2774/0.2774, allocations: 38.19 MB / 383.7 MB, free: 40.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002918, allocations: 12 kB / 453.6 MB, free: 8.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2504, allocations: 59.14 MB / 0.5007 GB, free: 39.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.006668/0.2571, allocations: 8.376 MB / 0.5089 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004059/0.2612, allocations: 4.195 MB / 0.513 GB, free: 32.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005237/0.2618, allocations: 56.22 kB / 0.513 GB, free: 32.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000524/0.2623, allocations: 219.6 kB / 0.5132 GB, free: 32.1 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000851/0.2632, allocations: 481 kB / 0.5137 GB, free: 31.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008822/0.264, allocations: 401.8 kB / 0.5141 GB, free: 31.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001183/0.2652, allocations: 1.939 MB / 0.516 GB, free: 31.04 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.2665, allocations: 1.627 MB / 0.5175 GB, free: 29.8 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004594/0.267, allocations: 461.1 kB / 0.518 GB, free: 29.62 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006579/0.2677, allocations: 0.6429 MB / 0.5186 GB, free: 29.4 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.653e-05/0.2678, allocations: 37.09 kB / 0.5186 GB, free: 29.4 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003315/0.2681, allocations: 188.2 kB / 0.5188 GB, free: 29.36 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002808/0.2684, allocations: 445.3 kB / 0.5192 GB, free: 29.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003399/0.2687, allocations: 0.4978 MB / 0.5197 GB, free: 28.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008869/0.2696, allocations: 1.182 MB / 0.5209 GB, free: 28.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2696, allocations: 0 / 0.5209 GB, free: 28.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2697, allocations: 0 / 0.5209 GB, free: 28.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.2697, allocations: 0 / 0.5209 GB, free: 28.57 MB / 378.7 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.00148/0.2712, allocations: 1.134 MB / 0.522 GB, free: 27.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.2712, allocations: 10.22 kB / 0.522 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006992/0.2719, allocations: 167.5 kB / 0.5222 GB, free: 27.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008172/0.2727, allocations: 0.6849 MB / 0.5228 GB, free: 27.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.2728, allocations: 61.47 kB / 0.5229 GB, free: 27.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.2729, allocations: 81.25 kB / 0.523 GB, free: 27.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2742, allocations: 1.167 MB / 0.5241 GB, free: 26.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.2742, allocations: 6.938 kB / 0.5241 GB, free: 26.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.72e-05/0.2743, allocations: 35.69 kB / 0.5241 GB, free: 26.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-05/0.2743, allocations: 60.02 kB / 0.5242 GB, free: 26.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.2755, allocations: 0.921 MB / 0.5251 GB, free: 26.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003682/0.2792, allocations: 4.821 MB / 0.5298 GB, free: 22.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008653/0.2801, allocations: 0.6631 MB / 0.5305 GB, free: 22.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/0.2805, allocations: 378 kB / 0.5308 GB, free: 22.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/0.2805, allocations: 6.594 kB / 0.5308 GB, free: 22.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000465/0.281, allocations: 445.6 kB / 0.5313 GB, free: 22.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 2.044e-06/0.281, allocations: 0 / 0.5313 GB, free: 22.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.00415/0.2852, allocations: 2.451 MB / 0.5336 GB, free: 21.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.2852, allocations: 164.6 kB / 0.5338 GB, free: 20.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004624/0.2857, allocations: 0.5932 MB / 0.5344 GB, free: 20.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.2857, allocations: 40.55 kB / 0.5344 GB, free: 20.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001847/0.2859, allocations: 491.4 kB / 0.5349 GB, free: 20.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.286, allocations: 222.5 kB / 0.5351 GB, free: 20 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.189e-05/0.2861, allocations: 15.16 kB / 0.5351 GB, free: 19.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.554e-05/0.2862, allocations: 385.6 kB / 0.5355 GB, free: 19.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003485/0.2865, allocations: 284.6 kB / 0.5358 GB, free: 19.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.2869, allocations: 0.551 MB / 0.5363 GB, free: 19.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008328/0.2878, allocations: 0.9536 MB / 0.5372 GB, free: 18.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2878, allocations: 7.188 kB / 0.5372 GB, free: 18.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001587/0.2894, allocations: 1.213 MB / 0.5384 GB, free: 17.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.2894, allocations: 35.95 kB / 0.5385 GB, free: 17.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.2894, allocations: 10.59 kB / 0.5385 GB, free: 17.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008858/0.2903, allocations: 342.5 kB / 0.5388 GB, free: 17.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004158/0.2908, allocations: 144.9 kB / 0.5389 GB, free: 17.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003995/0.2948, allocations: 4.955 MB / 0.5438 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.2952, allocations: 31.97 kB / 0.5438 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.216e-05/0.2952, allocations: 43.12 kB / 0.5438 GB, free: 14.11 MB / 378.7 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,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[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.0003241/0.2956, allocations: 355.8 kB / 0.5442 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.217e-05/0.2957, allocations: 78.03 kB / 0.5443 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.2972, allocations: 1.034 MB / 0.5453 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2972, allocations: 5.938 kB / 0.5453 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2972, allocations: 6.156 kB / 0.5453 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.2972, allocations: 7.078 kB / 0.5453 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.2996, allocations: 2.055 MB / 0.5473 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2996, allocations: 7.922 kB / 0.5473 GB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.2999, allocations: 81.73 kB / 0.5474 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007335/0.3007, allocations: 318.4 kB / 0.5477 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.3007, allocations: 18.06 kB / 0.5477 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004311/0.305, allocations: 4.866 MB / 0.5524 GB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.305, allocations: 3.547 kB / 0.5524 GB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001547/0.3066, allocations: 1.113 MB / 0.5535 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.3067, allocations: 145.9 kB / 0.5537 GB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.403e-05/0.3068, allocations: 20.38 kB / 0.5537 GB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.3071, allocations: 18.69 kB / 0.5537 GB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.3073, allocations: 59.02 kB / 0.5538 GB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.277e-05/0.3073, allocations: 18.36 kB / 0.5538 GB, free: 7.887 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004485/0.3078, allocations: 412 kB / 0.5542 GB, free: 7.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.3078, allocations: 3.938 kB / 0.5542 GB, free: 7.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008554/0.3087, allocations: 269.3 kB / 0.5544 GB, free: 7.68 MB / 378.7 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.000126/0.3088, allocations: 127 kB / 0.5546 GB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.3104, allocations: 1.137 MB / 0.5557 GB, free: 7.004 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3104, allocations: 0 / 0.5557 GB, free: 7.004 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009824/0.3114, allocations: 0.7702 MB / 0.5564 GB, free: 6.531 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009675/0.3124, allocations: 167.3 kB / 0.5566 GB, free: 6.473 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.3153, allocations: 2.163 MB / 0.5587 GB, free: 5.254 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006839/0.3159, allocations: 1.103 MB / 0.5598 GB, free: 4.508 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000525/0.3165, allocations: 178.5 kB / 0.5599 GB, free: 4.473 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.3166, allocations: 54.56 kB / 0.56 GB, free: 4.461 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3166, allocations: 1 kB / 0.56 GB, free: 4.461 MB / 378.7 MB Notification: Performance of Templates: time 0.01645/0.3331, allocations: 10.09 MB / 0.5698 GB, free: 14.72 MB / 394.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches