Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001724/0.001725, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001985/0.001985, allocations: 189.4 kB / 18 MB, free: 5.098 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.405/1.405, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.182/0.182, allocations: 38.04 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 67.89 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3186, allocations: 58.06 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.006829/0.3255, allocations: 7.573 MB / 0.511 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003418/0.329, allocations: 2.322 MB / 0.5133 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004056/0.3294, allocations: 29.91 kB / 0.5133 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.3314, allocations: 0.8515 MB / 0.5141 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001172/0.3325, allocations: 0.5029 MB / 0.5146 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.3338, allocations: 447.9 kB / 0.5151 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.3355, allocations: 1.279 MB / 0.5163 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009314/0.3365, allocations: 0.6775 MB / 0.517 GB, free: 14.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.3375, allocations: 0.5531 MB / 0.5175 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.3387, allocations: 0.6571 MB / 0.5182 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.3389, allocations: 74.78 kB / 0.5182 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005428/0.3394, allocations: 211.3 kB / 0.5184 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005453/0.34, allocations: 493.3 kB / 0.5189 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006204/0.3406, allocations: 0.5278 MB / 0.5194 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001507/0.3421, allocations: 1.242 MB / 0.5206 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3421, allocations: 1.406 kB / 0.5206 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3421, allocations: 4 kB / 0.5206 GB, free: 13.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.284e-05/0.3422, allocations: 0 / 0.5206 GB, free: 13.16 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.002458/0.3446, allocations: 1.337 MB / 0.5219 GB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3447, allocations: 9 kB / 0.5219 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001787/0.3449, allocations: 138.8 kB / 0.5221 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009224/0.3458, allocations: 178.9 kB / 0.5222 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.3471, allocations: 0.7349 MB / 0.523 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.321e-05/0.3472, allocations: 65.12 kB / 0.523 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.3473, allocations: 82.41 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3491, allocations: 1.183 MB / 0.5243 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.3492, allocations: 2.656 kB / 0.5243 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.683e-05/0.3493, allocations: 41.05 kB / 0.5243 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.578e-05/0.3494, allocations: 61.06 kB / 0.5244 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.3509, allocations: 0.9234 MB / 0.5253 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006119/0.3571, allocations: 4.78 MB / 0.5299 GB, free: 7.211 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3583, allocations: 0.6777 MB / 0.5306 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005327/0.3589, allocations: 375.3 kB / 0.531 GB, free: 6.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.301e-05/0.3589, allocations: 12.12 kB / 0.531 GB, free: 6.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006451/0.3596, allocations: 443.3 kB / 0.5314 GB, free: 6.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.435e-06/0.3596, allocations: 0 / 0.5314 GB, free: 6.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005511/0.3651, allocations: 2.47 MB / 0.5338 GB, free: 4.988 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.3652, allocations: 176.2 kB / 0.534 GB, free: 4.789 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007641/0.366, allocations: 0.5959 MB / 0.5345 GB, free: 4.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.517e-05/0.3661, allocations: 41.77 kB / 0.5346 GB, free: 4.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004717/0.3666, allocations: 499.9 kB / 0.5351 GB, free: 3.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.3668, allocations: 230.2 kB / 0.5353 GB, free: 3.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.367, allocations: 157.5 kB / 0.5354 GB, free: 3.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.3673, allocations: 386 kB / 0.5358 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/0.3677, allocations: 288.8 kB / 0.5361 GB, free: 3.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006598/0.3684, allocations: 0.5502 MB / 0.5366 GB, free: 2.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.3697, allocations: 0.9575 MB / 0.5375 GB, free: 1.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3697, allocations: 6.781 kB / 0.5376 GB, free: 1.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002279/0.372, allocations: 1.228 MB / 0.5388 GB, free: 1.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.652e-05/0.372, allocations: 34.11 kB / 0.5388 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.3721, allocations: 9.5 kB / 0.5388 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.3731, allocations: 336.8 kB / 0.5391 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004796/0.3736, allocations: 145.2 kB / 0.5393 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006487/0.3801, allocations: 5.403 MB / 0.5445 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005729/0.3807, allocations: 31.16 kB / 0.5446 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-05/0.3808, allocations: 42.23 kB / 0.5446 GB, free: 12.54 MB / 414.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.0005611/0.3814, allocations: 356.5 kB / 0.5449 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.3815, allocations: 84.11 kB / 0.545 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/0.3835, allocations: 1.038 MB / 0.546 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3835, allocations: 7.406 kB / 0.546 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.3835, allocations: 5.156 kB / 0.546 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.3835, allocations: 3.984 kB / 0.5461 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003509/0.387, allocations: 2.053 MB / 0.5481 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3871, allocations: 4 kB / 0.5481 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.3874, allocations: 71.91 kB / 0.5481 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008755/0.3882, allocations: 321.5 kB / 0.5484 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/0.3883, allocations: 23.92 kB / 0.5485 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00626/0.3946, allocations: 5.315 MB / 0.5536 GB, free: 3.844 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.3946, allocations: 3.938 kB / 0.5537 GB, free: 3.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.3965, allocations: 1.124 MB / 0.5548 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.3967, allocations: 152.5 kB / 0.5549 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.431e-05/0.3968, allocations: 16 kB / 0.5549 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.3972, allocations: 19.98 kB / 0.5549 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.3973, allocations: 68.3 kB / 0.555 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.554e-05/0.3974, allocations: 16 kB / 0.555 GB, free: 2.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005675/0.398, allocations: 419 kB / 0.5554 GB, free: 1.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.398, allocations: 4 kB / 0.5554 GB, free: 1.973 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001203/0.3992, allocations: 264 kB / 0.5557 GB, free: 1.715 MB / 414.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.002325/0.4015, allocations: 1.684 MB / 0.5573 GB, free: 15.97 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.4037, allocations: 1.156 MB / 0.5584 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4037, allocations: 8 kB / 0.5584 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.4048, allocations: 0.7604 MB / 0.5592 GB, free: 13.97 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000911/0.4057, allocations: 189.5 kB / 0.5594 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.4172, allocations: 7.313 MB / 0.5665 GB, free: 6.094 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008878/0.4181, allocations: 1.107 MB / 0.5676 GB, free: 4.961 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005077/0.4186, allocations: 174.3 kB / 0.5678 GB, free: 4.785 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004198/0.4191, allocations: 327.3 kB / 0.5681 GB, free: 4.469 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4191, allocations: 0 / 0.5681 GB, free: 4.469 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06795/0.487, allocations: 18.25 MB / 0.5859 GB, free: 2.395 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.4, allocations: 6.641 kB / 0.5859 GB, free: 2.391 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)