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.0007261/0.0007261, allocations: 87.7 kB / 16.31 MB, free: 6.449 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.0007605/0.0007605, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.224/1.224, allocations: 223.3 MB / 241.2 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2584/0.2584, allocations: 38.07 MB / 330.4 MB, free: 14.16 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002699, allocations: 8 kB / 400.1 MB, free: 9.277 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2276, allocations: 59.17 MB / 459.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.006449/0.2341, allocations: 8.23 MB / 467.5 MB, free: 24.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003921/0.238, allocations: 2.68 MB / 470.1 MB, free: 22.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005197/0.2386, allocations: 60.12 kB / 470.2 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005753/0.2392, allocations: 260.4 kB / 470.5 MB, free: 22.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.2403, allocations: 0.5942 MB / 471 MB, free: 21.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.2414, allocations: 460.8 kB / 471.5 MB, free: 21.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.2429, allocations: 1.517 MB / 473 MB, free: 21.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.2443, allocations: 0.9961 MB / 474 MB, free: 20.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000631/0.2449, allocations: 461.4 kB / 474.5 MB, free: 20.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008169/0.2457, allocations: 0.6341 MB / 475.1 MB, free: 20.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.866e-05/0.2458, allocations: 42.5 kB / 475.1 MB, free: 20.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003686/0.2462, allocations: 151.5 kB / 475.3 MB, free: 20.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004463/0.2467, allocations: 455 kB / 475.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.2469, allocations: 212.1 kB / 475.9 MB, free: 20.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.2475, allocations: 0.925 MB / 476.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2476, allocations: 0 / 476.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2476, allocations: 0 / 476.9 MB, free: 19.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.2476, allocations: 1.375 kB / 476.9 MB, free: 19.46 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.00159/0.2492, allocations: 1.137 MB / 478 MB, free: 18.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2492, allocations: 9.625 kB / 478 MB, free: 18.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007256/0.2499, allocations: 173.1 kB / 478.2 MB, free: 18.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008518/0.2508, allocations: 0.6587 MB / 478.8 MB, free: 17.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.486e-05/0.2509, allocations: 64.09 kB / 478.9 MB, free: 17.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.251, allocations: 85.77 kB / 479 MB, free: 17.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.2524, allocations: 1.172 MB / 480.2 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.2525, allocations: 7.5 kB / 480.2 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-05/0.2526, allocations: 31.62 kB / 480.2 MB, free: 17.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.773e-05/0.2526, allocations: 58.88 kB / 480.3 MB, free: 17.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.2539, allocations: 0.9252 MB / 481.2 MB, free: 16.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.258, allocations: 4.804 MB / 486 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008741/0.2589, allocations: 0.6734 MB / 486.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003857/0.2593, allocations: 387.7 kB / 487 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.2593, allocations: 12.55 kB / 487 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004714/0.2598, allocations: 439.7 kB / 487.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 1.754e-06/0.2598, allocations: 0 / 487.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.003996/0.2638, allocations: 2.44 MB / 489.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.2639, allocations: 166.8 kB / 490.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004522/0.2643, allocations: 0.59 MB / 490.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.2644, allocations: 41.7 kB / 490.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.2646, allocations: 486.6 kB / 491.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.2647, allocations: 228.8 kB / 491.4 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/0.2648, allocations: 19.94 kB / 491.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.451e-05/0.2648, allocations: 394.7 kB / 491.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.2652, allocations: 273.8 kB / 492.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.2656, allocations: 0.5524 MB / 492.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004346/0.266, allocations: 407.6 kB / 493 MB, free: 5.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2661, allocations: 8 kB / 493 MB, free: 5.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001522/0.2676, allocations: 1.212 MB / 494.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.2676, allocations: 33.7 kB / 494.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.2677, allocations: 8 kB / 494.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008248/0.2685, allocations: 348 kB / 494.6 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.2689, allocations: 147.7 kB / 494.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/0.2732, allocations: 4.94 MB / 499.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004421/0.2737, allocations: 36.03 kB / 499.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/0.2737, allocations: 35.98 kB / 499.8 MB, free: 14.27 MB / 366.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,$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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004414/0.2742, allocations: 368.1 kB / 0.4884 GB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.835e-05/0.2743, allocations: 75.06 kB / 0.4885 GB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.276, allocations: 1.036 MB / 0.4895 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.276, allocations: 8 kB / 0.4895 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.276, allocations: 8 kB / 0.4895 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.276, allocations: 3.984 kB / 0.4895 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.2788, allocations: 2.063 MB / 0.4915 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.2788, allocations: 0 / 0.4915 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.2791, allocations: 80.05 kB / 0.4916 GB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007604/0.2799, allocations: 317.6 kB / 0.4919 GB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.2799, allocations: 16 kB / 0.4919 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004814/0.2848, allocations: 4.876 MB / 0.4967 GB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2848, allocations: 0 / 0.4967 GB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.2863, allocations: 1.115 MB / 0.4978 GB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.2865, allocations: 152.2 kB / 0.4979 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.95e-05/0.2866, allocations: 16 kB / 0.4979 GB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/0.2869, allocations: 19.98 kB / 0.498 GB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.287, allocations: 56.42 kB / 0.498 GB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.2871, allocations: 16 kB / 0.498 GB, free: 3.574 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004262/0.2875, allocations: 419 kB / 0.4984 GB, free: 3.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2875, allocations: 0 / 0.4984 GB, free: 3.168 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009119/0.2884, allocations: 272 kB / 0.4987 GB, free: 2.902 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001365/0.2886, allocations: 115.1 kB / 0.4988 GB, free: 2.781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.2901, allocations: 1.146 MB / 0.4999 GB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2901, allocations: 3.938 kB / 0.4999 GB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000895/0.291, allocations: 0.7558 MB / 0.5007 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007853/0.2918, allocations: 175.3 kB / 0.5008 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.2943, allocations: 2.113 MB / 0.5029 GB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/0.295, allocations: 1.103 MB / 0.504 GB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004444/0.2954, allocations: 182.3 kB / 0.5041 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2955, allocations: 51.44 kB / 0.5042 GB, free: 13.11 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2955, allocations: 0 / 0.5042 GB, free: 13.11 MB / 382.1 MB Notification: Performance of Templates: time 0.01451/0.3101, allocations: 9.819 MB / 0.5138 GB, free: 3.363 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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