Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.001004/0.001003, allocations: 181.1 kB / 8.133 MB, free: 2.215 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.054/1.054, allocations: 194.2 MB / 202.8 MB, free: 8.73 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.001605/0.001605, allocations: 126.2 kB / 247.8 MB, free: 6.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1544/0.1544, allocations: 37.9 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1829/0.3374, allocations: 59.35 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07607/0.4135, allocations: 53.23 MB / 443.1 MB, free: 24.87 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2332/0.6467, allocations: 92.85 MB / 0.5234 GB, free: 9.945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.647, allocations: 91.48 kB / 0.5235 GB, free: 9.93 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.02718/0.6742, allocations: 10.42 MB / 0.5337 GB, free: 4.969 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.6743, allocations: 12 kB / 0.5337 GB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.6744, allocations: 55.34 kB / 0.5337 GB, free: 4.902 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002131/0.6766, allocations: 0.8814 MB / 0.5346 GB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.6766, allocations: 19.84 kB / 0.5346 GB, free: 4.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.036e-05/0.6767, allocations: 20 kB / 0.5346 GB, free: 4.105 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005399/0.6772, allocations: 331.5 kB / 0.5349 GB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005309/0.6778, allocations: 422.8 kB / 0.5353 GB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.6778, allocations: 3.938 kB / 0.5354 GB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.6778, allocations: 0 / 0.5354 GB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.6779, allocations: 15.98 kB / 0.5354 GB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.6797, allocations: 1.645 MB / 0.537 GB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.68, allocations: 201.1 kB / 0.5372 GB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003966/0.6804, allocations: 204.6 kB / 0.5374 GB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.6805, allocations: 11.52 kB / 0.5374 GB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.6807, allocations: 249.4 kB / 0.5376 GB, free: 1.531 MB / 346.7 MB Notification: Performance of pre-optimization done (n=35): time 1.994e-06/0.6807, allocations: 0 / 0.5376 GB, free: 1.531 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001348/0.6821, allocations: 0.8923 MB / 0.5385 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.6821, allocations: 140.4 kB / 0.5386 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.6824, allocations: 312.7 kB / 0.5389 GB, free: 308 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.6825, allocations: 25.7 kB / 0.5389 GB, free: 276 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/0.6826, allocations: 212 kB / 0.5391 GB, free: 84 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.19e-05/0.6827, allocations: 112.6 kB / 0.5392 GB, free: 15.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/0.6827, allocations: 0 / 0.5392 GB, free: 15.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.6828, allocations: 352.4 kB / 0.5396 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.6831, allocations: 123.5 kB / 0.5397 GB, free: 15.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.6833, allocations: 235.8 kB / 0.5399 GB, free: 15.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.6835, allocations: 160.1 kB / 0.5401 GB, free: 15.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6836, allocations: 4 kB / 0.5401 GB, free: 15.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0007484/0.6843, allocations: 454.8 kB / 0.5405 GB, free: 14.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.6843, allocations: 12 kB / 0.5405 GB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.6844, allocations: 7.938 kB / 0.5405 GB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.6846, allocations: 73.17 kB / 0.5406 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.6849, allocations: 67.22 kB / 0.5407 GB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/0.6869, allocations: 2.646 MB / 0.5433 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.6872, allocations: 24.08 kB / 0.5433 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.6873, allocations: 19.28 kB / 0.5433 GB, free: 11.9 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.6874, allocations: 154.1 kB / 0.5434 GB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.516e-05/0.6875, allocations: 43.34 kB / 0.5435 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006771/0.6882, allocations: 406.4 kB / 0.5439 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.6882, allocations: 4 kB / 0.5439 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.6882, allocations: 0 / 0.5439 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.6882, allocations: 7.984 kB / 0.5439 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.6895, allocations: 0.8913 MB / 0.5448 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.6895, allocations: 7.969 kB / 0.5448 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.6897, allocations: 43.91 kB / 0.5448 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00022/0.69, allocations: 75.16 kB / 0.5449 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.69, allocations: 4 kB / 0.5449 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.6918, allocations: 2.644 MB / 0.5475 GB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.6918, allocations: 4 kB / 0.5475 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008853/0.6927, allocations: 0.6916 MB / 0.5481 GB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001198/0.6939, allocations: 1.257 MB / 0.5494 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.985e-05/0.694, allocations: 116 kB / 0.5495 GB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.363e-05/0.6941, allocations: 7.984 kB / 0.5495 GB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.6944, allocations: 20.05 kB / 0.5495 GB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.6945, allocations: 30.83 kB / 0.5495 GB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.6945, allocations: 8 kB / 0.5495 GB, free: 5.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000231/0.6948, allocations: 236.5 kB / 0.5498 GB, free: 5.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001064/0.6958, allocations: 115.2 kB / 0.5499 GB, free: 5.605 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.000184/0.696, allocations: 129.2 kB / 0.55 GB, free: 5.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000812/0.6969, allocations: 0.5572 MB / 0.5505 GB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6969, allocations: 8 kB / 0.5505 GB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005651/0.6974, allocations: 433.9 kB / 0.551 GB, free: 4.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004424/0.6979, allocations: 64.11 kB / 0.551 GB, free: 4.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.6993, allocations: 0.7206 MB / 0.5517 GB, free: 3.859 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005075/0.6998, allocations: 0.9085 MB / 0.5526 GB, free: 2.934 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6998, allocations: 0 / 0.5526 GB, free: 2.934 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)