Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001743/0.001743, allocations: 181.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.981/1.981, allocations: 194.2 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001849/0.001849, allocations: 116.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.209/0.209, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 6.68e-05/6.724e-05, allocations: 4 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.2998, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4973/0.7972, allocations: 100.3 MB / 0.5382 GB, free: 33.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/0.7976, allocations: 93.67 kB / 0.5383 GB, free: 33.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06131/0.8589, allocations: 19.53 MB / 0.5574 GB, free: 30.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.998e-06/0.859, allocations: 0 / 0.5574 GB, free: 30.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001014/0.8591, allocations: 15.62 kB / 0.5574 GB, free: 30.95 MB / 378.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.003898/0.8631, allocations: 1.069 MB / 0.5584 GB, free: 30.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.086e-05/0.8631, allocations: 7.719 kB / 0.5585 GB, free: 30.28 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006821/0.8638, allocations: 126.3 kB / 0.5586 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.8652, allocations: 134.5 kB / 0.5587 GB, free: 30.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003541/0.8687, allocations: 1.02 MB / 0.5597 GB, free: 29.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.328e-05/0.8688, allocations: 65.97 kB / 0.5598 GB, free: 29.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002997/0.8691, allocations: 80.47 kB / 0.5598 GB, free: 29.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/0.8714, allocations: 1.037 MB / 0.5608 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.8715, allocations: 3.938 kB / 0.5609 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.8716, allocations: 37.44 kB / 0.5609 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.087e-05/0.8717, allocations: 40.64 kB / 0.5609 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.8733, allocations: 0.8802 MB / 0.5618 GB, free: 29.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00679/0.8801, allocations: 4.129 MB / 0.5658 GB, free: 27.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.8813, allocations: 0.693 MB / 0.5665 GB, free: 27.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006518/0.882, allocations: 464.6 kB / 0.5669 GB, free: 27.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.316e-05/0.8821, allocations: 15.83 kB / 0.567 GB, free: 27.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000997/0.8831, allocations: 0.6467 MB / 0.5676 GB, free: 27.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 6.352e-06/0.8832, allocations: 0 / 0.5676 GB, free: 27.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.004649/0.8878, allocations: 2.306 MB / 0.5698 GB, free: 26.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.959e-05/0.888, allocations: 154.5 kB / 0.57 GB, free: 26.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007162/0.8887, allocations: 400.3 kB / 0.5704 GB, free: 26.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.874e-05/0.8888, allocations: 54.72 kB / 0.5704 GB, free: 26.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003324/0.8891, allocations: 369.3 kB / 0.5708 GB, free: 26.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002987/0.8894, allocations: 290.7 kB / 0.571 GB, free: 25.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.895e-05/0.8895, allocations: 22 kB / 0.5711 GB, free: 25.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.8897, allocations: 393.6 kB / 0.5714 GB, free: 25.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006734/0.8904, allocations: 388.4 kB / 0.5718 GB, free: 25.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007479/0.8911, allocations: 0.5977 MB / 0.5724 GB, free: 25.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006967/0.8918, allocations: 0.4935 MB / 0.5729 GB, free: 25.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.8918, allocations: 0 / 0.5729 GB, free: 25.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003052/0.8949, allocations: 1.521 MB / 0.5744 GB, free: 25.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.86e-05/0.895, allocations: 33.17 kB / 0.5744 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002301/0.8973, allocations: 1.186 MB / 0.5756 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.8987, allocations: 433.1 kB / 0.576 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005376/0.8992, allocations: 128.9 kB / 0.5761 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007467/0.9067, allocations: 4.705 MB / 0.5807 GB, free: 22.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.9078, allocations: 81.7 kB / 0.5808 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002516/0.9081, allocations: 42.23 kB / 0.5808 GB, free: 22.82 MB / 378.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 () * 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.0005207/0.9086, allocations: 217 kB / 0.581 GB, free: 22.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002881/0.9089, allocations: 70.34 kB / 0.5811 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/0.9112, allocations: 1.147 MB / 0.5822 GB, free: 22.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.554e-05/0.9113, allocations: 23.28 kB / 0.5822 GB, free: 22.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.9113, allocations: 3.984 kB / 0.5822 GB, free: 22.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.9113, allocations: 3.984 kB / 0.5822 GB, free: 22.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003958/0.9153, allocations: 2.209 MB / 0.5844 GB, free: 21.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.9154, allocations: 3.938 kB / 0.5844 GB, free: 21.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006929/0.9161, allocations: 136.5 kB / 0.5845 GB, free: 21.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.9163, allocations: 100.1 kB / 0.5846 GB, free: 21.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.818e-05/0.9163, allocations: 18.62 kB / 0.5846 GB, free: 21.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.9187, allocations: 3.91 MB / 0.5885 GB, free: 17.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.9187, allocations: 0 / 0.5885 GB, free: 17.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003046/0.9218, allocations: 1.829 MB / 0.5902 GB, free: 17.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004047/0.9222, allocations: 138.3 kB / 0.5904 GB, free: 16.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.9224, allocations: 28.7 kB / 0.5904 GB, free: 16.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005814/0.923, allocations: 61.62 kB / 0.5905 GB, free: 16.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/0.9232, allocations: 89.88 kB / 0.5905 GB, free: 16.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.367e-05/0.9233, allocations: 23.11 kB / 0.5906 GB, free: 16.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004918/0.9238, allocations: 306.5 kB / 0.5909 GB, free: 16.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9238, allocations: 3.188 kB / 0.5909 GB, free: 16.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001418/0.9253, allocations: 281.2 kB / 0.5911 GB, free: 16.74 MB / 378.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) * 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.003196/0.9285, allocations: 2.643 MB / 0.5937 GB, free: 15.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002545/0.931, allocations: 1.366 MB / 0.595 GB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.9311, allocations: 0 / 0.595 GB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.9322, allocations: 0.9474 MB / 0.596 GB, free: 14.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.9331, allocations: 99.8 kB / 0.5961 GB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.9373, allocations: 1.663 MB / 0.5977 GB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007842/0.9381, allocations: 1.055 MB / 0.5987 GB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006933/0.9388, allocations: 193.3 kB / 0.5989 GB, free: 12.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004938/0.9393, allocations: 285.1 kB / 0.5992 GB, free: 12.96 MB / 378.7 MB Notification: Performance of SimCode: time 1.493e-06/0.9393, allocations: 0 / 0.5992 GB, free: 12.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04831/0.9877, allocations: 17.94 MB / 0.6167 GB, free: 13.91 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002539/0.988, allocations: 188.2 kB / 0.6169 GB, free: 13.67 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.766, allocations: 0 / 0.6169 GB, free: 13.67 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)