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"}) [: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.2+maint.om/package.mo): time 0.0009956/0.0009959, allocations: 185.9 kB / 8.139 MB, free: 2.219 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.024/1.024, allocations: 194.2 MB / 202.8 MB, free: 8.727 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.001633/0.001633, allocations: 119.6 kB / 247.8 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1554/0.1554, allocations: 37.91 MB / 330.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1696/0.3251, allocations: 59.34 MB / 389.9 MB, free: 78 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06944/0.3946, allocations: 53.23 MB / 443.1 MB, free: 24.87 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.243/0.6376, allocations: 99.59 MB / 0.53 GB, free: 7.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.6379, allocations: 87.2 kB / 0.5301 GB, free: 7.598 MB / 346.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.05102/0.6889, allocations: 20.17 MB / 0.5498 GB, free: 6.625 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.6889, allocations: 8 kB / 0.5498 GB, free: 6.617 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006658/0.6896, allocations: 138.8 kB / 0.5499 GB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.692, allocations: 1.036 MB / 0.5509 GB, free: 5.586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/0.692, allocations: 28 kB / 0.551 GB, free: 5.559 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.6922, allocations: 48.53 kB / 0.551 GB, free: 5.516 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00123/0.6934, allocations: 0.803 MB / 0.5518 GB, free: 4.973 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.6947, allocations: 0.9545 MB / 0.5527 GB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.6947, allocations: 11.94 kB / 0.5527 GB, free: 4.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.791e-05/0.6948, allocations: 3.984 kB / 0.5527 GB, free: 4.168 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.604e-05/0.6949, allocations: 45.73 kB / 0.5528 GB, free: 4.129 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004607/0.6995, allocations: 4.012 MB / 0.5567 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009117/0.7004, allocations: 0.6585 MB / 0.5573 GB, free: 128 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.7009, allocations: 452.5 kB / 0.5578 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.66e-05/0.701, allocations: 8.656 kB / 0.5578 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000756/0.7018, allocations: 0.5789 MB / 0.5583 GB, free: 15.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.485e-06/0.7018, allocations: 7.938 kB / 0.5584 GB, free: 15.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.003471/0.7053, allocations: 2.089 MB / 0.5604 GB, free: 13.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.7054, allocations: 152.7 kB / 0.5605 GB, free: 13.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004323/0.7058, allocations: 388.5 kB / 0.5609 GB, free: 13.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.334e-05/0.7059, allocations: 37.12 kB / 0.5609 GB, free: 13.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.7061, allocations: 308.7 kB / 0.5612 GB, free: 12.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/0.7063, allocations: 285.9 kB / 0.5615 GB, free: 12.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.17e-05/0.7063, allocations: 0 / 0.5615 GB, free: 12.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.7065, allocations: 381 kB / 0.5619 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005144/0.707, allocations: 386 kB / 0.5622 GB, free: 12.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006332/0.7077, allocations: 0.5824 MB / 0.5628 GB, free: 11.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/0.7083, allocations: 467.5 kB / 0.5633 GB, free: 11.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.7083, allocations: 4 kB / 0.5633 GB, free: 11.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002697/0.711, allocations: 1.406 MB / 0.5646 GB, free: 10.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.7111, allocations: 4 kB / 0.5646 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00224/0.7133, allocations: 1.147 MB / 0.5658 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001267/0.7146, allocations: 422.3 kB / 0.5662 GB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/0.7151, allocations: 134.2 kB / 0.5663 GB, free: 8.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006059/0.7212, allocations: 4.227 MB / 0.5704 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000623/0.7218, allocations: 51.27 kB / 0.5705 GB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/0.7219, allocations: 42.12 kB / 0.5705 GB, free: 5.289 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.000239/0.7221, allocations: 180.9 kB / 0.5707 GB, free: 5.105 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.7223, allocations: 71.16 kB / 0.5707 GB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.7239, allocations: 1.047 MB / 0.5718 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.561e-05/0.724, allocations: 15.94 kB / 0.5718 GB, free: 4.254 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.724, allocations: 4 kB / 0.5718 GB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.724, allocations: 7.891 kB / 0.5718 GB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.727, allocations: 1.994 MB / 0.5737 GB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.727, allocations: 8.031 kB / 0.5737 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006988/0.7277, allocations: 123.8 kB / 0.5739 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001582/0.7279, allocations: 98.47 kB / 0.574 GB, free: 2.164 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-05/0.728, allocations: 7.984 kB / 0.574 GB, free: 2.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/0.7306, allocations: 3.733 MB / 0.5776 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.7306, allocations: 0 / 0.5776 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002494/0.7331, allocations: 1.749 MB / 0.5793 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003242/0.7363, allocations: 2.728 MB / 0.582 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.7365, allocations: 136.3 kB / 0.5821 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.7367, allocations: 23.92 kB / 0.5821 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/0.7372, allocations: 47.95 kB / 0.5822 GB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.7374, allocations: 76.56 kB / 0.5823 GB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.197e-05/0.7375, allocations: 31.94 kB / 0.5823 GB, free: 9.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003571/0.7379, allocations: 287.2 kB / 0.5826 GB, free: 8.875 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00152/0.7394, allocations: 239.9 kB / 0.5828 GB, free: 8.641 MB / 394.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.0003475/0.7398, allocations: 173.8 kB / 0.583 GB, free: 8.461 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.7419, allocations: 1.224 MB / 0.5842 GB, free: 7.223 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.7419, allocations: 0 / 0.5842 GB, free: 7.223 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.7431, allocations: 0.8972 MB / 0.585 GB, free: 6.293 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.7436, allocations: 77.02 kB / 0.5851 GB, free: 6.215 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.7464, allocations: 1.462 MB / 0.5865 GB, free: 4.719 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009039/0.7473, allocations: 1.107 MB / 0.5876 GB, free: 3.578 MB / 394.7 MB Notification: Performance of SimCode: time 3.1e-07/0.7473, allocations: 0 / 0.5876 GB, free: 3.578 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)