Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.00106/0.00106, allocations: 187.4 kB / 8.138 MB, free: 2.125 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.019/1.019, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001529/0.001529, allocations: 125.9 kB / 247.8 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.185/0.185, allocations: 37.92 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1752/0.3603, allocations: 59.35 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06872/0.429, allocations: 53.23 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.251/0.6801, allocations: 92.79 MB / 0.5234 GB, free: 9.805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.6804, allocations: 86.39 kB / 0.5234 GB, free: 9.793 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.03198/0.7123, allocations: 11.32 MB / 0.5345 GB, free: 4.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.7124, allocations: 8 kB / 0.5345 GB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.7126, allocations: 62.97 kB / 0.5346 GB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003177/0.7158, allocations: 1.264 MB / 0.5358 GB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.7158, allocations: 8 kB / 0.5358 GB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.716, allocations: 35.91 kB / 0.5358 GB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005768/0.7165, allocations: 419.4 kB / 0.5362 GB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008337/0.7174, allocations: 0.7359 MB / 0.537 GB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.7174, allocations: 3.938 kB / 0.537 GB, free: 2.223 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.597e-05/0.7175, allocations: 0 / 0.537 GB, free: 2.223 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.7175, allocations: 8 kB / 0.537 GB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00317/0.7207, allocations: 2.638 MB / 0.5395 GB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006436/0.7213, allocations: 457.9 kB / 0.54 GB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006189/0.7219, allocations: 431.1 kB / 0.5404 GB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.74e-05/0.722, allocations: 7.203 kB / 0.5404 GB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.722, allocations: 42.7 kB / 0.5404 GB, free: 15.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 3.217e-06/0.722, allocations: 7.984 kB / 0.5404 GB, free: 15.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.007017/0.7291, allocations: 2.983 MB / 0.5434 GB, free: 12.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.7291, allocations: 85.05 kB / 0.5434 GB, free: 12.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.7295, allocations: 305.2 kB / 0.5437 GB, free: 12.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.223e-05/0.7296, allocations: 25.7 kB / 0.5438 GB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.7297, allocations: 204.2 kB / 0.544 GB, free: 12.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.7299, allocations: 159.2 kB / 0.5441 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.29e-05/0.7299, allocations: 0 / 0.5441 GB, free: 11.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.7301, allocations: 352.3 kB / 0.5444 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005403/0.7306, allocations: 425 kB / 0.5448 GB, free: 11.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.7312, allocations: 0.5245 MB / 0.5454 GB, free: 10.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006111/0.7319, allocations: 483.4 kB / 0.5458 GB, free: 10.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.7319, allocations: 4.562 kB / 0.5458 GB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.005999/0.7379, allocations: 2.381 MB / 0.5482 GB, free: 8.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.7379, allocations: 11.98 kB / 0.5482 GB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.7379, allocations: 0 / 0.5482 GB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007272/0.7452, allocations: 2.006 MB / 0.5501 GB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/0.7456, allocations: 87.83 kB / 0.5502 GB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.7558, allocations: 7.877 MB / 0.5579 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004585/0.7563, allocations: 19.97 kB / 0.5579 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/0.7565, allocations: 67.73 kB / 0.558 GB, free: 15.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002274/0.7567, allocations: 120.8 kB / 0.5581 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.7569, allocations: 43.44 kB / 0.5581 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005701/0.7626, allocations: 2.118 MB / 0.5602 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.7626, allocations: 4 kB / 0.5602 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.7626, allocations: 4 kB / 0.5602 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.7626, allocations: 7.984 kB / 0.5602 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006799/0.7694, allocations: 2.849 MB / 0.563 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.7694, allocations: 0 / 0.563 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.7697, allocations: 39.97 kB / 0.563 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00966/0.7794, allocations: 2.965 MB / 0.5659 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/0.7796, allocations: 106.2 kB / 0.566 GB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.79, allocations: 7.963 MB / 0.5738 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.79, allocations: 4 kB / 0.5738 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006411/0.7964, allocations: 2.532 MB / 0.5763 GB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006786/0.8033, allocations: 3.291 MB / 0.5795 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/0.8036, allocations: 116.5 kB / 0.5796 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.8038, allocations: 75.95 kB / 0.5797 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000369/0.8042, allocations: 15.97 kB / 0.5797 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.8043, allocations: 43.92 kB / 0.5797 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.8045, allocations: 67.95 kB / 0.5798 GB, free: 11.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003131/0.8048, allocations: 232.6 kB / 0.58 GB, free: 11.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001533/0.8063, allocations: 212 kB / 0.5802 GB, free: 11 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002884/0.8066, allocations: 142.8 kB / 0.5804 GB, free: 10.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.8091, allocations: 1.271 MB / 0.5816 GB, free: 9.555 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.8091, allocations: 0 / 0.5816 GB, free: 9.555 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.8109, allocations: 0.8637 MB / 0.5825 GB, free: 8.664 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006276/0.8115, allocations: 108.5 kB / 0.5826 GB, free: 8.555 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.8149, allocations: 2.009 MB / 0.5845 GB, free: 6.516 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007237/0.8157, allocations: 0.9991 MB / 0.5855 GB, free: 5.488 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.8157, allocations: 0 / 0.5855 GB, free: 5.488 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)