Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",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.001086/0.001086, allocations: 176.4 kB / 8.346 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.474/1.474, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.0009521/0.000952, allocations: 91.41 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.1686/0.1686, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.796e-05/1.798e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 56.33 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3893/0.4926, allocations: 99.51 MB / 0.5532 GB, free: 11.26 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004103/0.4931, allocations: 91.94 kB / 0.5533 GB, free: 11.17 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04258/0.5357, allocations: 14.83 MB / 0.5678 GB, free: 12.17 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.5357, allocations: 3.938 kB / 0.5678 GB, free: 12.16 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.238e-05/0.5358, allocations: 20 kB / 0.5678 GB, free: 12.14 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001726/0.5375, allocations: 0.9648 MB / 0.5688 GB, free: 11.11 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.5376, allocations: 12.03 kB / 0.5688 GB, free: 11.1 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.5378, allocations: 90.97 kB / 0.5689 GB, free: 11.01 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002576/0.5404, allocations: 1.065 MB / 0.5699 GB, free: 9.906 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.002e-05/0.5404, allocations: 28 kB / 0.5699 GB, free: 9.879 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-05/0.5405, allocations: 40 kB / 0.57 GB, free: 9.84 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000927/0.5415, allocations: 0.5414 MB / 0.5705 GB, free: 9.297 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.5426, allocations: 0.7165 MB / 0.5712 GB, free: 8.535 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.5426, allocations: 7.938 kB / 0.5712 GB, free: 8.527 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.839e-05/0.5427, allocations: 7.984 kB / 0.5712 GB, free: 8.52 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.5427, allocations: 16 kB / 0.5712 GB, free: 8.504 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004025/0.5468, allocations: 2.835 MB / 0.574 GB, free: 5.566 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009176/0.5477, allocations: 0.566 MB / 0.5745 GB, free: 4.984 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008048/0.5485, allocations: 455.2 kB / 0.575 GB, free: 4.535 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.804e-05/0.5486, allocations: 8.562 kB / 0.575 GB, free: 4.527 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009051/0.5495, allocations: 0.5807 MB / 0.5756 GB, free: 3.914 MB / 411.1 MB Notification: Performance of pre-optimization done (n=81): time 2.465e-06/0.5495, allocations: 0 / 0.5756 GB, free: 3.914 MB / 411.1 MB Notification: Performance of matching and sorting (n=82): time 0.003026/0.5525, allocations: 1.713 MB / 0.5772 GB, free: 2.141 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.5527, allocations: 204.7 kB / 0.5774 GB, free: 1.898 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004881/0.5532, allocations: 389.2 kB / 0.5778 GB, free: 1.512 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.5532, allocations: 33.7 kB / 0.5778 GB, free: 1.473 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.5535, allocations: 344.1 kB / 0.5782 GB, free: 1.129 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.5537, allocations: 221 kB / 0.5784 GB, free: 0.9102 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.5538, allocations: 0 / 0.5784 GB, free: 0.9102 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002106/0.554, allocations: 386.7 kB / 0.5787 GB, free: 0.5234 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004402/0.5544, allocations: 286.5 kB / 0.579 GB, free: 248 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005729/0.555, allocations: 470.6 kB / 0.5795 GB, free: 15.72 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004494/0.5555, allocations: 316.4 kB / 0.5798 GB, free: 15.41 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.5555, allocations: 3.938 kB / 0.5798 GB, free: 15.41 MB / 427.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001483/0.557, allocations: 0.9069 MB / 0.5806 GB, free: 14.49 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.479e-05/0.557, allocations: 63.39 kB / 0.5807 GB, free: 14.41 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.557, allocations: 4.531 kB / 0.5807 GB, free: 14.41 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004601/0.5575, allocations: 137.5 kB / 0.5808 GB, free: 14.27 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008518/0.5584, allocations: 211.7 kB / 0.581 GB, free: 14.06 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002771/0.5612, allocations: 2.941 MB / 0.5839 GB, free: 10.89 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000473/0.5616, allocations: 40.02 kB / 0.584 GB, free: 10.85 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-05/0.5617, allocations: 36 kB / 0.584 GB, free: 10.82 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * 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 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002592/0.562, allocations: 213.5 kB / 0.5842 GB, free: 10.59 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001264/0.5633, allocations: 0.8056 MB / 0.585 GB, free: 9.773 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.734e-05/0.5634, allocations: 71.11 kB / 0.585 GB, free: 9.703 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.5648, allocations: 0.8451 MB / 0.5859 GB, free: 8.84 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5648, allocations: 8 kB / 0.5859 GB, free: 8.832 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.5648, allocations: 4 kB / 0.5859 GB, free: 8.828 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.5648, allocations: 3.984 kB / 0.5859 GB, free: 8.824 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/0.5674, allocations: 1.652 MB / 0.5875 GB, free: 7.117 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.5674, allocations: 7.953 kB / 0.5875 GB, free: 7.109 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00067/0.5681, allocations: 155.8 kB / 0.5877 GB, free: 6.957 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005239/0.5686, allocations: 141.6 kB / 0.5878 GB, free: 6.812 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.598e-05/0.5687, allocations: 19.95 kB / 0.5878 GB, free: 6.793 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.5713, allocations: 2.945 MB / 0.5907 GB, free: 3.617 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.5713, allocations: 0 / 0.5907 GB, free: 3.617 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.5734, allocations: 1.381 MB / 0.592 GB, free: 2.195 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003331/0.5737, allocations: 196.3 kB / 0.5922 GB, free: 1.984 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.5738, allocations: 23.98 kB / 0.5922 GB, free: 1.961 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/0.5742, allocations: 35.95 kB / 0.5923 GB, free: 1.926 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.5744, allocations: 84.61 kB / 0.5924 GB, free: 1.844 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/0.5745, allocations: 35.97 kB / 0.5924 GB, free: 1.809 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0003818/0.5749, allocations: 286.9 kB / 0.5927 GB, free: 1.527 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5749, allocations: 3.938 kB / 0.5927 GB, free: 1.523 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0007687/0.5757, allocations: 192 kB / 0.5929 GB, free: 1.336 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * 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 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002511/0.5782, allocations: 2.115 MB / 0.5949 GB, free: 15.18 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.001955/0.5801, allocations: 1.117 MB / 0.596 GB, free: 14.01 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5802, allocations: 4 kB / 0.596 GB, free: 14.01 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.5815, allocations: 0.8174 MB / 0.5968 GB, free: 13.15 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006911/0.5822, allocations: 114.5 kB / 0.5969 GB, free: 13.04 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.5854, allocations: 1.557 MB / 0.5984 GB, free: 11.42 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006072/0.586, allocations: 1.006 MB / 0.5994 GB, free: 10.39 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0004416/0.5865, allocations: 149.9 kB / 0.5996 GB, free: 10.24 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/0.5868, allocations: 267.3 kB / 0.5998 GB, free: 9.98 MB / 443.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5869, allocations: 0 / 0.5998 GB, free: 9.98 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03816/0.625, allocations: 14.23 MB / 0.6137 GB, free: 11.75 MB / 459.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/0.6253, allocations: 152.4 kB / 0.6139 GB, free: 11.55 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.559/3.184, allocations: 0 / 0.6139 GB, free: 11.55 MB / 459.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault_res.mat does not exist to compare? outputFormat=mat