Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.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.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker",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.0009329/0.0009329, allocations: 180.9 kB / 16.38 MB, free: 5.766 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.189/1.189, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0009032/0.000903, allocations: 90.98 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1569/0.1569, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002748, allocations: 12 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2504, allocations: 56.33 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1272/0.3776, allocations: 105.3 MB / 0.572 GB, free: 13.04 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.378, allocations: 95.95 kB / 0.5721 GB, free: 12.94 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0522/0.4302, allocations: 19.54 MB / 0.5912 GB, free: 9.207 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4302, allocations: 3.938 kB / 0.5912 GB, free: 9.203 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.981e-05/0.4303, allocations: 16 kB / 0.5912 GB, free: 9.188 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.00268/0.4329, allocations: 1.156 MB / 0.5924 GB, free: 7.961 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.433, allocations: 8.031 kB / 0.5924 GB, free: 7.953 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002624/0.4333, allocations: 122.9 kB / 0.5925 GB, free: 7.824 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008032/0.4341, allocations: 138.8 kB / 0.5926 GB, free: 7.688 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002477/0.4366, allocations: 1.034 MB / 0.5936 GB, free: 6.613 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.194e-05/0.4366, allocations: 61.94 kB / 0.5937 GB, free: 6.551 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.4368, allocations: 75.97 kB / 0.5938 GB, free: 6.477 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.4384, allocations: 1.052 MB / 0.5948 GB, free: 5.359 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.4384, allocations: 7.938 kB / 0.5948 GB, free: 5.352 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.899e-05/0.4385, allocations: 35.97 kB / 0.5948 GB, free: 5.316 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.518e-05/0.4386, allocations: 49.98 kB / 0.5949 GB, free: 5.266 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.4399, allocations: 0.8938 MB / 0.5957 GB, free: 4.371 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004858/0.4448, allocations: 4.154 MB / 0.5998 GB, free: 56 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.4459, allocations: 0.7042 MB / 0.6005 GB, free: 15.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.351e-05/0.446, allocations: 16.55 kB / 0.6005 GB, free: 15.31 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009541/0.4469, allocations: 0.6553 MB / 0.6011 GB, free: 14.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.906e-06/0.4469, allocations: 4 kB / 0.6011 GB, free: 14.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=97): time 0.004297/0.4512, allocations: 3.218 MB / 0.6043 GB, free: 11.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/0.4513, allocations: 157.4 kB / 0.6044 GB, free: 11.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.4518, allocations: 404.9 kB / 0.6048 GB, free: 10.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.741e-05/0.4519, allocations: 53.69 kB / 0.6049 GB, free: 10.58 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002275/0.4521, allocations: 371.9 kB / 0.6052 GB, free: 10.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.4523, allocations: 300 kB / 0.6055 GB, free: 9.914 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.4524, allocations: 20 kB / 0.6055 GB, free: 9.895 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.4525, allocations: 374.8 kB / 0.6059 GB, free: 9.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005692/0.4531, allocations: 406.1 kB / 0.6063 GB, free: 9.117 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007127/0.4538, allocations: 0.606 MB / 0.6069 GB, free: 8.434 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000672/0.4545, allocations: 0.5004 MB / 0.6074 GB, free: 7.926 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4545, allocations: 4 kB / 0.6074 GB, free: 7.922 MB / 442.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002658/0.4572, allocations: 1.533 MB / 0.6089 GB, free: 6.371 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.4572, allocations: 33.7 kB / 0.6089 GB, free: 6.332 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002179/0.4594, allocations: 1.196 MB / 0.6101 GB, free: 5.133 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.4607, allocations: 436.4 kB / 0.6105 GB, free: 4.703 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004796/0.4612, allocations: 131.7 kB / 0.6106 GB, free: 4.574 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006659/0.4678, allocations: 4.874 MB / 0.6154 GB, free: 15.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006444/0.4685, allocations: 83.83 kB / 0.6154 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.876e-05/0.4686, allocations: 36 kB / 0.6155 GB, free: 15.44 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 99 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0004844/0.4691, allocations: 351.1 kB / 0.6158 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.4692, allocations: 71.19 kB / 0.6159 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.4709, allocations: 1.169 MB / 0.617 GB, free: 13.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.38e-05/0.471, allocations: 16 kB / 0.617 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.471, allocations: 0 / 0.617 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.471, allocations: 7.938 kB / 0.617 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.4741, allocations: 2.23 MB / 0.6192 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.4741, allocations: 4 kB / 0.6192 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006275/0.4748, allocations: 139.8 kB / 0.6194 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001504/0.4749, allocations: 86.58 kB / 0.6194 GB, free: 11.26 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.966e-05/0.475, allocations: 19.98 kB / 0.6195 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/0.4774, allocations: 3.926 MB / 0.6233 GB, free: 6.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4774, allocations: 7.969 kB / 0.6233 GB, free: 6.902 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002411/0.4798, allocations: 1.852 MB / 0.6251 GB, free: 4.992 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.48, allocations: 140.3 kB / 0.6252 GB, free: 4.836 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.435e-05/0.4801, allocations: 20 kB / 0.6253 GB, free: 4.816 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000482/0.4806, allocations: 75.88 kB / 0.6253 GB, free: 4.742 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.4808, allocations: 84.86 kB / 0.6254 GB, free: 4.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.129e-05/0.4809, allocations: 32 kB / 0.6254 GB, free: 4.629 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000346/0.4812, allocations: 311.1 kB / 0.6257 GB, free: 4.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4812, allocations: 4 kB / 0.6257 GB, free: 4.316 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009077/0.4821, allocations: 275.9 kB / 0.626 GB, free: 4.047 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_b.closed,breaker.breaker_a.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_c.open,breaker.breaker_a.open,breaker.breaker_b.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * 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%) 1,(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.002948/0.4851, allocations: 2.683 MB / 0.6286 GB, free: 1.309 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00219/0.4873, allocations: 1.377 MB / 0.63 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4873, allocations: 0 / 0.63 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.4884, allocations: 0.958 MB / 0.6309 GB, free: 14.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.489, allocations: 106.5 kB / 0.631 GB, free: 14.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008916/0.4979, allocations: 9.49 MB / 0.6403 GB, free: 5.109 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.4985, allocations: 1.045 MB / 0.6413 GB, free: 4.035 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005456/0.4991, allocations: 189.8 kB / 0.6415 GB, free: 3.848 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003984/0.4995, allocations: 287.3 kB / 0.6418 GB, free: 3.566 MB / 474.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4995, allocations: 0 / 0.6418 GB, free: 3.566 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1999/0.6994, allocations: 17.88 MB / 0.6592 GB, free: 140 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/0.6996, allocations: 219.1 kB / 0.6594 GB, free: 139.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.923, allocations: 0 / 0.6594 GB, free: 139.7 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker_res.mat does not exist to compare? outputFormat=mat