Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_Tutorial_Example_3_Example_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_2_0_0_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 3.2.3+maint.om/package.mo): time 0.002849/0.002849, allocations: 184.6 kB / 7.463 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.27/1.27, allocations: 205.2 MB / 213.1 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 93.09 kB / 261.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07259/0.07259, allocations: 12.18 MB / 321.2 MB, free: 1.379 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.318/0.318, allocations: 78.04 MB / 449.9 MB, free: 3.676 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2718/0.5898, allocations: 76.1 MB / 0.5137 GB, free: 30.36 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.7133, allocations: 69.23 MB / 0.5813 GB, free: 9.211 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3977/1.111, allocations: 103.9 MB / 0.6827 GB, free: 5.156 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/1.111, allocations: 75.53 kB / 0.6828 GB, free: 5.121 MB / 426.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.2412/1.353, allocations: 84.33 MB / 0.7652 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/1.353, allocations: 11.94 kB / 0.7652 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008502/1.361, allocations: 1.213 MB / 0.7664 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005808/1.367, allocations: 1.769 MB / 0.7681 GB, free: 8.34 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006473/1.368, allocations: 416.6 kB / 0.7685 GB, free: 7.871 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001174/1.369, allocations: 111.9 kB / 0.7686 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005685/1.375, allocations: 1.901 MB / 0.7705 GB, free: 5.859 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004914/1.38, allocations: 1.913 MB / 0.7723 GB, free: 3.922 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.356e-05/1.38, allocations: 7.984 kB / 0.7723 GB, free: 3.914 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002196/1.38, allocations: 0 / 0.7723 GB, free: 3.914 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.697e-05/1.38, allocations: 51.91 kB / 0.7724 GB, free: 3.863 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02026/1.4, allocations: 8.973 MB / 0.7811 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002716/1.403, allocations: 1.458 MB / 0.7826 GB, free: 9.086 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001854/1.405, allocations: 1.258 MB / 0.7838 GB, free: 7.816 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002053/1.405, allocations: 45.86 kB / 0.7838 GB, free: 7.773 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002437/1.408, allocations: 1.447 MB / 0.7852 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=242): time 5.64e-06/1.408, allocations: 0 / 0.7852 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of matching and sorting (n=242): time 0.02471/1.432, allocations: 7.584 MB / 0.7927 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/1.432, allocations: 231.6 kB / 0.7929 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003902/1.436, allocations: 1.874 MB / 0.7947 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008562/1.437, allocations: 29.69 kB / 0.7947 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005096/1.438, allocations: 0.6382 MB / 0.7954 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001703/1.439, allocations: 0.8004 MB / 0.7961 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/1.44, allocations: 3.938 kB / 0.7961 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002261/1.44, allocations: 407 kB / 0.7965 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/1.442, allocations: 1.044 MB / 0.7975 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/1.444, allocations: 1.31 MB / 0.7988 GB, free: 8.199 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002173/1.446, allocations: 1.171 MB / 0.8 GB, free: 7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/1.446, allocations: 4 kB / 0.8 GB, free: 6.996 MB / 0.5261 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.02135/1.468, allocations: 6.783 MB / 0.8066 GB, free: 148 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/1.468, allocations: 7.984 kB / 0.8066 GB, free: 140 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.452e-05/1.468, allocations: 4 kB / 0.8066 GB, free: 136 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/1.48, allocations: 2.803 MB / 0.8093 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003421/1.483, allocations: 479.3 kB / 0.8098 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03033/1.513, allocations: 15.25 MB / 0.8247 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005101/1.519, allocations: 370 kB / 0.8251 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008817/1.52, allocations: 88.03 kB / 0.8251 GB, free: 12.54 MB / 0.5573 GB 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.0008168/1.52, allocations: 251.8 kB / 0.8254 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/1.521, allocations: 300.2 kB / 0.8257 GB, free: 11.97 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02455/1.546, allocations: 7.755 MB / 0.8332 GB, free: 4.176 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.375e-05/1.546, allocations: 27.91 kB / 0.8333 GB, free: 4.148 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/1.546, allocations: 4 kB / 0.8333 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.941e-05/1.546, allocations: 11.95 kB / 0.8333 GB, free: 4.133 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03101/1.577, allocations: 11.31 MB / 0.8443 GB, free: 8.668 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-05/1.577, allocations: 4 kB / 0.8443 GB, free: 8.664 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/1.579, allocations: 255.7 kB / 0.8446 GB, free: 8.414 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01248/1.592, allocations: 3.328 MB / 0.8478 GB, free: 5.062 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008467/1.593, allocations: 19.98 kB / 0.8478 GB, free: 5.043 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.271/1.864, allocations: 16.04 MB / 0.8635 GB, free: 217 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/1.864, allocations: 3.469 kB / 0.8635 GB, free: 217 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02783/1.892, allocations: 9.519 MB / 0.8728 GB, free: 216.4 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02929/1.921, allocations: 11.6 MB / 0.8841 GB, free: 215.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001694/1.923, allocations: 439.6 kB / 0.8845 GB, free: 215.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009656/1.924, allocations: 19.91 kB / 0.8846 GB, free: 215.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002838/1.927, allocations: 252.7 kB / 0.8848 GB, free: 215.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005592/1.927, allocations: 234.2 kB / 0.885 GB, free: 215.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/1.927, allocations: 63.8 kB / 0.8851 GB, free: 215.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002046/1.929, allocations: 1.393 MB / 0.8865 GB, free: 215 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.00507/1.935, allocations: 0.852 MB / 0.8873 GB, free: 215 MB / 0.573 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.0008314/1.935, allocations: 169 kB / 0.8874 GB, free: 214.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01083/1.946, allocations: 4.667 MB / 0.892 GB, free: 213.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.946, allocations: 3.969 kB / 0.892 GB, free: 213.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.008842/1.955, allocations: 3.202 MB / 0.8951 GB, free: 213.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003382/1.959, allocations: 196.1 kB / 0.8953 GB, free: 213.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/1.973, allocations: 4.414 MB / 0.8996 GB, free: 211.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003167/1.977, allocations: 2.019 MB / 0.9016 GB, free: 210.7 MB / 0.573 GB Notification: Performance of SimCode: time 1.503e-06/1.977, allocations: 0 / 0.9016 GB, free: 210.7 MB / 0.573 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_Tutorial_Example_3_Example_3_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_Tutorial_Example_3_Example_3.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)