Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.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_2.Example_2,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_2.Example_2,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2",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.001886/0.001886, allocations: 181.4 kB / 7.459 MB, free: 2.496 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.076/1.076, allocations: 221.4 MB / 229.3 MB, free: 3.137 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.0008445/0.0008444, allocations: 99.39 kB / 280.1 MB, free: 1.328 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3618/0.3618, allocations: 78.11 MB / 409 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1177/0.4795, allocations: 75.48 MB / 484.5 MB, free: 4.477 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.7123, allocations: 69.32 MB / 0.5408 GB, free: 21.5 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.8136, allocations: 100.4 MB / 0.6388 GB, free: 4.641 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.8138, allocations: 75.95 kB / 0.6389 GB, free: 4.566 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.08004/0.8938, allocations: 30.68 MB / 0.6689 GB, free: 5.652 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.8939, allocations: 8 kB / 0.6689 GB, free: 5.645 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002315/0.8962, allocations: 434 kB / 0.6693 GB, free: 5.219 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.8975, allocations: 0.8682 MB / 0.6701 GB, free: 4.297 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002516/0.8977, allocations: 215.5 kB / 0.6703 GB, free: 4.051 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.8979, allocations: 47.91 kB / 0.6704 GB, free: 4.004 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001258/0.8991, allocations: 0.7563 MB / 0.6711 GB, free: 3.246 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.9004, allocations: 0.7665 MB / 0.6719 GB, free: 2.465 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.9004, allocations: 3.938 kB / 0.6719 GB, free: 2.461 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.251e-05/0.9005, allocations: 0 / 0.6719 GB, free: 2.461 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.9005, allocations: 16 kB / 0.6719 GB, free: 2.445 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1418/1.042, allocations: 3.685 MB / 0.6755 GB, free: 142.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/1.044, allocations: 0.9258 MB / 0.6764 GB, free: 142.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005887/1.044, allocations: 459.7 kB / 0.6768 GB, free: 142.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.773e-05/1.045, allocations: 14.62 kB / 0.6769 GB, free: 142.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/1.045, allocations: 44 kB / 0.6769 GB, free: 142.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=76): time 3.206e-06/1.045, allocations: 0 / 0.6769 GB, free: 142.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=76): time 0.006655/1.051, allocations: 2.187 MB / 0.679 GB, free: 142 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/1.051, allocations: 115.8 kB / 0.6791 GB, free: 141.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/1.053, allocations: 0.8642 MB / 0.68 GB, free: 141.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.867e-05/1.053, allocations: 25.7 kB / 0.68 GB, free: 141.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/1.053, allocations: 297.9 kB / 0.6803 GB, free: 141.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002845/1.053, allocations: 267.5 kB / 0.6805 GB, free: 141.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/1.053, allocations: 0 / 0.6805 GB, free: 141.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.328e-05/1.053, allocations: 342.2 kB / 0.6809 GB, free: 141.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007292/1.054, allocations: 417.2 kB / 0.6813 GB, free: 141.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007558/1.055, allocations: 0.5076 MB / 0.6818 GB, free: 141 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000772/1.055, allocations: 465.8 kB / 0.6822 GB, free: 141 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/1.056, allocations: 3.688 kB / 0.6822 GB, free: 141 MB / 490.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006847/1.062, allocations: 2.42 MB / 0.6846 GB, free: 140.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/1.062, allocations: 0.6191 MB / 0.6852 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/1.063, allocations: 3.438 kB / 0.6852 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003876/1.066, allocations: 1.032 MB / 0.6862 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009238/1.067, allocations: 162.4 kB / 0.6864 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007399/1.075, allocations: 4.131 MB / 0.6904 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/1.076, allocations: 160.3 kB / 0.6905 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.921e-05/1.076, allocations: 35.52 kB / 0.6906 GB, free: 138.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.212e-06/1.076, allocations: 3.719 kB / 0.6906 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00604/1.082, allocations: 2.272 MB / 0.6928 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/1.082, allocations: 3.938 kB / 0.6928 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003791/1.086, allocations: 1.033 MB / 0.6938 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008036/1.087, allocations: 144.7 kB / 0.6939 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007084/1.094, allocations: 4.139 MB / 0.698 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/1.096, allocations: 147 kB / 0.6981 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/1.096, allocations: 25.17 kB / 0.6982 GB, free: 137.2 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: G1.avr.vref:VARIABLE(unit = "1" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 0 * Non-linear torn systems: 1 {8 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002795/1.096, allocations: 119.2 kB / 0.6983 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/1.096, allocations: 108 kB / 0.6984 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005824/1.102, allocations: 2.258 MB / 0.7006 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/1.102, allocations: 11.34 kB / 0.7006 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/1.102, allocations: 3.75 kB / 0.7006 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/1.102, allocations: 8.781 kB / 0.7006 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007514/1.11, allocations: 3.711 MB / 0.7042 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.11, allocations: 0.9375 kB / 0.7042 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007672/1.11, allocations: 115.3 kB / 0.7043 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002737/1.113, allocations: 0.8654 MB / 0.7052 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.541e-05/1.113, allocations: 12.83 kB / 0.7052 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005399/1.119, allocations: 3.113 MB / 0.7082 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.119, allocations: 1.375 kB / 0.7082 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006752/1.125, allocations: 2.938 MB / 0.7111 GB, free: 133.3 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007064/1.132, allocations: 3.951 MB / 0.715 GB, free: 131.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004435/1.133, allocations: 230.8 kB / 0.7152 GB, free: 131.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/1.133, allocations: 7.031 kB / 0.7152 GB, free: 131.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.134, allocations: 117.2 kB / 0.7153 GB, free: 131.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/1.135, allocations: 74.7 kB / 0.7154 GB, free: 131.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.905e-05/1.135, allocations: 22.75 kB / 0.7154 GB, free: 131.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008054/1.135, allocations: 0.657 MB / 0.716 GB, free: 130.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002541/1.138, allocations: 0.5006 MB / 0.7165 GB, free: 130.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (G1.avr.vm,G1.avr.vr,G1.avr.vf1,G1.machine.delta,G1.machine.w,G1.machine.e1q,G1.machine.e1d,G1.machine.e2q,G1.machine.e2d,G1.pss.imLeadLag.TF.x_scaled[1],G1.pss.imLeadLag1.TF.x_scaled[1],G1.pss.derivativeLag.TF.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(9,48.1%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002351/1.138, allocations: 155.7 kB / 0.7167 GB, free: 130.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006123/1.144, allocations: 3.007 MB / 0.7196 GB, free: 129.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.144, allocations: 0 / 0.7196 GB, free: 129.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002396/1.147, allocations: 1.191 MB / 0.7208 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006102/1.147, allocations: 81.19 kB / 0.7208 GB, free: 128.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004279/1.152, allocations: 1.982 MB / 0.7228 GB, free: 127.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007387/1.152, allocations: 1.197 MB / 0.7239 GB, free: 127.1 MB / 490.7 MB Notification: Performance of SimCode: time 6.01e-07/1.152, allocations: 4 kB / 0.724 GB, free: 127.1 MB / 490.7 MB (rm -f OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_Tutorial_Example_2_Example_2.fmu > OpenIPSL_release_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe 2>&1)