Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.GasComponents.TestGasValve,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGasValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestGasValve,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestGasValve",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.001066/0.001066, allocations: 180.6 kB / 8.131 MB, free: 2.191 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.006/1.006, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008307/0.0008307, allocations: 92.44 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2878/0.2878, allocations: 48.75 MB / 358.4 MB, free: 53.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09759/0.3854, allocations: 66.36 MB / 424.8 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.4825, allocations: 60.26 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.082/1.565, allocations: 0.7156 GB / 1.189 GB, free: 91.66 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/1.565, allocations: 75.97 kB / 1.189 GB, free: 91.58 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 424 * Number of variables: 424 Notification: Performance of Generate backend data structure: time 2.102/3.667, allocations: 0.7979 GB / 1.987 GB, free: 58.42 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/3.667, allocations: 9.031 kB / 1.987 GB, free: 58.42 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002892/3.67, allocations: 377 kB / 1.988 GB, free: 58.31 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002935/3.673, allocations: 1.079 MB / 1.989 GB, free: 57.89 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/3.673, allocations: 61.53 kB / 1.989 GB, free: 57.89 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004177/3.673, allocations: 99.44 kB / 1.989 GB, free: 57.89 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002872/3.676, allocations: 1.479 MB / 1.99 GB, free: 57.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002891/3.679, allocations: 1.699 MB / 1.992 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.137e-05/3.679, allocations: 0 / 1.992 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/3.679, allocations: 3.594 kB / 1.992 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/3.679, allocations: 42.97 kB / 1.992 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00938/3.689, allocations: 6.656 MB / 1.998 GB, free: 54.47 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/3.691, allocations: 1.17 MB / 2 GB, free: 54.38 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/3.692, allocations: 386.7 kB / 2 GB, free: 54.35 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 8.993e-05/3.692, allocations: 29.11 kB / 2 GB, free: 54.35 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/3.692, allocations: 56.12 kB / 2 GB, free: 54.31 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=100): time 2.535e-06/3.692, allocations: 0 / 2 GB, free: 54.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=100): time 0.003476/3.695, allocations: 1.227 MB / 2.001 GB, free: 54.17 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/3.695, allocations: 110.7 kB / 2.001 GB, free: 54.04 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/3.696, allocations: 0.8947 MB / 2.002 GB, free: 53.88 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001692/3.697, allocations: 25.7 kB / 2.002 GB, free: 53.85 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/3.697, allocations: 0.6662 MB / 2.003 GB, free: 53.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/3.697, allocations: 334 kB / 2.003 GB, free: 53.23 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/3.697, allocations: 3.875 kB / 2.003 GB, free: 53.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.246e-05/3.697, allocations: 362.5 kB / 2.004 GB, free: 52.92 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005892/3.698, allocations: 425.7 kB / 2.004 GB, free: 52.92 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007048/3.698, allocations: 0.8132 MB / 2.005 GB, free: 52.44 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/3.7, allocations: 0.5492 MB / 2.005 GB, free: 52.42 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/3.7, allocations: 3.906 kB / 2.005 GB, free: 52.42 MB / 0.5261 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.002795/3.702, allocations: 1.594 MB / 2.007 GB, free: 52.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007837/3.703, allocations: 5.036 MB / 2.012 GB, free: 46.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/3.703, allocations: 12.59 kB / 2.012 GB, free: 46.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003498/3.707, allocations: 0.6097 MB / 2.012 GB, free: 46.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/3.708, allocations: 339.1 kB / 2.013 GB, free: 46.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003348/3.711, allocations: 6.032 MB / 2.019 GB, free: 41.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/3.713, allocations: 254.8 kB / 2.019 GB, free: 41.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/3.714, allocations: 82.53 kB / 2.019 GB, free: 41.67 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.715e-06/3.714, allocations: 5.25 kB / 2.019 GB, free: 41.67 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002328/3.716, allocations: 1.239 MB / 2.02 GB, free: 41.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/3.716, allocations: 11.06 kB / 2.02 GB, free: 41.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/3.717, allocations: 176.3 kB / 2.02 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/3.718, allocations: 440.1 kB / 2.021 GB, free: 41.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004299/3.723, allocations: 7.434 MB / 2.028 GB, free: 34.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/3.724, allocations: 208.9 kB / 2.028 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/3.724, allocations: 77.88 kB / 2.028 GB, free: 34.72 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 18,2 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004568/3.725, allocations: 148 kB / 2.028 GB, free: 34.58 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/3.725, allocations: 148 kB / 2.029 GB, free: 34.51 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/3.728, allocations: 1.278 MB / 2.03 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/3.728, allocations: 14.62 kB / 2.03 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/3.728, allocations: 0 / 2.03 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/3.728, allocations: 9.484 kB / 2.03 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004697/3.733, allocations: 2.886 MB / 2.033 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/3.733, allocations: 9.156 kB / 2.033 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000782/3.734, allocations: 202.8 kB / 2.033 GB, free: 32.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002535/3.736, allocations: 0.5977 MB / 2.033 GB, free: 32.54 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.002e-05/3.736, allocations: 19.62 kB / 2.033 GB, free: 32.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002721/3.739, allocations: 5.973 MB / 2.039 GB, free: 27.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/3.739, allocations: 17.34 kB / 2.039 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002421/3.742, allocations: 1.68 MB / 2.041 GB, free: 25.97 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002629/3.744, allocations: 2.128 MB / 2.043 GB, free: 24.46 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004881/3.745, allocations: 237.5 kB / 2.043 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003516/3.745, allocations: 5.844 kB / 2.043 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001898/3.747, allocations: 164.8 kB / 2.043 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/3.747, allocations: 84.19 kB / 2.044 GB, free: 24.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001983/3.747, allocations: 85.06 kB / 2.044 GB, free: 24.24 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0007562/3.748, allocations: 0.64 MB / 2.044 GB, free: 23.95 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005114/3.753, allocations: 1.552 MB / 2.046 GB, free: 23.37 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 20,2 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.002766/3.756, allocations: 1.759 MB / 2.047 GB, free: 23.04 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004428/3.76, allocations: 2.096 MB / 2.05 GB, free: 38.24 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/3.76, allocations: 5.438 kB / 2.05 GB, free: 38.23 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00126/3.762, allocations: 0.5526 MB / 2.05 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/3.764, allocations: 0.4942 MB / 2.051 GB, free: 37.97 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0043/3.769, allocations: 2.113 MB / 2.053 GB, free: 37.04 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001304/3.77, allocations: 1.524 MB / 2.054 GB, free: 36.01 MB / 0.5417 GB Notification: Performance of SimCode: time 8.22e-07/3.77, allocations: 0 / 2.054 GB, free: 36.01 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_GasComponents_TestGasValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_GasComponents_TestGasValve.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestGasValve.pipe 2>&1)