Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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_2.Example_2,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_Tutorial_Example_2_Example_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_2.Example_2,fileNamePrefix="OpenIPSL_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.003086/0.003086, allocations: 170.1 kB / 7.453 MB, free: 2.32 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.339/1.339, allocations: 221.4 MB / 229.3 MB, free: 3.035 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.001097/0.001097, allocations: 106.5 kB / 280.1 MB, free: 1.312 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.455/0.455, allocations: 78.07 MB / 409 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.169/0.6241, allocations: 75.5 MB / 484.4 MB, free: 4.344 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.9923, allocations: 69.34 MB / 0.5408 GB, free: 21.4 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/1.127, allocations: 100.3 MB / 0.6388 GB, free: 4.438 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/1.128, allocations: 75.95 kB / 0.6389 GB, free: 4.363 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.08972/1.217, allocations: 30.68 MB / 0.6688 GB, free: 5.438 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/1.217, allocations: 12 kB / 0.6689 GB, free: 5.426 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002842/1.22, allocations: 430 kB / 0.6693 GB, free: 5.004 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002252/1.223, allocations: 0.8721 MB / 0.6701 GB, free: 4.078 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/1.223, allocations: 223.5 kB / 0.6703 GB, free: 3.824 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000378/1.223, allocations: 43.91 kB / 0.6704 GB, free: 3.781 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001846/1.225, allocations: 0.7563 MB / 0.6711 GB, free: 3.023 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/1.227, allocations: 0.7586 MB / 0.6719 GB, free: 2.25 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/1.227, allocations: 3.938 kB / 0.6719 GB, free: 2.246 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.062e-05/1.227, allocations: 0 / 0.6719 GB, free: 2.246 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/1.227, allocations: 16 kB / 0.6719 GB, free: 2.23 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2249/1.452, allocations: 3.682 MB / 0.6755 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/1.454, allocations: 0.9221 MB / 0.6764 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006436/1.454, allocations: 463.8 kB / 0.6768 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.427e-05/1.454, allocations: 13.83 kB / 0.6768 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/1.454, allocations: 45.47 kB / 0.6769 GB, free: 141.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=76): time 3.086e-06/1.454, allocations: 2.734 kB / 0.6769 GB, free: 141.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=76): time 0.006009/1.46, allocations: 2.183 MB / 0.679 GB, free: 141.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/1.46, allocations: 115.9 kB / 0.6791 GB, free: 141.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/1.462, allocations: 0.8639 MB / 0.68 GB, free: 141.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/1.462, allocations: 25.7 kB / 0.68 GB, free: 141.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/1.462, allocations: 303.2 kB / 0.6803 GB, free: 141 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003543/1.463, allocations: 265.1 kB / 0.6805 GB, free: 140.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6e-05/1.463, allocations: 0 / 0.6805 GB, free: 140.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/1.463, allocations: 340.8 kB / 0.6808 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007013/1.464, allocations: 422 kB / 0.6812 GB, free: 140.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/1.464, allocations: 0.5061 MB / 0.6817 GB, free: 140.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007425/1.465, allocations: 464 kB / 0.6822 GB, free: 140.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.465, allocations: 0 / 0.6822 GB, free: 140.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006698/1.472, allocations: 2.427 MB / 0.6846 GB, free: 140.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001472/1.472, allocations: 0.617 MB / 0.6852 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/1.472, allocations: 0 / 0.6852 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00419/1.476, allocations: 1.033 MB / 0.6862 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/1.477, allocations: 165.4 kB / 0.6863 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00833/1.486, allocations: 4.139 MB / 0.6904 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001972/1.488, allocations: 159.4 kB / 0.6905 GB, free: 138.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001793/1.488, allocations: 30.62 kB / 0.6905 GB, free: 138.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/1.488, allocations: 3.906 kB / 0.6906 GB, free: 138.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006706/1.494, allocations: 2.273 MB / 0.6928 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/1.495, allocations: 0 / 0.6928 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004193/1.499, allocations: 1.034 MB / 0.6938 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/1.5, allocations: 146.8 kB / 0.6939 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007837/1.508, allocations: 4.124 MB / 0.6979 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/1.509, allocations: 142.1 kB / 0.6981 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/1.509, allocations: 30.36 kB / 0.6981 GB, free: 136.7 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.0002809/1.51, allocations: 121.8 kB / 0.6982 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/1.51, allocations: 110.5 kB / 0.6983 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006248/1.516, allocations: 2.267 MB / 0.7005 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/1.516, allocations: 8 kB / 0.7006 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/1.516, allocations: 4.344 kB / 0.7006 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.822e-05/1.516, allocations: 3.609 kB / 0.7006 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00874/1.525, allocations: 3.713 MB / 0.7042 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/1.525, allocations: 0 / 0.7042 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/1.526, allocations: 114 kB / 0.7043 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00312/1.529, allocations: 0.8704 MB / 0.7051 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002216/1.53, allocations: 8.188 kB / 0.7052 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006022/1.536, allocations: 3.119 MB / 0.7082 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.536, allocations: 0 / 0.7082 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008017/1.544, allocations: 2.937 MB / 0.7111 GB, free: 133 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007866/1.552, allocations: 3.943 MB / 0.7149 GB, free: 131.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005382/1.552, allocations: 231.6 kB / 0.7151 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/1.552, allocations: 3.156 kB / 0.7151 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/1.554, allocations: 117.1 kB / 0.7153 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/1.554, allocations: 78.55 kB / 0.7153 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.246e-05/1.554, allocations: 18.34 kB / 0.7153 GB, free: 131 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008584/1.555, allocations: 0.665 MB / 0.716 GB, free: 130.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002701/1.558, allocations: 0.5074 MB / 0.7165 GB, free: 130.6 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.0003464/1.558, allocations: 153 kB / 0.7166 GB, free: 130.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007108/1.565, allocations: 3.005 MB / 0.7196 GB, free: 129.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.565, allocations: 0 / 0.7196 GB, free: 129.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/1.568, allocations: 1.193 MB / 0.7207 GB, free: 128.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/1.569, allocations: 83.02 kB / 0.7208 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005344/1.574, allocations: 1.974 MB / 0.7227 GB, free: 127.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009463/1.575, allocations: 1.206 MB / 0.7239 GB, free: 126.8 MB / 490.7 MB Notification: Performance of SimCode: time 8.11e-07/1.575, allocations: 2.531 kB / 0.7239 GB, free: 126.8 MB / 490.7 MB (rm -f OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_Tutorial_Example_2_Example_2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_Tutorial_Example_2_Example_2.fmu > OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe 2>&1)