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.001769/0.001769, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008961/0.0008961, allocations: 90.41 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1763/0.1763, allocations: 37.99 MB / 348 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.838e-05, allocations: 4 kB / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.122, allocations: 56.32 MB / 467 MB, free: 6.48 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4219/0.544, allocations: 103 MB / 0.5567 GB, free: 7.758 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.5443, allocations: 83.95 kB / 0.5567 GB, free: 7.676 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0684/0.6127, allocations: 25.59 MB / 0.5817 GB, free: 13.78 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6127, allocations: 0 / 0.5817 GB, free: 13.78 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.039e-05/0.6128, allocations: 24.75 kB / 0.5818 GB, free: 13.76 MB / 427.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.001731/0.6145, allocations: 1.058 MB / 0.5828 GB, free: 12.64 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.6146, allocations: 12.03 kB / 0.5828 GB, free: 12.63 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008465/0.6154, allocations: 178.5 kB / 0.583 GB, free: 12.45 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003243/0.6187, allocations: 1.335 MB / 0.5843 GB, free: 11.08 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.6187, allocations: 31.98 kB / 0.5843 GB, free: 11.05 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.6189, allocations: 48 kB / 0.5843 GB, free: 11 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001371/0.6203, allocations: 0.734 MB / 0.5851 GB, free: 10.27 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.6218, allocations: 1.023 MB / 0.5861 GB, free: 9.164 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.356e-05/0.6218, allocations: 11.84 kB / 0.5861 GB, free: 9.152 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.6219, allocations: 7.984 kB / 0.5861 GB, free: 9.145 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.991e-05/0.622, allocations: 45.98 kB / 0.5861 GB, free: 9.098 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005157/0.6271, allocations: 4.541 MB / 0.5906 GB, free: 4.367 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009728/0.6281, allocations: 0.6398 MB / 0.5912 GB, free: 3.711 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004982/0.6286, allocations: 371.9 kB / 0.5915 GB, free: 3.344 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.847e-05/0.6287, allocations: 16.55 kB / 0.5916 GB, free: 3.328 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005751/0.6293, allocations: 426.7 kB / 0.592 GB, free: 2.883 MB / 427.1 MB Notification: Performance of pre-optimization done (n=69): time 2.615e-06/0.6293, allocations: 0 / 0.592 GB, free: 2.883 MB / 427.1 MB Notification: Performance of matching and sorting (n=70): time 0.002902/0.6322, allocations: 1.575 MB / 0.5935 GB, free: 1.289 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.631e-05/0.6323, allocations: 166.8 kB / 0.5937 GB, free: 1.09 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005503/0.6329, allocations: 475.3 kB / 0.5941 GB, free: 0.6172 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 4.345e-05/0.6329, allocations: 29.7 kB / 0.5941 GB, free: 0.582 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.6333, allocations: 470.8 kB / 0.5946 GB, free: 116 kB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/0.6335, allocations: 236.7 kB / 0.5948 GB, free: 15.88 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.6336, allocations: 0 / 0.5948 GB, free: 15.88 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.6337, allocations: 382.8 kB / 0.5952 GB, free: 15.49 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.6341, allocations: 274.5 kB / 0.5954 GB, free: 15.22 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005475/0.6347, allocations: 0.526 MB / 0.596 GB, free: 14.58 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005693/0.6353, allocations: 381.8 kB / 0.5963 GB, free: 14.21 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.874e-06/0.6353, allocations: 4 kB / 0.5963 GB, free: 14.2 MB / 443.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001977/0.6373, allocations: 1.104 MB / 0.5974 GB, free: 13.08 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.762e-05/0.6373, allocations: 33.7 kB / 0.5974 GB, free: 13.04 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.6374, allocations: 8 kB / 0.5974 GB, free: 13.04 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.6384, allocations: 338 kB / 0.5978 GB, free: 12.7 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004899/0.6389, allocations: 143.7 kB / 0.5979 GB, free: 12.56 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005242/0.6442, allocations: 4.758 MB / 0.6025 GB, free: 7.551 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006782/0.6449, allocations: 28.02 kB / 0.6026 GB, free: 7.523 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.135e-05/0.645, allocations: 39.98 kB / 0.6026 GB, free: 7.484 MB / 443.1 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.0002446/0.6452, allocations: 160.3 kB / 0.6028 GB, free: 7.316 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001631/0.6469, allocations: 0.9094 MB / 0.6037 GB, free: 6.398 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.647, allocations: 75.02 kB / 0.6037 GB, free: 6.324 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/0.6488, allocations: 0.9801 MB / 0.6047 GB, free: 5.324 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/0.6488, allocations: 15.98 kB / 0.6047 GB, free: 5.309 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.6488, allocations: 4 kB / 0.6047 GB, free: 5.305 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.6488, allocations: 4 kB / 0.6047 GB, free: 5.301 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003277/0.6521, allocations: 1.894 MB / 0.6066 GB, free: 3.34 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.6521, allocations: 4.094 kB / 0.6066 GB, free: 3.336 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.6525, allocations: 83.89 kB / 0.6066 GB, free: 3.254 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009031/0.6534, allocations: 309.4 kB / 0.6069 GB, free: 2.945 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/0.6535, allocations: 4 kB / 0.6069 GB, free: 2.941 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0055/0.659, allocations: 4.715 MB / 0.6115 GB, free: 13.96 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.659, allocations: 0 / 0.6115 GB, free: 13.96 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.6609, allocations: 1.124 MB / 0.6126 GB, free: 12.77 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002127/0.6611, allocations: 148.2 kB / 0.6128 GB, free: 12.6 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.028e-05/0.6612, allocations: 8 kB / 0.6128 GB, free: 12.59 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003493/0.6616, allocations: 15.97 kB / 0.6128 GB, free: 12.58 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.6617, allocations: 56.44 kB / 0.6129 GB, free: 12.52 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.6618, allocations: 23.94 kB / 0.6129 GB, free: 12.5 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.000462/0.6622, allocations: 355.2 kB / 0.6132 GB, free: 12.16 MB / 459.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6622, allocations: 0 / 0.6132 GB, free: 12.16 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.00108/0.6633, allocations: 260 kB / 0.6135 GB, free: 11.91 MB / 459.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.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.002316/0.6656, allocations: 2.137 MB / 0.6156 GB, free: 9.691 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.6674, allocations: 1.097 MB / 0.6166 GB, free: 8.566 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.6674, allocations: 0 / 0.6166 GB, free: 8.566 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.6685, allocations: 0.7379 MB / 0.6173 GB, free: 7.797 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008123/0.6693, allocations: 151.1 kB / 0.6175 GB, free: 7.645 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.6723, allocations: 1.522 MB / 0.619 GB, free: 6.062 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007967/0.6731, allocations: 1.12 MB / 0.6201 GB, free: 4.918 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.000532/0.6736, allocations: 182 kB / 0.6202 GB, free: 4.738 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.674, allocations: 327.3 kB / 0.6206 GB, free: 4.418 MB / 459.1 MB Notification: Performance of SimCode: time 1.122e-06/0.674, allocations: 0 / 0.6206 GB, free: 4.418 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0406/0.7146, allocations: 16.85 MB / 0.637 GB, free: 3.559 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002338/0.7149, allocations: 156 kB / 0.6372 GB, free: 3.363 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.411/3.126, allocations: 0 / 0.6372 GB, free: 3.363 MB / 475.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) 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