Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [: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.1+maint.om/package.mo): time 0.004643/0.004643, allocations: 181.5 kB / 7.452 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.388/1.388, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001937/0.001937, allocations: 112.4 kB / 217.7 MB, free: 8.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2276/0.2276, allocations: 37.97 MB / 294.8 MB, free: 9.469 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.967e-06/8.987e-06, allocations: 1.5 kB / 349.5 MB, free: 37.03 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1291, allocations: 48.69 MB / 398.2 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.654/6.783, allocations: 2.476 GB / 2.865 GB, free: 35.08 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/6.783, allocations: 83.2 kB / 2.865 GB, free: 35 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.12/7.904, allocations: 208.2 MB / 3.068 GB, free: 60.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.74e-05/7.904, allocations: 10.83 kB / 3.068 GB, free: 60.5 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.007382/7.911, allocations: 1.158 MB / 3.07 GB, free: 59.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/7.911, allocations: 7.938 kB / 3.07 GB, free: 59.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002938/7.914, allocations: 223.1 kB / 3.07 GB, free: 59.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008507/7.915, allocations: 388.6 kB / 3.07 GB, free: 59.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/7.915, allocations: 11.19 kB / 3.07 GB, free: 59.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-05/7.915, allocations: 18.38 kB / 3.07 GB, free: 59.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007603/7.916, allocations: 299.8 kB / 3.071 GB, free: 59.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007012/7.917, allocations: 383.8 kB / 3.071 GB, free: 59.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/7.917, allocations: 0.75 kB / 3.071 GB, free: 59.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.11e-05/7.917, allocations: 3.969 kB / 3.071 GB, free: 59.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/7.917, allocations: 7.875 kB / 3.071 GB, free: 59.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007896/7.925, allocations: 3.926 MB / 3.075 GB, free: 56.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003929/7.925, allocations: 210.4 kB / 3.075 GB, free: 56.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/7.926, allocations: 111.5 kB / 3.075 GB, free: 56.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1309/8.056, allocations: 50.37 MB / 3.124 GB, free: 29.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/8.057, allocations: 35.88 kB / 3.124 GB, free: 29.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 2.905e-06/8.057, allocations: 0 / 3.124 GB, free: 29.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.00193/8.058, allocations: 497.1 kB / 3.125 GB, free: 29.44 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/8.059, allocations: 110.8 kB / 3.125 GB, free: 29.31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003021/8.059, allocations: 238.9 kB / 3.125 GB, free: 29.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/8.059, allocations: 25.7 kB / 3.125 GB, free: 29.17 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/8.059, allocations: 190.6 kB / 3.125 GB, free: 29.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/8.059, allocations: 76.48 kB / 3.125 GB, free: 29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/8.059, allocations: 0 / 3.125 GB, free: 29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/8.059, allocations: 342.9 kB / 3.126 GB, free: 28.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/8.059, allocations: 104.8 kB / 3.126 GB, free: 28.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/8.06, allocations: 226 kB / 3.126 GB, free: 28.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/8.06, allocations: 192.4 kB / 3.126 GB, free: 28.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/8.06, allocations: 3.75 kB / 3.126 GB, free: 28.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001545/8.062, allocations: 0.5757 MB / 3.127 GB, free: 28.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/8.062, allocations: 7.141 kB / 3.127 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/8.062, allocations: 7.531 kB / 3.127 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/8.062, allocations: 8.5 kB / 3.127 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/8.062, allocations: 95.17 kB / 3.127 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/8.062, allocations: 12.66 kB / 3.127 GB, free: 28.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/8.063, allocations: 72.88 kB / 3.127 GB, free: 28.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/8.063, allocations: 12.62 kB / 3.127 GB, free: 28.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001082/8.063, allocations: 115.8 kB / 3.127 GB, free: 28.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005287/8.063, allocations: 186.3 kB / 3.127 GB, free: 28.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/8.065, allocations: 1.684 MB / 3.129 GB, free: 28.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.501e-05/8.066, allocations: 25.39 kB / 3.129 GB, free: 28.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/8.066, allocations: 3.906 kB / 3.129 GB, free: 28.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/8.066, allocations: 0 / 3.129 GB, free: 28.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/8.068, allocations: 2.21 MB / 3.131 GB, free: 27.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/8.068, allocations: 0 / 3.131 GB, free: 27.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/8.068, allocations: 70.58 kB / 3.131 GB, free: 27.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/8.068, allocations: 3.281 kB / 3.131 GB, free: 27.83 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/8.068, allocations: 5.875 kB / 3.131 GB, free: 27.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/8.068, allocations: 3.609 kB / 3.131 GB, free: 27.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/8.069, allocations: 3.375 kB / 3.131 GB, free: 27.83 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001908/8.07, allocations: 1.383 MB / 3.133 GB, free: 27.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/8.071, allocations: 155.6 kB / 3.133 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.971e-05/8.071, allocations: 3.188 kB / 3.133 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/8.071, allocations: 43.42 kB / 3.133 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/8.071, allocations: 34.28 kB / 3.133 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/8.071, allocations: 7.844 kB / 3.133 GB, free: 27.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002254/8.071, allocations: 228 kB / 3.133 GB, free: 27.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006534/8.078, allocations: 0.9946 MB / 3.134 GB, free: 27.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,Opening.y,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006869/8.085, allocations: 1.513 MB / 3.135 GB, free: 26.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009991/8.086, allocations: 0.7097 MB / 3.136 GB, free: 26.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/8.086, allocations: 3.688 kB / 3.136 GB, free: 26.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006586/8.087, allocations: 0.6719 MB / 3.137 GB, free: 26.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009735/8.087, allocations: 156.2 kB / 3.137 GB, free: 26.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03617/8.124, allocations: 13.99 MB / 3.151 GB, free: 25.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007022/8.124, allocations: 0.9702 MB / 3.152 GB, free: 25.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.684e-06/8.124, allocations: 0 / 3.152 GB, free: 25.27 MB / 426.7 MB Notification: Performance of Templates: time 0.05484/8.179, allocations: 31.35 MB / 3.182 GB, free: 21.98 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)