Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_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.001574/0.001573, allocations: 185.5 kB / 13.19 MB, free: 2.125 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.961/1.961, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001151/0.00115, allocations: 96.44 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2883/0.2883, allocations: 37.97 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.668e-05/3.688e-05, allocations: 8 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.126, allocations: 56.31 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5185/0.6446, allocations: 105.3 MB / 0.5649 GB, free: 14.4 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/0.6449, allocations: 87.95 kB / 0.565 GB, free: 14.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09009/0.7351, allocations: 19.53 MB / 0.5841 GB, free: 10.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.7351, allocations: 0 / 0.5841 GB, free: 10.61 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.58e-05/0.7352, allocations: 16 kB / 0.5841 GB, free: 10.59 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.003327/0.7385, allocations: 1.067 MB / 0.5851 GB, free: 9.461 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.7386, allocations: 8.031 kB / 0.5851 GB, free: 9.453 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003275/0.7389, allocations: 126.9 kB / 0.5852 GB, free: 9.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001079/0.74, allocations: 130.8 kB / 0.5854 GB, free: 9.191 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004213/0.7442, allocations: 1.025 MB / 0.5864 GB, free: 8.129 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-05/0.7444, allocations: 65.94 kB / 0.5864 GB, free: 8.062 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002062/0.7446, allocations: 71.91 kB / 0.5865 GB, free: 7.992 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002629/0.7473, allocations: 1.045 MB / 0.5875 GB, free: 6.887 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.303e-05/0.7473, allocations: 11.88 kB / 0.5875 GB, free: 6.875 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.7475, allocations: 31.98 kB / 0.5876 GB, free: 6.844 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.7476, allocations: 42 kB / 0.5876 GB, free: 6.801 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002947/0.7505, allocations: 0.8822 MB / 0.5885 GB, free: 5.918 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008948/0.7596, allocations: 4.131 MB / 0.5925 GB, free: 1.621 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.7615, allocations: 0.7108 MB / 0.5932 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.7626, allocations: 451.8 kB / 0.5936 GB, free: 456 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.94e-05/0.7627, allocations: 20.47 kB / 0.5936 GB, free: 436 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001532/0.7642, allocations: 0.6393 MB / 0.5943 GB, free: 15.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 3.687e-06/0.7642, allocations: 0 / 0.5943 GB, free: 15.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=97): time 0.005987/0.7702, allocations: 2.321 MB / 0.5965 GB, free: 13.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.7704, allocations: 149.3 kB / 0.5967 GB, free: 13.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007418/0.7711, allocations: 399.1 kB / 0.5971 GB, free: 12.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/0.7713, allocations: 45.7 kB / 0.5971 GB, free: 12.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000393/0.7717, allocations: 418.3 kB / 0.5975 GB, free: 12.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003766/0.7721, allocations: 295.9 kB / 0.5978 GB, free: 12.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.415e-05/0.7722, allocations: 20.03 kB / 0.5978 GB, free: 12.01 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.7724, allocations: 354.8 kB / 0.5981 GB, free: 11.65 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.7734, allocations: 402.1 kB / 0.5985 GB, free: 11.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.7747, allocations: 0.5999 MB / 0.5991 GB, free: 10.58 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.7759, allocations: 0.4903 MB / 0.5996 GB, free: 10.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.776, allocations: 4 kB / 0.5996 GB, free: 10.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00491/0.7809, allocations: 1.485 MB / 0.601 GB, free: 8.574 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.478e-05/0.781, allocations: 37.7 kB / 0.6011 GB, free: 8.531 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004005/0.785, allocations: 1.184 MB / 0.6022 GB, free: 7.344 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/0.7873, allocations: 436.3 kB / 0.6027 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009618/0.7882, allocations: 139.7 kB / 0.6028 GB, free: 6.777 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.8001, allocations: 4.69 MB / 0.6074 GB, free: 1.953 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.8013, allocations: 75.94 kB / 0.6074 GB, free: 1.879 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.8014, allocations: 36 kB / 0.6075 GB, free: 1.844 MB / 442.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.0003772/0.8018, allocations: 222.5 kB / 0.6077 GB, free: 1.617 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.802, allocations: 75.08 kB / 0.6078 GB, free: 1.543 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00317/0.8052, allocations: 1.148 MB / 0.6089 GB, free: 380 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.165e-05/0.8052, allocations: 19.95 kB / 0.6089 GB, free: 360 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8053, allocations: 0 / 0.6089 GB, free: 360 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.8053, allocations: 7.984 kB / 0.6089 GB, free: 352 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005656/0.8109, allocations: 2.209 MB / 0.6111 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.811, allocations: 4 kB / 0.6111 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.8123, allocations: 131.8 kB / 0.6112 GB, free: 13.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/0.8125, allocations: 94.53 kB / 0.6113 GB, free: 13.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.393e-05/0.8126, allocations: 23.98 kB / 0.6113 GB, free: 13.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003787/0.8164, allocations: 3.914 MB / 0.6151 GB, free: 9.484 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8165, allocations: 0 / 0.6151 GB, free: 9.484 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0046/0.8211, allocations: 1.821 MB / 0.6169 GB, free: 7.602 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002278/0.8213, allocations: 132.3 kB / 0.617 GB, free: 7.453 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.8215, allocations: 31.98 kB / 0.6171 GB, free: 7.422 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008834/0.8224, allocations: 71.92 kB / 0.6171 GB, free: 7.352 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002962/0.8227, allocations: 80.61 kB / 0.6172 GB, free: 7.273 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.8229, allocations: 35.97 kB / 0.6172 GB, free: 7.238 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005858/0.8235, allocations: 305.2 kB / 0.6175 GB, free: 6.938 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8235, allocations: 4 kB / 0.6175 GB, free: 6.934 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001327/0.8248, allocations: 279.9 kB / 0.6178 GB, free: 6.66 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) * 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.005174/0.83, allocations: 2.646 MB / 0.6204 GB, free: 3.949 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003676/0.8337, allocations: 1.36 MB / 0.6217 GB, free: 2.566 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.8337, allocations: 0 / 0.6217 GB, free: 2.566 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/0.8356, allocations: 0.9457 MB / 0.6226 GB, free: 1.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009199/0.8365, allocations: 110.5 kB / 0.6227 GB, free: 1.465 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0047/0.8412, allocations: 1.733 MB / 0.6244 GB, free: 15.68 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009291/0.8422, allocations: 1.049 MB / 0.6255 GB, free: 14.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007562/0.843, allocations: 295.3 kB / 0.6257 GB, free: 14.31 MB / 474.7 MB Notification: Performance of SimCode: time 1.643e-06/0.843, allocations: 0 / 0.6257 GB, free: 14.31 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.525/4.368, allocations: 19.68 MB / 0.645 GB, free: 137.9 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)