Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.001089/0.001089, allocations: 176.4 kB / 8.349 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.818/1.818, 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.0009061/0.000906, allocations: 90.8 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1962/0.1962, allocations: 37.98 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.778e-05/1.781e-05, allocations: 4 kB / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1235, allocations: 56.33 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4919/0.6155, allocations: 103 MB / 0.5566 GB, free: 7.785 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.6158, allocations: 83.95 kB / 0.5567 GB, free: 7.703 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07243/0.6883, allocations: 25.66 MB / 0.5817 GB, free: 13.75 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6883, allocations: 0 / 0.5817 GB, free: 13.75 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.612e-05/0.6884, allocations: 20 kB / 0.5818 GB, free: 13.73 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.002036/0.6904, allocations: 1.088 MB / 0.5828 GB, free: 12.58 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.6905, allocations: 8.031 kB / 0.5828 GB, free: 12.57 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.6915, allocations: 182.5 kB / 0.583 GB, free: 12.39 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003089/0.6946, allocations: 1.354 MB / 0.5843 GB, free: 11 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.635e-05/0.6947, allocations: 28 kB / 0.5843 GB, free: 10.97 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.6948, allocations: 55.91 kB / 0.5844 GB, free: 10.91 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001358/0.6962, allocations: 0.816 MB / 0.5852 GB, free: 10.1 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.6978, allocations: 1.062 MB / 0.5862 GB, free: 8.969 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.6978, allocations: 4 kB / 0.5862 GB, free: 8.965 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.469e-05/0.6979, allocations: 7.969 kB / 0.5862 GB, free: 8.957 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-05/0.698, allocations: 49.98 kB / 0.5863 GB, free: 8.906 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005388/0.7034, allocations: 4.517 MB / 0.5907 GB, free: 4.207 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009574/0.7044, allocations: 0.6356 MB / 0.5913 GB, free: 3.551 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005539/0.7049, allocations: 444 kB / 0.5918 GB, free: 3.109 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.164e-05/0.705, allocations: 8.562 kB / 0.5918 GB, free: 3.102 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000698/0.7057, allocations: 0.5046 MB / 0.5923 GB, free: 2.566 MB / 427.1 MB Notification: Performance of pre-optimization done (n=73): time 3.056e-06/0.7057, allocations: 0 / 0.5923 GB, free: 2.566 MB / 427.1 MB Notification: Performance of matching and sorting (n=77): time 0.003937/0.7097, allocations: 2.342 MB / 0.5945 GB, free: 168 kB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.92e-05/0.7098, allocations: 171 kB / 0.5947 GB, free: 15.96 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004787/0.7103, allocations: 454.3 kB / 0.5951 GB, free: 15.51 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.7103, allocations: 33.69 kB / 0.5952 GB, free: 15.47 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/0.7107, allocations: 475 kB / 0.5956 GB, free: 15 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002395/0.7109, allocations: 252.3 kB / 0.5959 GB, free: 14.75 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.7109, allocations: 0 / 0.5959 GB, free: 14.75 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.7111, allocations: 390.8 kB / 0.5962 GB, free: 14.36 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000524/0.7117, allocations: 358.5 kB / 0.5966 GB, free: 14.01 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007339/0.7124, allocations: 0.6026 MB / 0.5972 GB, free: 13.31 MB / 443.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/0.7225, allocations: 3.804 MB / 0.6009 GB, free: 9.449 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.7225, allocations: 4 kB / 0.6009 GB, free: 9.445 MB / 443.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002255/0.7248, allocations: 1.228 MB / 0.6021 GB, free: 8.203 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.654e-05/0.7248, allocations: 33.7 kB / 0.6021 GB, free: 8.164 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.7249, allocations: 8 kB / 0.6021 GB, free: 8.156 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005928/0.7255, allocations: 239.1 kB / 0.6023 GB, free: 7.914 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.7267, allocations: 267.6 kB / 0.6026 GB, free: 7.652 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005162/0.7318, allocations: 5.406 MB / 0.6079 GB, free: 1.895 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.7325, allocations: 28.03 kB / 0.6079 GB, free: 1.867 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.016e-05/0.7326, allocations: 43.94 kB / 0.608 GB, free: 1.824 MB / 443.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.7328, allocations: 176.2 kB / 0.6081 GB, free: 1.641 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001729/0.7346, allocations: 0.9999 MB / 0.6091 GB, free: 0.6289 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.7347, allocations: 75.06 kB / 0.6092 GB, free: 0.5547 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.7366, allocations: 1.084 MB / 0.6102 GB, free: 15.45 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.927e-05/0.7367, allocations: 15.94 kB / 0.6102 GB, free: 15.43 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.7367, allocations: 4 kB / 0.6102 GB, free: 15.43 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.7367, allocations: 3.984 kB / 0.6103 GB, free: 15.42 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003407/0.7401, allocations: 2.088 MB / 0.6123 GB, free: 13.26 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.7401, allocations: 0 / 0.6123 GB, free: 13.26 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009738/0.7411, allocations: 203.9 kB / 0.6125 GB, free: 13.06 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006527/0.7418, allocations: 246.2 kB / 0.6127 GB, free: 12.81 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.826e-05/0.7418, allocations: 23.94 kB / 0.6127 GB, free: 12.79 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00477/0.7466, allocations: 5.31 MB / 0.6179 GB, free: 7.133 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.7466, allocations: 8.031 kB / 0.6179 GB, free: 7.125 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.7491, allocations: 1.666 MB / 0.6196 GB, free: 5.379 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002129/0.7494, allocations: 156.2 kB / 0.6197 GB, free: 5.207 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.7495, allocations: 12 kB / 0.6197 GB, free: 5.195 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003963/0.7499, allocations: 27.89 kB / 0.6197 GB, free: 5.168 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.7501, allocations: 60.38 kB / 0.6198 GB, free: 5.105 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.647e-05/0.7501, allocations: 23.98 kB / 0.6198 GB, free: 5.082 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0004215/0.7505, allocations: 355.2 kB / 0.6202 GB, free: 4.734 MB / 459.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7506, allocations: 0 / 0.6202 GB, free: 4.734 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001239/0.7518, allocations: 291.9 kB / 0.6204 GB, free: 4.449 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002992/0.7548, allocations: 2.697 MB / 0.6231 GB, free: 1.68 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.7568, allocations: 1.326 MB / 0.6244 GB, free: 316 kB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7568, allocations: 0 / 0.6244 GB, free: 316 kB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.7581, allocations: 0.8825 MB / 0.6252 GB, free: 15.38 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007821/0.7589, allocations: 147.1 kB / 0.6254 GB, free: 15.24 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.7623, allocations: 2.006 MB / 0.6273 GB, free: 13.17 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007655/0.7631, allocations: 1.139 MB / 0.6284 GB, free: 12 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0005895/0.7637, allocations: 210.3 kB / 0.6286 GB, free: 11.79 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.7642, allocations: 331.3 kB / 0.629 GB, free: 11.47 MB / 475.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7642, allocations: 0 / 0.629 GB, free: 11.47 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2995/1.064, allocations: 17.39 MB / 0.6459 GB, free: 136.5 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/1.064, allocations: 149.7 kB / 0.6461 GB, free: 136.3 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.498/3.562, allocations: 3.25 kB / 0.6461 GB, free: 136.3 MB / 475.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat does not exist to compare? outputFormat=mat