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.001148/0.001148, allocations: 179.6 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.724/1.724, allocations: 194.4 MB / 203.1 MB, free: 13.03 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.00161/0.00161, allocations: 120 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1748/0.1748, allocations: 37.93 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.568e-05/2.586e-05, allocations: 8 kB / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3146, allocations: 53.22 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4831/0.7977, allocations: 99.61 MB / 0.5306 GB, free: 91.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/0.7981, allocations: 88.8 kB / 0.5307 GB, free: 91.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0523/0.8504, allocations: 19.37 MB / 0.5496 GB, free: 79.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.8505, allocations: 0 / 0.5496 GB, free: 79.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.227e-05/0.8505, allocations: 16 kB / 0.5496 GB, free: 79.73 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.001888/0.8524, allocations: 1.055 MB / 0.5506 GB, free: 78.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.8525, allocations: 8.031 kB / 0.5506 GB, free: 78.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006268/0.8531, allocations: 138.8 kB / 0.5508 GB, free: 78.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/0.8552, allocations: 1.019 MB / 0.5518 GB, free: 77.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.953e-05/0.8553, allocations: 35.95 kB / 0.5518 GB, free: 77.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.773e-05/0.8554, allocations: 43.91 kB / 0.5518 GB, free: 77.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001168/0.8565, allocations: 0.7849 MB / 0.5526 GB, free: 76.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.8578, allocations: 0.9401 MB / 0.5535 GB, free: 75.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.8578, allocations: 3.938 kB / 0.5535 GB, free: 75.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.894e-05/0.8579, allocations: 7.984 kB / 0.5535 GB, free: 75.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.672e-05/0.8579, allocations: 45.67 kB / 0.5536 GB, free: 75.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.8619, allocations: 4.005 MB / 0.5575 GB, free: 71.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008282/0.8627, allocations: 0.6642 MB / 0.5581 GB, free: 70.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004508/0.8632, allocations: 432.5 kB / 0.5585 GB, free: 70.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.513e-05/0.8632, allocations: 16.39 kB / 0.5586 GB, free: 70.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007268/0.864, allocations: 0.6181 MB / 0.5592 GB, free: 69.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.365e-06/0.864, allocations: 0 / 0.5592 GB, free: 69.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.003032/0.867, allocations: 2.121 MB / 0.5612 GB, free: 67.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.8671, allocations: 149.3 kB / 0.5614 GB, free: 67.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.8675, allocations: 389.1 kB / 0.5617 GB, free: 66.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.8675, allocations: 29.7 kB / 0.5618 GB, free: 66.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.8677, allocations: 375.8 kB / 0.5621 GB, free: 66.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.8679, allocations: 279.9 kB / 0.5624 GB, free: 66.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-05/0.868, allocations: 7.969 kB / 0.5624 GB, free: 66.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.8681, allocations: 386.8 kB / 0.5628 GB, free: 65.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/0.8685, allocations: 370.5 kB / 0.5631 GB, free: 65.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005301/0.8691, allocations: 0.5732 MB / 0.5637 GB, free: 64.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005416/0.8696, allocations: 469.5 kB / 0.5641 GB, free: 64.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.8696, allocations: 0 / 0.5641 GB, free: 64.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00225/0.8719, allocations: 1.399 MB / 0.5655 GB, free: 62.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.8719, allocations: 37.69 kB / 0.5655 GB, free: 62.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001833/0.8738, allocations: 1.133 MB / 0.5666 GB, free: 61.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.8749, allocations: 428.4 kB / 0.567 GB, free: 61.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004491/0.8754, allocations: 131.7 kB / 0.5672 GB, free: 61.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005482/0.8809, allocations: 4.486 MB / 0.5716 GB, free: 56.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007054/0.8816, allocations: 55.97 kB / 0.5716 GB, free: 56.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.8817, allocations: 40 kB / 0.5716 GB, free: 56.47 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.0002503/0.8819, allocations: 192.4 kB / 0.5718 GB, free: 56.27 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001397/0.8833, allocations: 0.9548 MB / 0.5728 GB, free: 55.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.8834, allocations: 71.2 kB / 0.5728 GB, free: 55.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.8849, allocations: 1.047 MB / 0.5739 GB, free: 54.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.885, allocations: 16 kB / 0.5739 GB, free: 54.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.885, allocations: 8 kB / 0.5739 GB, free: 54.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.885, allocations: 3.984 kB / 0.5739 GB, free: 54.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00277/0.8878, allocations: 2.018 MB / 0.5759 GB, free: 52.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.8878, allocations: 0 / 0.5759 GB, free: 52.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006291/0.8884, allocations: 135.8 kB / 0.576 GB, free: 51.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001482/0.8886, allocations: 94.53 kB / 0.5761 GB, free: 51.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.509e-05/0.8886, allocations: 11.98 kB / 0.5761 GB, free: 51.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00214/0.8908, allocations: 3.761 MB / 0.5798 GB, free: 47.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.8908, allocations: 0 / 0.5798 GB, free: 47.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.8941, allocations: 1.725 MB / 0.5814 GB, free: 45.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.8944, allocations: 140.3 kB / 0.5816 GB, free: 45.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.8946, allocations: 19.98 kB / 0.5816 GB, free: 45.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000723/0.8953, allocations: 51.94 kB / 0.5816 GB, free: 45.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002846/0.8956, allocations: 84.59 kB / 0.5817 GB, free: 45.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/0.8957, allocations: 31.98 kB / 0.5818 GB, free: 45.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000506/0.8962, allocations: 283 kB / 0.582 GB, free: 45.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8962, allocations: 4 kB / 0.582 GB, free: 45.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001632/0.8979, allocations: 251.9 kB / 0.5823 GB, free: 45.07 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.003758/0.9016, allocations: 2.542 MB / 0.5847 GB, free: 42.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.9045, allocations: 1.292 MB / 0.586 GB, free: 41.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.9046, allocations: 0 / 0.586 GB, free: 41.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.9058, allocations: 0.914 MB / 0.5869 GB, free: 40.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008908/0.9067, allocations: 86.62 kB / 0.587 GB, free: 40.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004023/0.9108, allocations: 1.591 MB / 0.5885 GB, free: 38.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006258/0.9114, allocations: 1.061 MB / 0.5896 GB, free: 37.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008499/0.9123, allocations: 181.8 kB / 0.5897 GB, free: 37.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.9128, allocations: 291.3 kB / 0.59 GB, free: 36.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.133e-06/0.9128, allocations: 0 / 0.59 GB, free: 36.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05644/0.9693, allocations: 17.05 MB / 0.6067 GB, free: 19.86 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002933/0.9697, allocations: 130.4 kB / 0.6068 GB, free: 19.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.698/3.668, allocations: 0 / 0.6068 GB, free: 19.67 MB / 378.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)