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.001538/0.001537, allocations: 176.6 kB / 8.35 MB, free: 0.7188 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.745/1.745, 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.0008746/0.0008749, allocations: 84.2 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.2232/0.2232, allocations: 37.99 MB / 348 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 4.179e-05/4.101e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1574, allocations: 56.33 MB / 467 MB, free: 6.457 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4703/0.6278, allocations: 104.6 MB / 0.5582 GB, free: 6.184 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/0.6282, allocations: 87.95 kB / 0.5583 GB, free: 6.098 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05839/0.6866, allocations: 19.36 MB / 0.5772 GB, free: 2.555 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6867, allocations: 0 / 0.5772 GB, free: 2.555 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.732e-05/0.6867, allocations: 16 kB / 0.5772 GB, free: 2.539 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002319/0.689, allocations: 1.067 MB / 0.5782 GB, free: 1.41 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.6891, allocations: 12.03 kB / 0.5782 GB, free: 1.398 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007454/0.6899, allocations: 130.8 kB / 0.5784 GB, free: 1.27 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.6927, allocations: 1.017 MB / 0.5794 GB, free: 212 kB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.302e-05/0.6927, allocations: 28 kB / 0.5794 GB, free: 184 kB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.6929, allocations: 47.91 kB / 0.5794 GB, free: 136 kB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001412/0.6943, allocations: 0.7809 MB / 0.5802 GB, free: 15.35 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.6958, allocations: 0.9478 MB / 0.5811 GB, free: 14.34 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.6959, allocations: 7.922 kB / 0.5811 GB, free: 14.34 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.041e-05/0.6959, allocations: 8 kB / 0.5811 GB, free: 14.33 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.048e-05/0.696, allocations: 45.97 kB / 0.5812 GB, free: 14.29 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005889/0.7019, allocations: 3.995 MB / 0.5851 GB, free: 10.14 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.7032, allocations: 0.668 MB / 0.5857 GB, free: 9.453 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006678/0.7039, allocations: 435.8 kB / 0.5862 GB, free: 9.023 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.378e-05/0.704, allocations: 12.55 kB / 0.5862 GB, free: 9.008 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.7051, allocations: 0.622 MB / 0.5868 GB, free: 8.359 MB / 427.1 MB Notification: Performance of pre-optimization done (n=96): time 3.717e-06/0.7051, allocations: 0 / 0.5868 GB, free: 8.359 MB / 427.1 MB Notification: Performance of matching and sorting (n=97): time 0.004214/0.7093, allocations: 2.121 MB / 0.5888 GB, free: 6.176 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.7094, allocations: 149.3 kB / 0.589 GB, free: 6 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005516/0.71, allocations: 389.1 kB / 0.5894 GB, free: 5.617 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.7101, allocations: 33.73 kB / 0.5894 GB, free: 5.578 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003553/0.7104, allocations: 375.8 kB / 0.5897 GB, free: 5.203 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002714/0.7107, allocations: 279.9 kB / 0.59 GB, free: 4.926 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.091e-05/0.7108, allocations: 0 / 0.59 GB, free: 4.926 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.711, allocations: 386.8 kB / 0.5904 GB, free: 4.539 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005924/0.7116, allocations: 370.5 kB / 0.5907 GB, free: 4.176 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007673/0.7123, allocations: 0.5771 MB / 0.5913 GB, free: 3.516 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007784/0.7131, allocations: 465.5 kB / 0.5917 GB, free: 3.066 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.7132, allocations: 3.938 kB / 0.5917 GB, free: 3.062 MB / 427.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002898/0.7161, allocations: 1.399 MB / 0.5931 GB, free: 1.648 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/0.7161, allocations: 33.7 kB / 0.5931 GB, free: 1.609 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002276/0.7184, allocations: 1.133 MB / 0.5943 GB, free: 480 kB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.7198, allocations: 428.5 kB / 0.5947 GB, free: 48 kB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/0.7203, allocations: 139.7 kB / 0.5948 GB, free: 15.91 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007586/0.7279, allocations: 4.474 MB / 0.5992 GB, free: 11.31 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009285/0.7289, allocations: 59.97 kB / 0.5992 GB, free: 11.25 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.337e-05/0.729, allocations: 36 kB / 0.5993 GB, free: 11.22 MB / 443.1 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 () * 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.0003707/0.7294, allocations: 189.6 kB / 0.5994 GB, free: 11.02 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00185/0.7313, allocations: 0.9625 MB / 0.6004 GB, free: 10.05 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.7314, allocations: 63.25 kB / 0.6004 GB, free: 9.984 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.7333, allocations: 1.054 MB / 0.6015 GB, free: 8.91 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-05/0.7334, allocations: 27.98 kB / 0.6015 GB, free: 8.883 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.7334, allocations: 0 / 0.6015 GB, free: 8.883 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.7334, allocations: 3.984 kB / 0.6015 GB, free: 8.879 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003747/0.7372, allocations: 2.01 MB / 0.6035 GB, free: 6.809 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.303e-06/0.7372, allocations: 0 / 0.6035 GB, free: 6.809 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007306/0.7379, allocations: 135.8 kB / 0.6036 GB, free: 6.676 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001819/0.7381, allocations: 86.61 kB / 0.6037 GB, free: 6.582 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.785e-05/0.7382, allocations: 11.98 kB / 0.6037 GB, free: 6.57 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003227/0.7414, allocations: 3.769 MB / 0.6074 GB, free: 2.457 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.7414, allocations: 4.281 kB / 0.6074 GB, free: 2.453 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00302/0.7445, allocations: 1.725 MB / 0.6091 GB, free: 0.6719 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003486/0.7448, allocations: 144.2 kB / 0.6092 GB, free: 0.5117 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.745, allocations: 15.98 kB / 0.6092 GB, free: 0.4961 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004951/0.7455, allocations: 47.94 kB / 0.6092 GB, free: 460 kB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.7457, allocations: 92.59 kB / 0.6093 GB, free: 368 kB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.721e-05/0.7458, allocations: 27.98 kB / 0.6094 GB, free: 340 kB / 443.1 MB Notification: Performance of sorting global known variables: time 0.000448/0.7462, allocations: 286.9 kB / 0.6096 GB, free: 52 kB / 443.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7462, allocations: 0 / 0.6096 GB, free: 52 kB / 443.1 MB Notification: Performance of remove unused functions: time 0.001221/0.7475, allocations: 244.1 kB / 0.6099 GB, free: 15.81 MB / 459.1 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) * 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.003375/0.7508, allocations: 2.546 MB / 0.6124 GB, free: 13.21 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.002571/0.7534, allocations: 1.292 MB / 0.6136 GB, free: 11.9 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.7535, allocations: 0 / 0.6136 GB, free: 11.9 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.7546, allocations: 0.9186 MB / 0.6145 GB, free: 10.93 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007498/0.7554, allocations: 81.98 kB / 0.6146 GB, free: 10.86 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.7588, allocations: 1.595 MB / 0.6162 GB, free: 9.211 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007476/0.7596, allocations: 1.045 MB / 0.6172 GB, free: 8.137 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0006101/0.7602, allocations: 193.8 kB / 0.6174 GB, free: 7.945 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/0.7607, allocations: 287.3 kB / 0.6176 GB, free: 7.664 MB / 459.1 MB Notification: Performance of SimCode: time 8.52e-07/0.7607, allocations: 0 / 0.6176 GB, free: 7.664 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05063/0.8113, allocations: 17.06 MB / 0.6343 GB, free: 6.609 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002552/0.8117, allocations: 140.2 kB / 0.6344 GB, free: 6.418 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.956/3.768, allocations: 0 / 0.6344 GB, free: 6.418 MB / 475.1 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