Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_3_Example_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_3_Example_3",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 4.0.0+maint.om/package.mo): time 0.002927/0.002927, allocations: 179.9 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 221.4 MB / 229.3 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 99.28 kB / 280.1 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5007/0.5007, allocations: 78.91 MB / 409.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1667/0.6674, allocations: 75.65 MB / 485.5 MB, free: 3.543 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/1.028, allocations: 69.51 MB / 0.542 GB, free: 20.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/1.168, allocations: 103.1 MB / 0.6426 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/1.168, allocations: 75.95 kB / 0.6427 GB, free: 0.7227 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.5353/1.704, allocations: 88.89 MB / 0.7295 GB, free: 78.35 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/1.704, allocations: 12 kB / 0.7295 GB, free: 78.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007773/1.712, allocations: 1.217 MB / 0.7307 GB, free: 77.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004325/1.716, allocations: 1.761 MB / 0.7324 GB, free: 75.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004942/1.716, allocations: 404.6 kB / 0.7328 GB, free: 74.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00078/1.717, allocations: 119.9 kB / 0.7329 GB, free: 74.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004591/1.722, allocations: 1.89 MB / 0.7348 GB, free: 72.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005064/1.727, allocations: 1.921 MB / 0.7367 GB, free: 70.94 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.923e-05/1.727, allocations: 4 kB / 0.7367 GB, free: 70.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004183/1.727, allocations: 4 kB / 0.7367 GB, free: 70.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/1.728, allocations: 47.91 kB / 0.7367 GB, free: 70.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01981/1.747, allocations: 9.035 MB / 0.7455 GB, free: 61.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002485/1.75, allocations: 1.45 MB / 0.747 GB, free: 60.08 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/1.752, allocations: 1.258 MB / 0.7482 GB, free: 58.81 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002201/1.752, allocations: 49.86 kB / 0.7482 GB, free: 58.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002087/1.754, allocations: 1.443 MB / 0.7496 GB, free: 57.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=242): time 4.198e-06/1.754, allocations: 4 kB / 0.7496 GB, free: 57.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.02169/1.776, allocations: 7.564 MB / 0.757 GB, free: 49.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/1.776, allocations: 243.7 kB / 0.7573 GB, free: 49.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003566/1.78, allocations: 1.874 MB / 0.7591 GB, free: 47.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006626/1.78, allocations: 37.62 kB / 0.7591 GB, free: 47.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/1.781, allocations: 0.6265 MB / 0.7597 GB, free: 46.84 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001336/1.782, allocations: 0.8043 MB / 0.7605 GB, free: 46.03 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/1.782, allocations: 0 / 0.7605 GB, free: 46.03 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/1.782, allocations: 403 kB / 0.7609 GB, free: 45.63 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/1.784, allocations: 1.044 MB / 0.7619 GB, free: 44.58 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/1.786, allocations: 1.309 MB / 0.7632 GB, free: 43.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/1.788, allocations: 1.171 MB / 0.7644 GB, free: 42 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/1.788, allocations: 0 / 0.7644 GB, free: 42 MB / 490.7 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.01894/1.807, allocations: 6.787 MB / 0.771 GB, free: 35.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.928e-05/1.807, allocations: 10.03 kB / 0.771 GB, free: 35.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/1.807, allocations: 7.984 kB / 0.771 GB, free: 35.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01057/1.817, allocations: 2.783 MB / 0.7737 GB, free: 32.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003015/1.82, allocations: 495.3 kB / 0.7742 GB, free: 31.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02572/1.846, allocations: 15.25 MB / 0.7891 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004062/1.85, allocations: 374 kB / 0.7894 GB, free: 15.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003969/1.851, allocations: 88.03 kB / 0.7895 GB, free: 15.53 MB / 490.7 MB Warning: Assuming fixed start value for the following 9 variables: gen3.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen2.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen1.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen3.AVR.firstOrder2.y:VARIABLE(start = gen3.AVR.firstOrder2.y_start ) "Connector of Real output signal" type: Real gen3.gen.e1d:VARIABLE(start = gen3.gen.e1d0 unit = "1" ) "d-axis transient voltage" type: Real gen3.gen.e1q:VARIABLE(start = gen3.gen.e1q0 unit = "1" ) "q-axis transient voltage" type: Real gen3.gen.delta:VARIABLE(start = gen3.gen.delta0 unit = "rad" ) "Rotor angle" type: Real gen2.AVR.firstOrder2.y:VARIABLE(start = gen2.AVR.firstOrder2.y_start ) "Connector of Real output signal" type: Real gen2.gen.e1d:VARIABLE(start = gen2.gen.e1d0 unit = "1" ) "d-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 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: 3 {4 2,30 32,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005749/1.851, allocations: 245.4 kB / 0.7898 GB, free: 15.27 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006347/1.852, allocations: 304.2 kB / 0.7901 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02211/1.874, allocations: 7.817 MB / 0.7977 GB, free: 7.109 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-05/1.874, allocations: 27.91 kB / 0.7977 GB, free: 7.082 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/1.874, allocations: 4 kB / 0.7977 GB, free: 7.078 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.392e-05/1.874, allocations: 11.95 kB / 0.7977 GB, free: 7.066 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02877/1.903, allocations: 11.36 MB / 0.8088 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.798e-05/1.903, allocations: 0 / 0.8088 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/1.905, allocations: 259.7 kB / 0.8091 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01221/1.917, allocations: 3.32 MB / 0.8123 GB, free: 7.961 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007378/1.918, allocations: 23.98 kB / 0.8123 GB, free: 7.938 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03558/1.954, allocations: 16.04 MB / 0.828 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.954, allocations: 11.84 kB / 0.828 GB, free: 7.402 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02936/1.983, allocations: 9.453 MB / 0.8372 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03199/2.015, allocations: 11.55 MB / 0.8485 GB, free: 2.234 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001879/2.017, allocations: 448.7 kB / 0.8489 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008803/2.018, allocations: 8 kB / 0.849 GB, free: 1.766 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003117/2.021, allocations: 263.8 kB / 0.8492 GB, free: 1.508 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007468/2.022, allocations: 225.6 kB / 0.8494 GB, free: 1.289 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002316/2.022, allocations: 67.98 kB / 0.8495 GB, free: 1.223 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002786/2.025, allocations: 1.395 MB / 0.8509 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.003997/2.029, allocations: 0.8464 MB / 0.8517 GB, free: 14.98 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 24 (gen1.gen.delta,gen1.gen.w,gen1.gen.e1q,gen1.gen.e1d,gen1.AVR.ExcitationSystem.x_scaled[1],gen1.AVR.derivativeBlock.x,gen1.AVR.firstOrder2.y,gen1.AVR.simpleLagLim.state,gen2.gen.delta,gen2.gen.w,gen2.gen.e1q,gen2.gen.e1d,gen2.AVR.ExcitationSystem.x_scaled[1],gen2.AVR.derivativeBlock.x,gen2.AVR.firstOrder2.y,gen2.AVR.simpleLagLim.state,gen3.gen.delta,gen3.gen.w,gen3.gen.e1q,gen3.gen.e1d,gen3.AVR.ExcitationSystem.x_scaled[1],gen3.AVR.derivativeBlock.x,gen3.AVR.firstOrder2.y,gen3.AVR.simpleLagLim.state) * Number of discrete variables: 6 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {41 45,1 6,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004553/2.029, allocations: 157.6 kB / 0.8518 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01145/2.041, allocations: 4.67 MB / 0.8564 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/2.041, allocations: 0 / 0.8564 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009571/2.05, allocations: 3.207 MB / 0.8595 GB, free: 6.746 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/2.053, allocations: 201.2 kB / 0.8597 GB, free: 6.547 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/2.067, allocations: 4.395 MB / 0.864 GB, free: 2.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003226/2.07, allocations: 2.015 MB / 0.866 GB, free: 48 kB / 0.5417 GB Notification: Performance of SimCode: time 1.072e-06/2.07, allocations: 0 / 0.866 GB, free: 48 kB / 0.5417 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_3_Example_3_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_3_Example_3.fmu > OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)