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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001915/0.001915, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008586/0.0008585, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1607/0.1607, allocations: 37.98 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.203e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 56.32 MB / 474.1 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4738/0.5884, allocations: 103.7 MB / 0.5643 GB, free: 15.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.5887, allocations: 88.12 kB / 0.5644 GB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07078/0.6595, allocations: 25.82 MB / 0.5896 GB, free: 8.863 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6595, allocations: 0 / 0.5896 GB, free: 8.863 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.417e-05/0.6596, allocations: 20 kB / 0.5896 GB, free: 8.844 MB / 394.7 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.001964/0.6616, allocations: 1.055 MB / 0.5906 GB, free: 7.793 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.341e-05/0.6617, allocations: 8.031 kB / 0.5907 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/0.6618, allocations: 145.5 kB / 0.5908 GB, free: 7.688 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008892/0.6627, allocations: 190.5 kB / 0.591 GB, free: 7.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003404/0.6662, allocations: 1.329 MB / 0.5923 GB, free: 6.363 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.21e-05/0.6663, allocations: 71.55 kB / 0.5923 GB, free: 6.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.6664, allocations: 80.31 kB / 0.5924 GB, free: 6.266 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.6682, allocations: 1.136 MB / 0.5935 GB, free: 5.359 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.6682, allocations: 7.906 kB / 0.5935 GB, free: 5.352 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-05/0.6683, allocations: 35.38 kB / 0.5936 GB, free: 5.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.14e-05/0.6684, allocations: 48.8 kB / 0.5936 GB, free: 5.297 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.6698, allocations: 0.8778 MB / 0.5945 GB, free: 4.672 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005975/0.6758, allocations: 4.709 MB / 0.5991 GB, free: 440 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.6769, allocations: 0.6691 MB / 0.5997 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005284/0.6775, allocations: 400.3 kB / 0.6001 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.647e-05/0.6775, allocations: 12.55 kB / 0.6001 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007156/0.6783, allocations: 454.7 kB / 0.6005 GB, free: 15.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=69): time 5.731e-06/0.6783, allocations: 0 / 0.6005 GB, free: 15.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.003172/0.6815, allocations: 1.7 MB / 0.6022 GB, free: 13.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.6816, allocations: 170.3 kB / 0.6024 GB, free: 13.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006572/0.6822, allocations: 0.5052 MB / 0.6029 GB, free: 13.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.274e-05/0.6823, allocations: 40.39 kB / 0.6029 GB, free: 13.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003655/0.6827, allocations: 481.1 kB / 0.6034 GB, free: 12.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.6829, allocations: 235.4 kB / 0.6036 GB, free: 12.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/0.6829, allocations: 19.12 kB / 0.6036 GB, free: 12.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.6832, allocations: 387.1 kB / 0.604 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.6836, allocations: 295.9 kB / 0.6043 GB, free: 12.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/0.6843, allocations: 0.5395 MB / 0.6048 GB, free: 11.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005635/0.6849, allocations: 418 kB / 0.6052 GB, free: 11.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.6849, allocations: 0 / 0.6052 GB, free: 11.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002081/0.687, allocations: 1.232 MB / 0.6064 GB, free: 10.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.618e-05/0.687, allocations: 41.66 kB / 0.6064 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/0.6871, allocations: 8.781 kB / 0.6064 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.6881, allocations: 342.3 kB / 0.6068 GB, free: 9.969 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/0.6886, allocations: 139.7 kB / 0.6069 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006098/0.6948, allocations: 4.942 MB / 0.6117 GB, free: 5.426 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006905/0.6955, allocations: 41.58 kB / 0.6118 GB, free: 5.398 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.391e-05/0.6956, allocations: 35.31 kB / 0.6118 GB, free: 5.371 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * Array equations: 1 * 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.0002681/0.6958, allocations: 196.5 kB / 0.612 GB, free: 5.176 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.696, allocations: 75.06 kB / 0.612 GB, free: 5.102 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.6981, allocations: 1.072 MB / 0.6131 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.6981, allocations: 11.98 kB / 0.6131 GB, free: 3.992 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.6981, allocations: 4 kB / 0.6131 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.6981, allocations: 8.125 kB / 0.6131 GB, free: 3.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003578/0.7017, allocations: 2.11 MB / 0.6152 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.311e-06/0.7017, allocations: 4 kB / 0.6152 GB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.702, allocations: 75.89 kB / 0.6153 GB, free: 1.707 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008901/0.7029, allocations: 317.8 kB / 0.6156 GB, free: 1.391 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.571e-05/0.703, allocations: 16 kB / 0.6156 GB, free: 1.375 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005628/0.7086, allocations: 4.876 MB / 0.6203 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.7087, allocations: 4 kB / 0.6203 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.7107, allocations: 1.203 MB / 0.6215 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/0.711, allocations: 148.2 kB / 0.6217 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.693e-05/0.7111, allocations: 15.94 kB / 0.6217 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/0.7114, allocations: 27.97 kB / 0.6217 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.7116, allocations: 52.44 kB / 0.6217 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.002e-05/0.7117, allocations: 23.98 kB / 0.6218 GB, free: 10.63 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006027/0.7123, allocations: 403.2 kB / 0.6222 GB, free: 10.24 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7123, allocations: 0 / 0.6222 GB, free: 10.24 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001214/0.7135, allocations: 303.9 kB / 0.6224 GB, free: 9.945 MB / 426.7 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.closed,switch.control[1],$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 1 * 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.002673/0.7162, allocations: 2.231 MB / 0.6246 GB, free: 7.629 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.7183, allocations: 1.172 MB / 0.6258 GB, free: 6.422 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.7184, allocations: 4.062 kB / 0.6258 GB, free: 6.418 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.7195, allocations: 0.767 MB / 0.6265 GB, free: 5.613 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008506/0.7204, allocations: 163.5 kB / 0.6267 GB, free: 5.453 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.7236, allocations: 1.601 MB / 0.6282 GB, free: 3.797 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008391/0.7245, allocations: 1.119 MB / 0.6293 GB, free: 2.652 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005595/0.7251, allocations: 178.2 kB / 0.6295 GB, free: 2.477 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004502/0.7255, allocations: 323.3 kB / 0.6298 GB, free: 2.16 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/0.7255, allocations: 3.938 kB / 0.6298 GB, free: 2.156 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0431/0.7687, allocations: 18.64 MB / 0.648 GB, free: 15.54 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/0.7689, allocations: 188.4 kB / 0.6482 GB, free: 15.31 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.597/3.366, allocations: 64 / 0.6482 GB, free: 15.31 MB / 458.7 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) 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