Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") [: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.004985/0.004986, allocations: 172.5 kB / 7.446 MB, free: 2.508 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.638/1.638, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.00188/0.00188, allocations: 119.8 kB / 217.7 MB, free: 8.152 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.2355/0.2355, allocations: 37.97 MB / 294.8 MB, free: 9.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.998e-06/1.002e-05, allocations: 0 / 349.5 MB, free: 37.08 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.145, allocations: 48.71 MB / 398.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.726/6.871, allocations: 2.495 GB / 2.884 GB, free: 96.13 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/6.872, allocations: 79.5 kB / 2.884 GB, free: 96.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.923/7.795, allocations: 225 MB / 3.104 GB, free: 35.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.538e-05/7.795, allocations: 8.5 kB / 3.104 GB, free: 35.91 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.006734/7.801, allocations: 1.275 MB / 3.105 GB, free: 35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.161e-05/7.802, allocations: 9.656 kB / 3.105 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002672/7.804, allocations: 242.5 kB / 3.105 GB, free: 34.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/7.806, allocations: 424.5 kB / 3.105 GB, free: 34.53 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.439e-05/7.806, allocations: 12.81 kB / 3.105 GB, free: 34.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/7.806, allocations: 18.38 kB / 3.105 GB, free: 34.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008193/7.807, allocations: 336.3 kB / 3.106 GB, free: 34.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007379/7.807, allocations: 406.9 kB / 3.106 GB, free: 34.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/7.807, allocations: 4.844 kB / 3.106 GB, free: 34.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/7.807, allocations: 0.9062 kB / 3.106 GB, free: 34.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/7.807, allocations: 10.75 kB / 3.106 GB, free: 34.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007355/7.815, allocations: 3.934 MB / 3.11 GB, free: 30.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/7.815, allocations: 219.4 kB / 3.11 GB, free: 30.01 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/7.815, allocations: 126 kB / 3.11 GB, free: 29.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4941/8.309, allocations: 50.37 MB / 3.16 GB, free: 57.53 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.239e-05/8.31, allocations: 33.78 kB / 3.16 GB, free: 57.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 4.479e-06/8.31, allocations: 0 / 3.16 GB, free: 57.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=24): time 0.002757/8.312, allocations: 0.5334 MB / 3.16 GB, free: 57.46 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/8.313, allocations: 105.8 kB / 3.16 GB, free: 57.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005139/8.313, allocations: 279.7 kB / 3.16 GB, free: 57.24 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/8.313, allocations: 25.7 kB / 3.161 GB, free: 57.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/8.313, allocations: 205.2 kB / 3.161 GB, free: 57.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.937e-05/8.313, allocations: 75.77 kB / 3.161 GB, free: 57.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.988e-05/8.313, allocations: 0 / 3.161 GB, free: 57.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002074/8.314, allocations: 349.7 kB / 3.161 GB, free: 56.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/8.314, allocations: 120.4 kB / 3.161 GB, free: 56.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/8.314, allocations: 245 kB / 3.161 GB, free: 56.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/8.315, allocations: 237.3 kB / 3.162 GB, free: 56.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/8.315, allocations: 3.094 kB / 3.162 GB, free: 56.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001967/8.317, allocations: 0.6604 MB / 3.162 GB, free: 56.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000754/8.318, allocations: 1.478 MB / 3.164 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/8.318, allocations: 6.375 kB / 3.164 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.45e-05/8.318, allocations: 12.02 kB / 3.164 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/8.319, allocations: 119.8 kB / 3.164 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/8.319, allocations: 7.312 kB / 3.164 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/8.319, allocations: 78.44 kB / 3.164 GB, free: 54.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.828e-05/8.319, allocations: 28.72 kB / 3.164 GB, free: 54.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.105e-06/8.319, allocations: 3.875 kB / 3.164 GB, free: 54.99 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001164/8.32, allocations: 404.9 kB / 3.164 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/8.32, allocations: 3.312 kB / 3.164 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.553e-06/8.32, allocations: 7.438 kB / 3.164 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/8.321, allocations: 120.1 kB / 3.165 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/8.321, allocations: 15.11 kB / 3.165 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/8.321, allocations: 62.19 kB / 3.165 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/8.321, allocations: 25.17 kB / 3.165 GB, free: 54.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001302/8.321, allocations: 118.2 kB / 3.165 GB, free: 54.87 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005537/8.322, allocations: 193.5 kB / 3.165 GB, free: 54.85 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/8.325, allocations: 1.766 MB / 3.167 GB, free: 54.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.632e-05/8.325, allocations: 21.19 kB / 3.167 GB, free: 54.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/8.325, allocations: 3.797 kB / 3.167 GB, free: 54.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/8.325, allocations: 0 / 3.167 GB, free: 54.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/8.328, allocations: 2.483 MB / 3.169 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/8.328, allocations: 3.906 kB / 3.169 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003264/8.328, allocations: 84.2 kB / 3.169 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/8.328, allocations: 2.594 kB / 3.169 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/8.328, allocations: 14.36 kB / 3.169 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/8.328, allocations: 5.219 kB / 3.169 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/8.328, allocations: 3.625 kB / 3.169 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002237/8.331, allocations: 1.451 MB / 3.171 GB, free: 54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/8.331, allocations: 205.4 kB / 3.171 GB, free: 53.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/8.331, allocations: 7.062 kB / 3.171 GB, free: 53.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/8.331, allocations: 40.89 kB / 3.171 GB, free: 53.87 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/8.332, allocations: 33.7 kB / 3.171 GB, free: 53.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/8.332, allocations: 22.62 kB / 3.171 GB, free: 53.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003133/8.332, allocations: 256.8 kB / 3.171 GB, free: 53.78 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008272/8.34, allocations: 1.165 MB / 3.172 GB, free: 53.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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.009719/8.35, allocations: 1.61 MB / 3.174 GB, free: 53.67 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001721/8.352, allocations: 0.9399 MB / 3.175 GB, free: 53.66 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/8.352, allocations: 0 / 3.175 GB, free: 53.66 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007818/8.352, allocations: 0.6919 MB / 3.175 GB, free: 53.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/8.354, allocations: 175.4 kB / 3.176 GB, free: 53.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04171/8.396, allocations: 14.07 MB / 3.189 GB, free: 53.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001245/8.397, allocations: 0.9994 MB / 3.19 GB, free: 52.63 MB / 442.7 MB Notification: Performance of SimCode: time 2.084e-06/8.397, allocations: 0 / 3.19 GB, free: 52.63 MB / 442.7 MB Notification: Performance of Templates: time 0.05937/8.456, allocations: 34.99 MB / 3.225 GB, free: 50.64 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1)