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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_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.001338/0.001338, allocations: 86.44 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.00164/0.00164, allocations: 183.8 kB / 17.21 MB, free: 6.316 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.558/1.558, allocations: 223.2 MB / 241.2 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.6436/0.6436, allocations: 38.08 MB / 330.4 MB, free: 14.1 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005439/0.0005441, allocations: 11.94 kB / 400.2 MB, free: 9.098 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5119/0.5125, allocations: 59.16 MB / 459.3 MB, free: 30.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01102/0.5235, allocations: 8.231 MB / 467.6 MB, free: 24.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007145/0.5308, allocations: 2.682 MB / 470.2 MB, free: 22.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002108/0.5329, allocations: 60.44 kB / 470.3 MB, free: 22.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.5344, allocations: 261 kB / 470.6 MB, free: 22.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003469/0.5379, allocations: 0.5888 MB / 471.1 MB, free: 22.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002462/0.5404, allocations: 463.3 kB / 471.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003588/0.544, allocations: 1.521 MB / 473.1 MB, free: 21.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002639/0.5467, allocations: 0.9941 MB / 474.1 MB, free: 20.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.5485, allocations: 461.3 kB / 474.6 MB, free: 20.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001818/0.5503, allocations: 0.6387 MB / 475.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.5505, allocations: 38.38 kB / 475.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007227/0.5512, allocations: 147.3 kB / 475.4 MB, free: 20.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006459/0.5519, allocations: 458.8 kB / 475.8 MB, free: 20.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003946/0.5523, allocations: 211.7 kB / 476 MB, free: 20.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.5535, allocations: 0.923 MB / 477 MB, free: 19.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.5535, allocations: 4 kB / 477 MB, free: 19.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.5535, allocations: 0 / 477 MB, free: 19.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.5535, allocations: 0 / 477 MB, free: 19.53 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.002294/0.5558, allocations: 1.138 MB / 478.1 MB, free: 18.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/0.5559, allocations: 9.438 kB / 478.1 MB, free: 18.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001962/0.5561, allocations: 141.9 kB / 478.2 MB, free: 18.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009815/0.5571, allocations: 166.5 kB / 478.4 MB, free: 18.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.5585, allocations: 0.6654 MB / 479.1 MB, free: 17.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.684e-05/0.5586, allocations: 60.38 kB / 479.1 MB, free: 17.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/0.5588, allocations: 85.47 kB / 479.2 MB, free: 17.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.5609, allocations: 1.167 MB / 480.4 MB, free: 17.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.496e-05/0.5609, allocations: 11.91 kB / 480.4 MB, free: 17.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.47e-05/0.561, allocations: 39.84 kB / 480.4 MB, free: 17.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/0.5612, allocations: 58.5 kB / 480.5 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.5631, allocations: 0.9218 MB / 481.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006936/0.57, allocations: 4.807 MB / 486.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.5713, allocations: 0.6733 MB / 486.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/0.5718, allocations: 383.7 kB / 487.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.471e-05/0.5719, allocations: 16.55 kB / 487.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006226/0.5725, allocations: 435.7 kB / 487.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.755e-06/0.5725, allocations: 0 / 487.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.005178/0.5777, allocations: 2.443 MB / 490.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.5778, allocations: 166.8 kB / 490.3 MB, free: 8.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006318/0.5785, allocations: 0.59 MB / 490.9 MB, free: 7.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.678e-05/0.5785, allocations: 37.7 kB / 490.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.5789, allocations: 490.5 kB / 491.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.5791, allocations: 220.9 kB / 491.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.449e-05/0.5791, allocations: 16 kB / 491.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5792, allocations: 386.8 kB / 492 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004065/0.5797, allocations: 285.8 kB / 492.3 MB, free: 6.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000491/0.5802, allocations: 0.5563 MB / 492.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005018/0.5807, allocations: 403.6 kB / 493.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.5807, allocations: 4 kB / 493.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001797/0.5825, allocations: 1.22 MB / 494.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.5825, allocations: 33.7 kB / 494.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.5826, allocations: 8 kB / 494.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000999/0.5836, allocations: 344.1 kB / 494.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.584, allocations: 151.7 kB / 495 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005209/0.5892, allocations: 4.942 MB / 500 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007272/0.59, allocations: 35.97 kB / 500 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.202e-05/0.5901, allocations: 43.98 kB / 0.4883 GB, free: 14.14 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.0006597/0.5908, allocations: 360.1 kB / 0.4887 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.5909, allocations: 75.06 kB / 0.4887 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.5929, allocations: 1.04 MB / 0.4897 GB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.5929, allocations: 8 kB / 0.4898 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.5929, allocations: 8 kB / 0.4898 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.5929, allocations: 3.984 kB / 0.4898 GB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003595/0.5965, allocations: 2.059 MB / 0.4918 GB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.5965, allocations: 0 / 0.4918 GB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.5969, allocations: 79.89 kB / 0.4918 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008667/0.5978, allocations: 313.7 kB / 0.4921 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/0.5978, allocations: 20 kB / 0.4922 GB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006206/0.604, allocations: 4.874 MB / 0.4969 GB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6041, allocations: 4 kB / 0.4969 GB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.6062, allocations: 1.115 MB / 0.498 GB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.6065, allocations: 148.2 kB / 0.4982 GB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.89e-05/0.6066, allocations: 12 kB / 0.4982 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.6069, allocations: 27.98 kB / 0.4982 GB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.6071, allocations: 52.42 kB / 0.4982 GB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.367e-05/0.6072, allocations: 20 kB / 0.4983 GB, free: 3.445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005866/0.6078, allocations: 415 kB / 0.4987 GB, free: 3.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6078, allocations: 0 / 0.4987 GB, free: 3.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00118/0.609, allocations: 268 kB / 0.4989 GB, free: 2.781 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.002216/0.6112, allocations: 1.687 MB / 0.5006 GB, free: 1.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.6134, allocations: 1.134 MB / 0.5017 GB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.6134, allocations: 0 / 0.5017 GB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.6146, allocations: 0.7721 MB / 0.5024 GB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.6156, allocations: 160.8 kB / 0.5026 GB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.6277, allocations: 5.351 MB / 0.5078 GB, free: 9.367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.629, allocations: 1.111 MB / 0.5089 GB, free: 8.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008994/0.6299, allocations: 178.3 kB / 0.5091 GB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006489/0.6306, allocations: 323.3 kB / 0.5094 GB, free: 7.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.6306, allocations: 0 / 0.5094 GB, free: 7.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04319/0.6738, allocations: 17.2 MB / 0.5262 GB, free: 6.785 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/0.6741, allocations: 220.1 kB / 0.5264 GB, free: 6.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/3.183, allocations: 0 / 0.5264 GB, free: 6.547 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat does not exist to compare? outputFormat=mat