Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.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.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",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.001428/0.001428, allocations: 181 kB / 8.128 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.1/1.1, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.00165/0.00165, allocations: 122.4 kB / 247.7 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1562/0.1562, allocations: 37.93 MB / 330.5 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1715/0.3278, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06921/0.397, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/0.6214, allocations: 90.57 MB / 0.5212 GB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.6216, allocations: 84.7 kB / 0.5213 GB, free: 10.19 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.03141/0.653, allocations: 12.73 MB / 0.5337 GB, free: 4.664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.6531, allocations: 12 kB / 0.5337 GB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006328/0.6537, allocations: 91.36 kB / 0.5338 GB, free: 4.562 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.6556, allocations: 0.8563 MB / 0.5346 GB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.6557, allocations: 8 kB / 0.5346 GB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.6557, allocations: 23.94 kB / 0.5347 GB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004124/0.6561, allocations: 287.6 kB / 0.5349 GB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.6566, allocations: 430 kB / 0.5353 GB, free: 3.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.6567, allocations: 7.844 kB / 0.5353 GB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.6567, allocations: 0 / 0.5353 GB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.971e-05/0.6567, allocations: 28.77 kB / 0.5354 GB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001619/0.6584, allocations: 1.647 MB / 0.537 GB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.6585, allocations: 119.1 kB / 0.5371 GB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.6587, allocations: 112.9 kB / 0.5372 GB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.6587, allocations: 0 / 0.5372 GB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.535e-05/0.6587, allocations: 38.38 kB / 0.5372 GB, free: 1.484 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.6587, allocations: 4 kB / 0.5372 GB, free: 1.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008537/0.6596, allocations: 0.6801 MB / 0.5379 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.01e-05/0.6596, allocations: 84.23 kB / 0.538 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.6598, allocations: 242 kB / 0.5382 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.6598, allocations: 25.7 kB / 0.5382 GB, free: 0.5039 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.471e-05/0.6599, allocations: 227.3 kB / 0.5385 GB, free: 304 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.6599, allocations: 62.11 kB / 0.5385 GB, free: 248 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.226e-05/0.66, allocations: 0.75 kB / 0.5385 GB, free: 248 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.962e-05/0.66, allocations: 341.4 kB / 0.5388 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.6602, allocations: 92.06 kB / 0.5389 GB, free: 15.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.6603, allocations: 192.9 kB / 0.5391 GB, free: 15.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.6605, allocations: 135 kB / 0.5392 GB, free: 15.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.6605, allocations: 0 / 0.5392 GB, free: 15.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007747/0.6613, allocations: 448.8 kB / 0.5397 GB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.6613, allocations: 8 kB / 0.5397 GB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005471/0.6619, allocations: 298.9 kB / 0.54 GB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004863/0.6624, allocations: 138.4 kB / 0.5401 GB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.6626, allocations: 51.91 kB / 0.5401 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.6647, allocations: 2.025 MB / 0.5421 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.6649, allocations: 4 kB / 0.5421 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.6649, allocations: 14.44 kB / 0.5421 GB, free: 12.9 MB / 362.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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 9.315e-05/0.665, allocations: 119.5 kB / 0.5423 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.251e-05/0.6651, allocations: 31.7 kB / 0.5423 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004029/0.6655, allocations: 242.9 kB / 0.5425 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.6655, allocations: 4 kB / 0.5425 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.6655, allocations: 0 / 0.5425 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.6656, allocations: 3.984 kB / 0.5425 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009771/0.6665, allocations: 0.7031 MB / 0.5432 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.6666, allocations: 4.062 kB / 0.5432 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.6668, allocations: 35.92 kB / 0.5433 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000101/0.6669, allocations: 40.33 kB / 0.5433 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.6669, allocations: 4 kB / 0.5433 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.6669, allocations: 4.125 kB / 0.5433 GB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6669, allocations: 4 kB / 0.5433 GB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004652/0.6674, allocations: 0.4978 MB / 0.5438 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006786/0.6681, allocations: 0.9676 MB / 0.5447 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.657e-05/0.6682, allocations: 105 kB / 0.5448 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.6682, allocations: 3.984 kB / 0.5448 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.6684, allocations: 4 kB / 0.5448 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.07e-05/0.6684, allocations: 18.92 kB / 0.5449 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.6684, allocations: 4 kB / 0.5449 GB, free: 10.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001457/0.6686, allocations: 190.9 kB / 0.545 GB, free: 10.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009971/0.6696, allocations: 87.89 kB / 0.5451 GB, free: 10.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001496/0.6698, allocations: 118.7 kB / 0.5452 GB, free: 9.938 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005409/0.6703, allocations: 371.2 kB / 0.5456 GB, free: 9.633 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.6703, allocations: 0 / 0.5456 GB, free: 9.633 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.6705, allocations: 184.3 kB / 0.5458 GB, free: 9.461 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.6708, allocations: 55.09 kB / 0.5458 GB, free: 9.418 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.6719, allocations: 0.6735 MB / 0.5465 GB, free: 8.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.6723, allocations: 0.877 MB / 0.5473 GB, free: 7.867 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.6723, allocations: 0 / 0.5473 GB, free: 7.867 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1)