Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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: translateModel(OpenIPSL.Examples.Tutorial.Example_3.Example_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3") translateModel(OpenIPSL.Examples.Tutorial.Example_3.Example_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3") [: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.0008768/0.0008769, allocations: 180.1 kB / 7.453 MB, free: 1.547 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.033/1.033, allocations: 221.4 MB / 229.3 MB, free: 8.402 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008002/0.0008002, allocations: 97.94 kB / 280.1 MB, free: 7.836 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3577/0.3577, allocations: 78.09 MB / 409 MB, free: 5.484 MB / 290.8 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.972e-06, allocations: 0 / 484.4 MB, free: 10.4 MB / 370.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2201, allocations: 69.34 MB / 0.5407 GB, free: 15.85 MB / 370.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1015/0.3217, allocations: 102.3 MB / 0.6407 GB, free: 9.422 MB / 466.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.322, allocations: 79.94 kB / 0.6407 GB, free: 9.344 MB / 466.8 MB Notification: Performance of FrontEnd: time 0.3605/0.6825, allocations: 82.91 MB / 0.7217 GB, free: 70.78 MB / 482.8 MB Notification: Performance of Transformations before backend: time 0.000138/0.6827, allocations: 56 kB / 0.7218 GB, free: 70.73 MB / 482.8 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.006913/0.6896, allocations: 3.48 MB / 0.7252 GB, free: 67.16 MB / 482.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.6896, allocations: 8.031 kB / 0.7252 GB, free: 67.15 MB / 482.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006299/0.696, allocations: 1.221 MB / 0.7264 GB, free: 65.92 MB / 482.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002685/0.6986, allocations: 1.765 MB / 0.7281 GB, free: 64.09 MB / 482.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003212/0.699, allocations: 412.5 kB / 0.7285 GB, free: 63.63 MB / 482.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002824/0.6993, allocations: 115.9 kB / 0.7286 GB, free: 63.52 MB / 482.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002887/0.7022, allocations: 1.893 MB / 0.7304 GB, free: 61.62 MB / 482.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002765/0.7049, allocations: 1.921 MB / 0.7323 GB, free: 59.68 MB / 482.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.634e-05/0.705, allocations: 3.984 kB / 0.7323 GB, free: 59.67 MB / 482.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/0.7052, allocations: 4 kB / 0.7323 GB, free: 59.67 MB / 482.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.793e-05/0.7052, allocations: 47.91 kB / 0.7324 GB, free: 59.62 MB / 482.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01249/0.7177, allocations: 8.978 MB / 0.7411 GB, free: 50.35 MB / 482.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.7198, allocations: 1.451 MB / 0.7425 GB, free: 48.86 MB / 482.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.7213, allocations: 1.262 MB / 0.7438 GB, free: 47.59 MB / 482.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.7214, allocations: 49.8 kB / 0.7438 GB, free: 47.55 MB / 482.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001812/0.7233, allocations: 1.443 MB / 0.7452 GB, free: 46.08 MB / 482.8 MB Notification: Performance of pre-optimization done (n=242): time 4.118e-06/0.7233, allocations: 0 / 0.7452 GB, free: 46.08 MB / 482.8 MB Notification: Performance of matching and sorting (n=242): time 0.02024/0.7435, allocations: 7.592 MB / 0.7527 GB, free: 38.45 MB / 482.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.7436, allocations: 231.6 kB / 0.7529 GB, free: 38.18 MB / 482.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002386/0.746, allocations: 1.874 MB / 0.7547 GB, free: 36.29 MB / 482.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003187/0.7463, allocations: 29.7 kB / 0.7547 GB, free: 36.25 MB / 482.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002756/0.7466, allocations: 0.6343 MB / 0.7554 GB, free: 35.61 MB / 482.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009048/0.7475, allocations: 0.8083 MB / 0.7561 GB, free: 34.79 MB / 482.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.7477, allocations: 4 kB / 0.7561 GB, free: 34.79 MB / 482.8 MB Notification: Performance of setup shared object (initialization): time 9.115e-05/0.7478, allocations: 395 kB / 0.7565 GB, free: 34.39 MB / 482.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.7493, allocations: 1.052 MB / 0.7575 GB, free: 33.34 MB / 482.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.7509, allocations: 1.309 MB / 0.7588 GB, free: 31.96 MB / 482.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.7525, allocations: 1.174 MB / 0.76 GB, free: 30.76 MB / 482.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.862e-06/0.7526, allocations: 4 kB / 0.76 GB, free: 30.75 MB / 482.8 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.01713/0.7697, allocations: 6.783 MB / 0.7666 GB, free: 23.9 MB / 482.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.7697, allocations: 4.562 kB / 0.7666 GB, free: 23.9 MB / 482.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.7698, allocations: 8 kB / 0.7666 GB, free: 23.89 MB / 482.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009744/0.7795, allocations: 2.791 MB / 0.7693 GB, free: 21.08 MB / 482.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/0.7822, allocations: 491.3 kB / 0.7698 GB, free: 20.6 MB / 482.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02253/0.8048, allocations: 15.24 MB / 0.7847 GB, free: 4.75 MB / 482.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00333/0.8081, allocations: 374.1 kB / 0.7851 GB, free: 4.383 MB / 482.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000241/0.8084, allocations: 92.03 kB / 0.7851 GB, free: 4.293 MB / 482.8 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.0005038/0.8089, allocations: 243.6 kB / 0.7854 GB, free: 4.027 MB / 482.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003976/0.8093, allocations: 296.2 kB / 0.7857 GB, free: 3.734 MB / 482.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02089/0.8302, allocations: 7.751 MB / 0.7932 GB, free: 11.95 MB / 498.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-05/0.8302, allocations: 27.91 kB / 0.7932 GB, free: 11.92 MB / 498.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.8302, allocations: 4 kB / 0.7933 GB, free: 11.92 MB / 498.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.017e-05/0.8303, allocations: 19.89 kB / 0.7933 GB, free: 11.9 MB / 498.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0253/0.8556, allocations: 11.31 MB / 0.8043 GB, free: 436 kB / 498.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.8556, allocations: 4.094 kB / 0.8043 GB, free: 432 kB / 498.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/0.857, allocations: 247.6 kB / 0.8046 GB, free: 184 kB / 498.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0105/0.8675, allocations: 3.328 MB / 0.8078 GB, free: 12.83 MB / 0.5027 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002105/0.8678, allocations: 27.97 kB / 0.8078 GB, free: 12.8 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02842/0.8962, allocations: 16.04 MB / 0.8235 GB, free: 12.27 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.8962, allocations: 7.906 kB / 0.8235 GB, free: 12.27 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02402/0.9202, allocations: 9.507 MB / 0.8328 GB, free: 2.68 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009297/0.9212, allocations: 440.8 kB / 0.8332 GB, free: 2.227 MB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004569/0.9217, allocations: 16 kB / 0.8332 GB, free: 2.211 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002469/0.9241, allocations: 255.8 kB / 0.8335 GB, free: 1.961 MB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005498/0.9247, allocations: 229.5 kB / 0.8337 GB, free: 1.738 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001854/0.9249, allocations: 67.97 kB / 0.8338 GB, free: 1.672 MB / 0.5183 GB Notification: Performance of sort global known variables: time 0.001825/0.9267, allocations: 1.395 MB / 0.8351 GB, free: 280 kB / 0.5183 GB Notification: Performance of remove unused functions: time 0.002331/0.9291, allocations: 0.8426 MB / 0.8359 GB, free: 15.43 MB / 0.5339 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.0003486/0.9294, allocations: 172.7 kB / 0.8361 GB, free: 15.25 MB / 0.5339 GB Notification: Performance of simCode: created initialization part: time 0.009182/0.9386, allocations: 4.662 MB / 0.8407 GB, free: 10.46 MB / 0.5339 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.9386, allocations: 4.188 kB / 0.8407 GB, free: 10.46 MB / 0.5339 GB Notification: Performance of simCode: created simulation system equations: time 0.007653/0.9463, allocations: 3.207 MB / 0.8438 GB, free: 7.188 MB / 0.5339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.9481, allocations: 228.1 kB / 0.844 GB, free: 6.969 MB / 0.5339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009872/0.958, allocations: 4.368 MB / 0.8483 GB, free: 2.535 MB / 0.5339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002008/0.9601, allocations: 1.939 MB / 0.8502 GB, free: 0.5664 MB / 0.5339 GB Notification: Performance of SimCode: time 7.52e-07/0.9601, allocations: 0 / 0.8502 GB, free: 0.5664 MB / 0.5339 GB Notification: Performance of Templates: time 0.1997/1.16, allocations: 46.47 MB / 0.8956 GB, free: 195.8 MB / 0.5652 GB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3.sim & ./OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)