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.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.001228/0.001228, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001437/0.001437, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.347/1.347, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.17/0.17, allocations: 38.53 MB / 353.2 MB, free: 12.57 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.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,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") [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.001954/0.001954, allocations: 67.89 kB / 493.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2984, allocations: 62.46 MB / 0.5432 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009471/0.3079, allocations: 7.782 MB / 0.5508 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004769/0.3127, allocations: 2.376 MB / 0.5532 GB, free: 8.613 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007541/0.3134, allocations: 37.47 kB / 0.5532 GB, free: 8.594 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002541/0.316, allocations: 0.885 MB / 0.5541 GB, free: 7.906 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001855/0.3178, allocations: 0.513 MB / 0.5546 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.3194, allocations: 464 kB / 0.555 GB, free: 7.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002108/0.3215, allocations: 1.278 MB / 0.5563 GB, free: 6.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.3226, allocations: 0.5163 MB / 0.5568 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001353/0.3239, allocations: 0.5761 MB / 0.5573 GB, free: 5.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.3254, allocations: 0.7027 MB / 0.558 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002703/0.3256, allocations: 75.62 kB / 0.5581 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007647/0.3264, allocations: 239.7 kB / 0.5583 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006656/0.3271, allocations: 0.4908 MB / 0.5588 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00089/0.328, allocations: 0.5286 MB / 0.5593 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001696/0.3297, allocations: 1.245 MB / 0.5605 GB, free: 2.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3297, allocations: 0 / 0.5605 GB, free: 2.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3297, allocations: 0 / 0.5605 GB, free: 2.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.3297, allocations: 0 / 0.5605 GB, free: 2.754 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002278/0.332, allocations: 1.271 MB / 0.5618 GB, free: 1.441 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.332, allocations: 8.031 kB / 0.5618 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.333, allocations: 208.1 kB / 0.562 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.3343, allocations: 0.6556 MB / 0.5626 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.304e-05/0.3343, allocations: 66.36 kB / 0.5627 GB, free: 488 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.3345, allocations: 84.12 kB / 0.5627 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.3361, allocations: 1.179 MB / 0.5639 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.3362, allocations: 7.953 kB / 0.5639 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-05/0.3362, allocations: 35.94 kB / 0.5639 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.178e-05/0.3363, allocations: 53.98 kB / 0.564 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.3378, allocations: 0.9288 MB / 0.5649 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00565/0.3434, allocations: 4.69 MB / 0.5695 GB, free: 9.215 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.3446, allocations: 0.6247 MB / 0.5701 GB, free: 8.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.3451, allocations: 339.9 kB / 0.5704 GB, free: 8.227 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.3451, allocations: 12.48 kB / 0.5704 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006406/0.3458, allocations: 444.8 kB / 0.5708 GB, free: 7.754 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 2.034e-06/0.3458, allocations: 3.938 kB / 0.5709 GB, free: 7.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.005196/0.351, allocations: 2.307 MB / 0.5731 GB, free: 5.418 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3511, allocations: 170.9 kB / 0.5733 GB, free: 5.215 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007275/0.3518, allocations: 0.6057 MB / 0.5739 GB, free: 4.605 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.726e-05/0.3518, allocations: 37.7 kB / 0.5739 GB, free: 4.562 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003968/0.3522, allocations: 0.492 MB / 0.5744 GB, free: 4.062 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.3525, allocations: 234.1 kB / 0.5746 GB, free: 3.832 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.3527, allocations: 146.6 kB / 0.5747 GB, free: 3.684 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.3529, allocations: 386.8 kB / 0.5751 GB, free: 3.297 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004598/0.3533, allocations: 285.8 kB / 0.5754 GB, free: 3.016 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006772/0.354, allocations: 0.5564 MB / 0.5759 GB, free: 2.336 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.3552, allocations: 0.9545 MB / 0.5769 GB, free: 1.242 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3553, allocations: 3.938 kB / 0.5769 GB, free: 1.238 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002138/0.3574, allocations: 1.222 MB / 0.5781 GB, free: 15.99 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.744e-05/0.3574, allocations: 37.7 kB / 0.5781 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.3575, allocations: 8 kB / 0.5781 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.3585, allocations: 341.5 kB / 0.5784 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00047/0.3589, allocations: 143.8 kB / 0.5786 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006222/0.3652, allocations: 5.188 MB / 0.5836 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.3657, allocations: 32.03 kB / 0.5837 GB, free: 9.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.361e-05/0.3658, allocations: 43.98 kB / 0.5837 GB, free: 9.949 MB / 430.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.0005358/0.3663, allocations: 355.1 kB / 0.584 GB, free: 9.586 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.3664, allocations: 87.42 kB / 0.5841 GB, free: 9.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/0.3683, allocations: 1.027 MB / 0.5851 GB, free: 8.445 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3683, allocations: 8 kB / 0.5851 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3683, allocations: 4 kB / 0.5851 GB, free: 8.434 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.3684, allocations: 7.984 kB / 0.5851 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003344/0.3717, allocations: 2.016 MB / 0.5871 GB, free: 6.336 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3717, allocations: 0 / 0.5871 GB, free: 6.336 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.372, allocations: 76.03 kB / 0.5872 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008435/0.3729, allocations: 313.6 kB / 0.5875 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/0.3729, allocations: 27.92 kB / 0.5875 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006025/0.3789, allocations: 5.099 MB / 0.5925 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3789, allocations: 0 / 0.5925 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.3808, allocations: 1.119 MB / 0.5936 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001873/0.381, allocations: 71.47 kB / 0.5937 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.033e-05/0.3811, allocations: 16 kB / 0.5937 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.3815, allocations: 19.98 kB / 0.5937 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.3816, allocations: 60.28 kB / 0.5937 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.423e-05/0.3817, allocations: 23.98 kB / 0.5938 GB, free: 15.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005294/0.3822, allocations: 415 kB / 0.5942 GB, free: 14.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3822, allocations: 3.938 kB / 0.5942 GB, free: 14.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009161/0.3831, allocations: 268 kB / 0.5944 GB, free: 14.55 MB / 446.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.0001594/0.3833, allocations: 123.1 kB / 0.5945 GB, free: 14.42 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.3851, allocations: 1.122 MB / 0.5956 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3851, allocations: 0 / 0.5956 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.3862, allocations: 0.7444 MB / 0.5964 GB, free: 12.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008574/0.3871, allocations: 185.5 kB / 0.5965 GB, free: 12.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.39, allocations: 1.865 MB / 0.5984 GB, free: 10.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007972/0.3908, allocations: 1.107 MB / 0.5994 GB, free: 9.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.391, allocations: 55.44 kB / 0.5995 GB, free: 9.195 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.391, allocations: 0 / 0.5995 GB, free: 9.195 MB / 446.1 MB Notification: Performance of Templates: time 0.02453/0.4155, allocations: 17.16 MB / 0.6162 GB, free: 8.051 MB / 462.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.271475987043232]