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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001302/0.001302, allocations: 188.6 kB / 8.14 MB, free: 2.211 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.2/1.2, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009155/0.0009155, allocations: 95.72 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1652/0.1652, allocations: 37.97 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.203/0.3682, allocations: 62.43 MB / 410.1 MB, free: 46.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09326/0.4615, allocations: 56.32 MB / 466.4 MB, free: 6.332 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3049/0.7664, allocations: 104.6 MB / 0.5576 GB, free: 5.867 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.7667, allocations: 93.03 kB / 0.5577 GB, free: 5.777 MB / 394.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.05709/0.8238, allocations: 20.18 MB / 0.5774 GB, free: 1.352 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.8238, allocations: 8 kB / 0.5774 GB, free: 1.344 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006821/0.8245, allocations: 138.8 kB / 0.5775 GB, free: 1.207 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.827, allocations: 1.024 MB / 0.5785 GB, free: 144 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.694e-05/0.8271, allocations: 31.98 kB / 0.5786 GB, free: 112 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.8272, allocations: 51.91 kB / 0.5786 GB, free: 60 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001337/0.8286, allocations: 0.8005 MB / 0.5794 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.83, allocations: 0.9557 MB / 0.5803 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.8301, allocations: 4 kB / 0.5803 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/0.8301, allocations: 0 / 0.5803 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.32e-05/0.8302, allocations: 53.86 kB / 0.5804 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004878/0.8351, allocations: 4.014 MB / 0.5843 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.8361, allocations: 0.6665 MB / 0.585 GB, free: 9.328 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005723/0.8367, allocations: 443.6 kB / 0.5854 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.205e-05/0.8368, allocations: 12.66 kB / 0.5854 GB, free: 8.879 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007848/0.8376, allocations: 0.5786 MB / 0.586 GB, free: 8.277 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.254e-06/0.8376, allocations: 0 / 0.586 GB, free: 8.277 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.003423/0.841, allocations: 2.097 MB / 0.588 GB, free: 6.113 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.947e-05/0.8411, allocations: 157.2 kB / 0.5882 GB, free: 5.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004366/0.8416, allocations: 385 kB / 0.5885 GB, free: 5.547 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.072e-05/0.8416, allocations: 33.7 kB / 0.5886 GB, free: 5.508 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.8418, allocations: 311.8 kB / 0.5889 GB, free: 5.195 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.842, allocations: 280 kB / 0.5891 GB, free: 4.918 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.094e-05/0.8421, allocations: 0 / 0.5891 GB, free: 4.918 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.8423, allocations: 386.8 kB / 0.5895 GB, free: 4.531 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005696/0.8428, allocations: 390.1 kB / 0.5899 GB, free: 4.152 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007254/0.8436, allocations: 0.5843 MB / 0.5904 GB, free: 3.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007138/0.8443, allocations: 470.4 kB / 0.5909 GB, free: 3.027 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.8443, allocations: 4 kB / 0.5909 GB, free: 3.023 MB / 426.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002819/0.8471, allocations: 1.408 MB / 0.5923 GB, free: 1.598 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.8472, allocations: 4.625 kB / 0.5923 GB, free: 1.594 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002264/0.8494, allocations: 1.142 MB / 0.5934 GB, free: 460 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.8508, allocations: 428.7 kB / 0.5938 GB, free: 28 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005299/0.8513, allocations: 127.8 kB / 0.5939 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006574/0.8579, allocations: 4.217 MB / 0.598 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006497/0.8586, allocations: 47.95 kB / 0.5981 GB, free: 11.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.985e-05/0.8587, allocations: 43.98 kB / 0.5981 GB, free: 11.47 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.0002627/0.859, allocations: 182.4 kB / 0.5983 GB, free: 11.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.8591, allocations: 71.16 kB / 0.5984 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.8609, allocations: 1.051 MB / 0.5994 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.718e-05/0.861, allocations: 12 kB / 0.5994 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.861, allocations: 4 kB / 0.5994 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.861, allocations: 7.891 kB / 0.5994 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.8642, allocations: 2.008 MB / 0.6014 GB, free: 8.051 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.8642, allocations: 4 kB / 0.6014 GB, free: 8.047 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006869/0.8649, allocations: 123.8 kB / 0.6015 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001483/0.8651, allocations: 78.62 kB / 0.6016 GB, free: 7.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-05/0.8652, allocations: 15.98 kB / 0.6016 GB, free: 7.824 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/0.8679, allocations: 3.749 MB / 0.6052 GB, free: 3.727 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.8679, allocations: 3.938 kB / 0.6052 GB, free: 3.723 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002683/0.8706, allocations: 1.737 MB / 0.6069 GB, free: 1.93 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003509/0.8741, allocations: 2.731 MB / 0.6096 GB, free: 15.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.8743, allocations: 140.2 kB / 0.6097 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.8745, allocations: 15.98 kB / 0.6098 GB, free: 14.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005324/0.875, allocations: 47.95 kB / 0.6098 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.8752, allocations: 72.58 kB / 0.6099 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-05/0.8753, allocations: 23.98 kB / 0.6099 GB, free: 14.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003521/0.8756, allocations: 295.2 kB / 0.6102 GB, free: 14.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001513/0.8771, allocations: 239.9 kB / 0.6104 GB, free: 14.3 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.0003085/0.8775, allocations: 162.3 kB / 0.6106 GB, free: 14.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.8796, allocations: 1.232 MB / 0.6118 GB, free: 12.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.8796, allocations: 0 / 0.6118 GB, free: 12.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.8807, allocations: 0.8886 MB / 0.6126 GB, free: 11.97 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000613/0.8814, allocations: 90.53 kB / 0.6127 GB, free: 11.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.8842, allocations: 1.458 MB / 0.6141 GB, free: 10.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009692/0.8852, allocations: 1.119 MB / 0.6152 GB, free: 9.234 MB / 458.7 MB Notification: Performance of SimCode: time 7.41e-07/0.8852, allocations: 0 / 0.6152 GB, free: 9.234 MB / 458.7 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)