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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0008807/0.0008811, allocations: 91.05 kB / 16.31 MB, free: 5.66 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.001039/0.00104, allocations: 179.3 kB / 17.21 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.735/1.735, allocations: 205.4 MB / 223.4 MB, free: 5.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3441/0.3441, allocations: 38.06 MB / 309.7 MB, free: 8.84 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004918/0.0004919, allocations: 16 kB / 376.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1187, allocations: 56.34 MB / 432.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007963/0.1267, allocations: 8.215 MB / 441.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005051/0.1318, allocations: 2.736 MB / 443.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006917/0.1325, allocations: 59.62 kB / 444 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007428/0.1333, allocations: 266.1 kB / 444.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001546/0.1349, allocations: 0.5791 MB / 444.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001658/0.1365, allocations: 479.1 kB / 445.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001643/0.1382, allocations: 1.515 MB / 446.8 MB, free: 8.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.1399, allocations: 0.9982 MB / 447.8 MB, free: 7.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008189/0.1407, allocations: 453.9 kB / 448.2 MB, free: 7.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009227/0.1416, allocations: 0.6464 MB / 448.9 MB, free: 6.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.029e-05/0.1417, allocations: 36 kB / 448.9 MB, free: 6.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004315/0.1422, allocations: 151.8 kB / 449.1 MB, free: 6.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004181/0.1426, allocations: 454.8 kB / 449.5 MB, free: 5.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.1428, allocations: 205.2 kB / 449.7 MB, free: 5.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009261/0.1438, allocations: 0.9196 MB / 450.6 MB, free: 4.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.046e-06/0.1438, allocations: 4 kB / 450.6 MB, free: 4.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1438, allocations: 0 / 450.6 MB, free: 4.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.1438, allocations: 8 kB / 450.6 MB, free: 4.828 MB / 382.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.001985/0.1458, allocations: 1.138 MB / 451.8 MB, free: 3.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.1459, allocations: 12.03 kB / 451.8 MB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.146, allocations: 135.5 kB / 451.9 MB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008027/0.1468, allocations: 162.6 kB / 452.1 MB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.1479, allocations: 0.6717 MB / 452.7 MB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.006e-05/0.148, allocations: 65.94 kB / 452.8 MB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1481, allocations: 83.98 kB / 452.9 MB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1497, allocations: 1.163 MB / 454.1 MB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.28e-05/0.1498, allocations: 19.84 kB / 454.1 MB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.158e-05/0.1499, allocations: 32 kB / 454.1 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.39e-05/0.15, allocations: 61.97 kB / 454.2 MB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.1513, allocations: 0.9171 MB / 455.1 MB, free: 192 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2281/0.3795, allocations: 4.796 MB / 459.9 MB, free: 48.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009956/0.3805, allocations: 0.6676 MB / 460.5 MB, free: 48.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004653/0.381, allocations: 376.8 kB / 460.9 MB, free: 48.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.3811, allocations: 17.53 kB / 460.9 MB, free: 48.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005991/0.3817, allocations: 438.5 kB / 461.4 MB, free: 48.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=65): time 2.414e-06/0.3817, allocations: 2.844 kB / 461.4 MB, free: 48.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.004341/0.386, allocations: 2.444 MB / 463.8 MB, free: 47.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.3861, allocations: 167.6 kB / 464 MB, free: 47.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005615/0.3867, allocations: 0.5899 MB / 464.6 MB, free: 47.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.931e-05/0.3867, allocations: 37.95 kB / 464.6 MB, free: 47.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.3871, allocations: 490 kB / 465.1 MB, free: 47.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.3872, allocations: 227.8 kB / 465.3 MB, free: 47.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.403e-05/0.3873, allocations: 20.81 kB / 465.3 MB, free: 47.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3874, allocations: 387 kB / 465.7 MB, free: 46.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004491/0.3879, allocations: 279.5 kB / 466 MB, free: 46.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005256/0.3884, allocations: 0.5537 MB / 466.5 MB, free: 46.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004873/0.3889, allocations: 411.4 kB / 466.9 MB, free: 46.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3889, allocations: 3.312 kB / 466.9 MB, free: 46.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001648/0.3906, allocations: 1.22 MB / 468.1 MB, free: 45.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.3906, allocations: 32.33 kB / 468.2 MB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3906, allocations: 9.594 kB / 468.2 MB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008776/0.3915, allocations: 348.2 kB / 468.5 MB, free: 45.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.3919, allocations: 138.7 kB / 468.7 MB, free: 45.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004277/0.3962, allocations: 4.946 MB / 473.6 MB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004525/0.3967, allocations: 32.17 kB / 473.6 MB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.131e-05/0.3968, allocations: 44.03 kB / 473.7 MB, free: 42.06 MB / 382.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.0003908/0.3971, allocations: 351.5 kB / 474 MB, free: 41.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.445e-05/0.3972, allocations: 81.61 kB / 474.1 MB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.3987, allocations: 1.042 MB / 475.1 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3987, allocations: 9.594 kB / 475.2 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3987, allocations: 3.406 kB / 475.2 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.3988, allocations: 11.22 kB / 475.2 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/0.4014, allocations: 2.049 MB / 477.2 MB, free: 40.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.4014, allocations: 160 / 477.2 MB, free: 40.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.4016, allocations: 84.39 kB / 477.3 MB, free: 40.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007155/0.4024, allocations: 311.4 kB / 477.6 MB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.889e-05/0.4024, allocations: 11.44 kB / 477.6 MB, free: 40.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004084/0.4065, allocations: 4.883 MB / 482.5 MB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4065, allocations: 3.938 kB / 482.5 MB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.4079, allocations: 1.118 MB / 483.6 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.4081, allocations: 154.1 kB / 483.8 MB, free: 35.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.954e-05/0.4082, allocations: 22.14 kB / 483.8 MB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.4084, allocations: 17.58 kB / 483.8 MB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.424e-05/0.4085, allocations: 52.39 kB / 483.9 MB, free: 35.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-05/0.4086, allocations: 19.81 kB / 483.9 MB, free: 35.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003661/0.409, allocations: 414 kB / 484.3 MB, free: 35.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.409, allocations: 0 / 484.3 MB, free: 35.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008909/0.4099, allocations: 270.1 kB / 484.5 MB, free: 35.68 MB / 382.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.001568/0.4114, allocations: 1.679 MB / 486.2 MB, free: 34.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.4129, allocations: 1.135 MB / 487.4 MB, free: 34.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4129, allocations: 3.094 kB / 487.4 MB, free: 34.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007707/0.4137, allocations: 0.7613 MB / 488.1 MB, free: 33.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007277/0.4144, allocations: 168.4 kB / 488.3 MB, free: 33.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006271/0.4207, allocations: 5.353 MB / 493.6 MB, free: 30.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007003/0.4214, allocations: 1.103 MB / 494.7 MB, free: 30 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005455/0.422, allocations: 175.7 kB / 494.9 MB, free: 29.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003616/0.4224, allocations: 322.3 kB / 495.2 MB, free: 29.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4224, allocations: 3.625 kB / 495.2 MB, free: 29.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03621/0.4586, allocations: 17.2 MB / 0.5004 GB, free: 25.86 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.4588, allocations: 225.2 kB / 0.5006 GB, free: 25.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/2.644, allocations: 0 / 0.5006 GB, free: 25.61 MB / 382.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/linux/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) Environment - environmentSimulation: