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.001527/0.001527, allocations: 113 kB / 17.07 MB, free: 6.008 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.001728/0.001728, allocations: 191 kB / 18 MB, free: 5.09 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.329/1.329, 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.1779/0.1779, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2894, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.006742/0.2962, allocations: 7.576 MB / 0.511 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003251/0.2994, allocations: 2.323 MB / 0.5133 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003097/0.2998, allocations: 25.09 kB / 0.5133 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.3017, allocations: 0.8631 MB / 0.5141 GB, free: 24 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.3028, allocations: 0.5105 MB / 0.5146 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.3039, allocations: 451.2 kB / 0.5151 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001355/0.3053, allocations: 1.274 MB / 0.5163 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008649/0.3062, allocations: 0.6724 MB / 0.517 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008164/0.307, allocations: 0.5683 MB / 0.5175 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.308, allocations: 0.6462 MB / 0.5182 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001669/0.3082, allocations: 73.84 kB / 0.5182 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004806/0.3087, allocations: 211 kB / 0.5184 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005214/0.3092, allocations: 497.5 kB / 0.5189 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005943/0.3098, allocations: 0.5281 MB / 0.5194 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.3113, allocations: 1.247 MB / 0.5206 GB, free: 13.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3113, allocations: 5 kB / 0.5206 GB, free: 13.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3113, allocations: 0 / 0.5206 GB, free: 13.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.726e-05/0.3113, allocations: 0 / 0.5206 GB, free: 13.19 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.002644/0.314, allocations: 1.332 MB / 0.5219 GB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.314, allocations: 17.42 kB / 0.522 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.3142, allocations: 139.6 kB / 0.5221 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009804/0.3152, allocations: 178.8 kB / 0.5223 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.3167, allocations: 0.7347 MB / 0.523 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.535e-05/0.3168, allocations: 64.27 kB / 0.523 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.3169, allocations: 87.2 kB / 0.5231 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001894/0.3188, allocations: 1.179 MB / 0.5243 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/0.3189, allocations: 11.19 kB / 0.5243 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.123e-05/0.319, allocations: 33.5 kB / 0.5243 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.395e-05/0.3191, allocations: 60.62 kB / 0.5244 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.3206, allocations: 0.9239 MB / 0.5253 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00574/0.3263, allocations: 4.778 MB / 0.5299 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.3275, allocations: 0.6709 MB / 0.5306 GB, free: 6.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005238/0.3281, allocations: 381.1 kB / 0.531 GB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.836e-05/0.3281, allocations: 16.22 kB / 0.531 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006573/0.3288, allocations: 436.6 kB / 0.5314 GB, free: 6.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.334e-06/0.3288, allocations: 3.938 kB / 0.5314 GB, free: 6.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005328/0.3342, allocations: 2.478 MB / 0.5338 GB, free: 4.965 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.656e-05/0.3343, allocations: 164 kB / 0.534 GB, free: 4.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006708/0.3349, allocations: 0.6002 MB / 0.5346 GB, free: 4.426 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.335, allocations: 37.89 kB / 0.5346 GB, free: 4.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003344/0.3353, allocations: 496.1 kB / 0.5351 GB, free: 3.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.3355, allocations: 233 kB / 0.5353 GB, free: 3.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002183/0.3358, allocations: 157.5 kB / 0.5354 GB, free: 3.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3359, allocations: 386.8 kB / 0.5358 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004664/0.3364, allocations: 288.8 kB / 0.5361 GB, free: 3.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006415/0.3371, allocations: 0.558 MB / 0.5366 GB, free: 2.656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.3383, allocations: 0.957 MB / 0.5376 GB, free: 1.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.3383, allocations: 3.375 kB / 0.5376 GB, free: 1.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002097/0.3404, allocations: 1.226 MB / 0.5388 GB, free: 1.254 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/0.3404, allocations: 36.02 kB / 0.5388 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.3405, allocations: 9.344 kB / 0.5388 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.3415, allocations: 336.1 kB / 0.5391 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004932/0.342, allocations: 145.7 kB / 0.5393 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006043/0.3481, allocations: 5.391 MB / 0.5445 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005717/0.3487, allocations: 39.16 kB / 0.5446 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/0.3487, allocations: 38.23 kB / 0.5446 GB, free: 12.53 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.0005081/0.3493, allocations: 356.5 kB / 0.5449 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.3494, allocations: 83.52 kB / 0.545 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.3514, allocations: 1.042 MB / 0.546 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.3514, allocations: 6.812 kB / 0.5461 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.3514, allocations: 4.719 kB / 0.5461 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.3514, allocations: 9.891 kB / 0.5461 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.3548, allocations: 2.049 MB / 0.5481 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3549, allocations: 4 kB / 0.5481 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.3552, allocations: 76.06 kB / 0.5481 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008694/0.3561, allocations: 305.5 kB / 0.5484 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.142e-05/0.3561, allocations: 27.91 kB / 0.5485 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005662/0.3618, allocations: 5.334 MB / 0.5537 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3618, allocations: 0 / 0.5537 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.3636, allocations: 1.12 MB / 0.5548 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001949/0.3638, allocations: 156.5 kB / 0.5549 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.3639, allocations: 19.98 kB / 0.5549 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003677/0.3643, allocations: 19.98 kB / 0.555 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.3645, allocations: 60.36 kB / 0.555 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.3645, allocations: 16 kB / 0.555 GB, free: 2.348 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004755/0.365, allocations: 419 kB / 0.5554 GB, free: 1.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.365, allocations: 0 / 0.5554 GB, free: 1.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009429/0.366, allocations: 268 kB / 0.5557 GB, free: 1.68 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.002107/0.3681, allocations: 1.684 MB / 0.5573 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.3699, allocations: 1.148 MB / 0.5584 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3699, allocations: 8 kB / 0.5585 GB, free: 14.74 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.371, allocations: 0.7681 MB / 0.5592 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009337/0.372, allocations: 185.7 kB / 0.5594 GB, free: 13.76 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.3822, allocations: 7.32 MB / 0.5665 GB, free: 6.051 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007309/0.3829, allocations: 1.107 MB / 0.5676 GB, free: 4.918 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004623/0.3834, allocations: 174.3 kB / 0.5678 GB, free: 4.742 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.3838, allocations: 323.3 kB / 0.5681 GB, free: 4.43 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3838, allocations: 0 / 0.5681 GB, free: 4.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04267/0.4265, allocations: 18.26 MB / 0.5859 GB, free: 2.355 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/13.95, allocations: 10.81 kB / 0.5859 GB, free: 2.348 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)