Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001463/0.001463, allocations: 176.2 kB / 8.348 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.505/1.505, 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.0009289/0.0009287, allocations: 79.83 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.1738/0.1738, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.764e-05/1.767e-05, allocations: 0 / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 56.33 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4648, allocations: 97.91 MB / 0.5517 GB, free: 12.84 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.4651, allocations: 91.95 kB / 0.5518 GB, free: 12.75 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02916/0.4943, allocations: 10.01 MB / 0.5615 GB, free: 2.652 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4943, allocations: 0 / 0.5615 GB, free: 2.652 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.4944, allocations: 12 kB / 0.5615 GB, free: 2.641 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001241/0.4956, allocations: 0.715 MB / 0.5622 GB, free: 1.875 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.4957, allocations: 8.031 kB / 0.5622 GB, free: 1.867 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.4958, allocations: 59.3 kB / 0.5623 GB, free: 1.809 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/0.4979, allocations: 0.8782 MB / 0.5632 GB, free: 0.8867 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.498, allocations: 12 kB / 0.5632 GB, free: 0.875 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-05/0.4981, allocations: 24 kB / 0.5632 GB, free: 0.8516 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005606/0.4986, allocations: 321.4 kB / 0.5635 GB, free: 0.5391 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006767/0.4993, allocations: 422.4 kB / 0.5639 GB, free: 96 kB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.4993, allocations: 0 / 0.5639 GB, free: 96 kB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.4994, allocations: 4 kB / 0.5639 GB, free: 92 kB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.4994, allocations: 11.95 kB / 0.5639 GB, free: 80 kB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.5016, allocations: 1.64 MB / 0.5655 GB, free: 14.36 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.5022, allocations: 289.5 kB / 0.5658 GB, free: 14.06 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004564/0.5026, allocations: 219.3 kB / 0.566 GB, free: 13.84 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.5027, allocations: 8.219 kB / 0.566 GB, free: 13.84 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004269/0.5031, allocations: 271.3 kB / 0.5663 GB, free: 13.54 MB / 411.1 MB Notification: Performance of pre-optimization done (n=35): time 2.475e-06/0.5031, allocations: 0 / 0.5663 GB, free: 13.54 MB / 411.1 MB Notification: Performance of matching and sorting (n=36): time 0.00157/0.5047, allocations: 0.9065 MB / 0.5672 GB, free: 12.58 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.5048, allocations: 136.5 kB / 0.5673 GB, free: 12.41 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.5051, allocations: 306.4 kB / 0.5676 GB, free: 12.11 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.5052, allocations: 33.64 kB / 0.5676 GB, free: 12.07 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.5054, allocations: 267.9 kB / 0.5679 GB, free: 11.8 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.385e-05/0.5055, allocations: 102.5 kB / 0.568 GB, free: 11.7 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/0.5055, allocations: 0 / 0.568 GB, free: 11.7 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.5057, allocations: 350.8 kB / 0.5683 GB, free: 11.35 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.5059, allocations: 121.1 kB / 0.5684 GB, free: 11.23 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.5062, allocations: 235 kB / 0.5686 GB, free: 10.95 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.5064, allocations: 148 kB / 0.5688 GB, free: 10.8 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5064, allocations: 0 / 0.5688 GB, free: 10.8 MB / 411.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007807/0.5072, allocations: 461.9 kB / 0.5692 GB, free: 10.34 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/0.5073, allocations: 37.66 kB / 0.5693 GB, free: 10.29 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.5073, allocations: 4 kB / 0.5693 GB, free: 10.29 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/0.5076, allocations: 78.19 kB / 0.5693 GB, free: 10.21 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.5078, allocations: 75.83 kB / 0.5694 GB, free: 10.13 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/0.51, allocations: 2.657 MB / 0.572 GB, free: 7.25 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.5103, allocations: 24.2 kB / 0.572 GB, free: 7.227 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.5104, allocations: 20 kB / 0.572 GB, free: 7.207 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * 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 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.5105, allocations: 150.5 kB / 0.5722 GB, free: 7.047 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007159/0.5113, allocations: 386.4 kB / 0.5726 GB, free: 6.656 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.535e-05/0.5113, allocations: 43.56 kB / 0.5726 GB, free: 6.613 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007307/0.5121, allocations: 415.5 kB / 0.573 GB, free: 6.191 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.5121, allocations: 7.953 kB / 0.573 GB, free: 6.184 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.5121, allocations: 4 kB / 0.573 GB, free: 6.18 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.5121, allocations: 7.922 kB / 0.573 GB, free: 6.172 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.5135, allocations: 0.8994 MB / 0.5739 GB, free: 5.219 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.5135, allocations: 0 / 0.5739 GB, free: 5.219 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.5137, allocations: 43.92 kB / 0.5739 GB, free: 5.176 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002354/0.514, allocations: 77.56 kB / 0.574 GB, free: 5.094 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.867e-05/0.514, allocations: 7.984 kB / 0.574 GB, free: 5.086 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.5159, allocations: 2.665 MB / 0.5766 GB, free: 2.191 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.516, allocations: 0 / 0.5766 GB, free: 2.191 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009822/0.517, allocations: 0.6929 MB / 0.5773 GB, free: 1.457 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.5171, allocations: 116.7 kB / 0.5774 GB, free: 1.324 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.412e-05/0.5171, allocations: 11.94 kB / 0.5774 GB, free: 1.312 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.5174, allocations: 20.05 kB / 0.5774 GB, free: 1.293 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-05/0.5175, allocations: 39.89 kB / 0.5775 GB, free: 1.254 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.5175, allocations: 11.98 kB / 0.5775 GB, free: 1.242 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.5178, allocations: 232.6 kB / 0.5777 GB, free: 1.02 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5178, allocations: 0 / 0.5777 GB, free: 1.02 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0005785/0.5184, allocations: 108 kB / 0.5778 GB, free: 0.9141 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.001397/0.5198, allocations: 1.393 MB / 0.5792 GB, free: 15.48 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0008997/0.5207, allocations: 0.5886 MB / 0.5797 GB, free: 14.86 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5207, allocations: 0.9375 kB / 0.5797 GB, free: 14.86 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005861/0.5213, allocations: 475 kB / 0.5802 GB, free: 14.36 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.5218, allocations: 69.23 kB / 0.5803 GB, free: 14.29 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.5234, allocations: 0.8145 MB / 0.5811 GB, free: 13.43 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/0.5239, allocations: 0.8782 MB / 0.5819 GB, free: 12.52 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0002477/0.5241, allocations: 71.34 kB / 0.582 GB, free: 12.45 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.5244, allocations: 159.3 kB / 0.5821 GB, free: 12.3 MB / 427.1 MB Notification: Performance of SimCode: time 2.4e-07/0.5244, allocations: 0 / 0.5821 GB, free: 12.3 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02864/0.553, allocations: 8.22 MB / 0.5902 GB, free: 4.09 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/0.5533, allocations: 150.9 kB / 0.5903 GB, free: 3.891 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.679, allocations: 0 / 0.5903 GB, free: 3.891 MB / 427.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.mat does not exist to compare? outputFormat=mat