Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_OpenIPSL_Examples_Tutorial_Example_3_Example_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_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.002837/0.002836, allocations: 178.1 kB / 7.454 MB, free: 2.512 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.256/1.256, allocations: 221.4 MB / 229.3 MB, free: 3.223 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.0009225/0.0009226, allocations: 99.34 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.498/0.498, allocations: 78.05 MB / 408.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1491/0.6471, allocations: 75.49 MB / 484.4 MB, free: 4.316 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/1.022, allocations: 69.34 MB / 0.5408 GB, free: 21.52 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/1.154, allocations: 102.3 MB / 0.6407 GB, free: 2.438 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/1.154, allocations: 79.95 kB / 0.6408 GB, free: 2.359 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.5145/1.669, allocations: 86.46 MB / 0.7252 GB, free: 82.88 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/1.669, allocations: 8 kB / 0.7252 GB, free: 82.87 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008002/1.677, allocations: 1.221 MB / 0.7264 GB, free: 81.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004491/1.681, allocations: 1.773 MB / 0.7282 GB, free: 79.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003977/1.682, allocations: 412.5 kB / 0.7286 GB, free: 79.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006313/1.683, allocations: 111.9 kB / 0.7287 GB, free: 79.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003748/1.686, allocations: 1.897 MB / 0.7305 GB, free: 77.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003773/1.69, allocations: 1.925 MB / 0.7324 GB, free: 75.44 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.098e-05/1.69, allocations: 8 kB / 0.7324 GB, free: 75.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002894/1.69, allocations: 0 / 0.7324 GB, free: 75.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.24e-05/1.69, allocations: 47.91 kB / 0.7324 GB, free: 75.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01762/1.708, allocations: 8.966 MB / 0.7412 GB, free: 66.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/1.711, allocations: 1.454 MB / 0.7426 GB, free: 64.73 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002036/1.713, allocations: 1.258 MB / 0.7439 GB, free: 63.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/1.713, allocations: 49.88 kB / 0.7439 GB, free: 63.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002451/1.716, allocations: 1.443 MB / 0.7453 GB, free: 61.96 MB / 490.7 MB Notification: Performance of pre-optimization done (n=242): time 7.034e-06/1.716, allocations: 0 / 0.7453 GB, free: 61.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.0228/1.739, allocations: 7.592 MB / 0.7527 GB, free: 54.38 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/1.739, allocations: 231.6 kB / 0.7529 GB, free: 54.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004753/1.743, allocations: 1.874 MB / 0.7548 GB, free: 52.21 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000782/1.744, allocations: 25.7 kB / 0.7548 GB, free: 52.18 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005598/1.745, allocations: 0.632 MB / 0.7554 GB, free: 51.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002208/1.747, allocations: 0.816 MB / 0.7562 GB, free: 50.71 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00075/1.748, allocations: 0 / 0.7562 GB, free: 50.71 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003016/1.748, allocations: 395 kB / 0.7566 GB, free: 50.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/1.751, allocations: 1.048 MB / 0.7576 GB, free: 49.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003077/1.754, allocations: 1.309 MB / 0.7589 GB, free: 47.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00286/1.757, allocations: 1.182 MB / 0.76 GB, free: 46.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/1.757, allocations: 0 / 0.76 GB, free: 46.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.02071/1.777, allocations: 6.786 MB / 0.7667 GB, free: 39.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/1.778, allocations: 4 kB / 0.7667 GB, free: 39.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/1.778, allocations: 8.031 kB / 0.7667 GB, free: 39.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0109/1.788, allocations: 2.793 MB / 0.7694 GB, free: 37.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002975/1.791, allocations: 491.3 kB / 0.7699 GB, free: 36.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02694/1.818, allocations: 15.24 MB / 0.7848 GB, free: 20.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004185/1.823, allocations: 374 kB / 0.7851 GB, free: 20.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008252/1.824, allocations: 88.03 kB / 0.7852 GB, free: 20.28 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.001317/1.825, allocations: 248.6 kB / 0.7854 GB, free: 20.01 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.826, allocations: 300.2 kB / 0.7857 GB, free: 19.71 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02332/1.849, allocations: 7.754 MB / 0.7933 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-05/1.849, allocations: 27.91 kB / 0.7933 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/1.849, allocations: 11.94 kB / 0.7933 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.494e-05/1.849, allocations: 11.95 kB / 0.7933 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03078/1.88, allocations: 11.31 MB / 0.8044 GB, free: 424 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-05/1.88, allocations: 4 kB / 0.8044 GB, free: 420 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001932/1.882, allocations: 251.6 kB / 0.8046 GB, free: 168 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01277/1.895, allocations: 3.32 MB / 0.8079 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009281/1.896, allocations: 23.97 kB / 0.8079 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03822/1.934, allocations: 16.06 MB / 0.8236 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.45e-05/1.934, allocations: 7.891 kB / 0.8236 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03202/1.966, allocations: 9.507 MB / 0.8329 GB, free: 2.652 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03258/1.999, allocations: 11.6 MB / 0.8442 GB, free: 6.973 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001743/2.001, allocations: 444.7 kB / 0.8446 GB, free: 6.516 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001597/2.003, allocations: 8 kB / 0.8446 GB, free: 6.508 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003798/2.006, allocations: 255.8 kB / 0.8449 GB, free: 6.258 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009013/2.007, allocations: 225.6 kB / 0.8451 GB, free: 6.039 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002724/2.008, allocations: 71.98 kB / 0.8452 GB, free: 5.969 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002822/2.01, allocations: 1.395 MB / 0.8465 GB, free: 4.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004469/2.015, allocations: 0.8503 MB / 0.8474 GB, free: 3.719 MB / 0.5261 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.0005124/2.015, allocations: 165.5 kB / 0.8475 GB, free: 3.547 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01122/2.027, allocations: 4.669 MB / 0.8521 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/2.027, allocations: 0 / 0.8521 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00938/2.036, allocations: 3.215 MB / 0.8552 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/2.039, allocations: 207.9 kB / 0.8554 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/2.052, allocations: 4.403 MB / 0.8597 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002499/2.054, allocations: 2.02 MB / 0.8617 GB, free: 4.754 MB / 0.5417 GB Notification: Performance of SimCode: time 5.51e-07/2.054, allocations: 0 / 0.8617 GB, free: 4.754 MB / 0.5417 GB (rm -f OpenIPSL_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.Tutorial.Example_3.Example_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_Tutorial_Example_3_Example_3_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_Tutorial_Example_3_Example_3.fmu > OpenIPSL_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)