Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",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.001026/0.001026, allocations: 171.2 kB / 8.517 MB, free: 1.848 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.182/1.182, allocations: 221.4 MB / 230.3 MB, free: 7.777 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.0009177/0.0009177, allocations: 91.8 kB / 281.2 MB, free: 5.543 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1553/0.1553, allocations: 44.14 MB / 376.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.18/0.3353, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09397/0.4293, allocations: 61.91 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.093/4.522, allocations: 2.777 GB / 3.271 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/4.522, allocations: 86.09 kB / 3.271 GB, free: 147.9 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 1.8/6.322, allocations: 0.6425 GB / 3.914 GB, free: 47.49 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/6.322, allocations: 12.06 kB / 3.914 GB, free: 47.49 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008142/6.331, allocations: 1.019 MB / 3.915 GB, free: 47.41 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/6.333, allocations: 1 MB / 3.916 GB, free: 47.08 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/6.333, allocations: 56.38 kB / 3.916 GB, free: 47.08 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/6.333, allocations: 69.78 kB / 3.916 GB, free: 47.08 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002024/6.335, allocations: 1.219 MB / 3.917 GB, free: 47.07 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/6.337, allocations: 1.439 MB / 3.919 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/6.337, allocations: 4.938 kB / 3.919 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001489/6.337, allocations: 3.875 kB / 3.919 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/6.337, allocations: 30.12 kB / 3.919 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1273/6.465, allocations: 69.89 MB / 3.987 GB, free: 18.68 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/6.466, allocations: 0.8112 MB / 3.988 GB, free: 18.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00059/6.467, allocations: 410.9 kB / 3.988 GB, free: 18.63 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7276/7.194, allocations: 277.5 MB / 4.259 GB, free: 64.09 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/7.194, allocations: 39.8 kB / 4.259 GB, free: 64.05 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=39): time 3.386e-06/7.194, allocations: 1.781 kB / 4.259 GB, free: 64.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39): time 0.004979/7.199, allocations: 1.389 MB / 4.26 GB, free: 64.02 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/7.199, allocations: 260.6 kB / 4.261 GB, free: 63.7 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/7.201, allocations: 1.049 MB / 4.262 GB, free: 63.56 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.426e-05/7.201, allocations: 27.83 kB / 4.262 GB, free: 63.53 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/7.202, allocations: 0.6426 MB / 4.262 GB, free: 63.24 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/7.202, allocations: 141.3 kB / 4.262 GB, free: 63.18 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.743e-05/7.202, allocations: 0 / 4.262 GB, free: 63.18 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.307e-05/7.202, allocations: 345.6 kB / 4.263 GB, free: 62.87 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006087/7.202, allocations: 398.8 kB / 4.263 GB, free: 62.87 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007697/7.203, allocations: 0.7927 MB / 4.264 GB, free: 62.38 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003352/7.207, allocations: 0.8505 MB / 4.265 GB, free: 62.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/7.207, allocations: 3.844 kB / 4.265 GB, free: 62.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.008382/7.215, allocations: 2.762 MB / 4.268 GB, free: 62.25 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009746/7.216, allocations: 4.432 MB / 4.272 GB, free: 57.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.86e-05/7.216, allocations: 15.62 kB / 4.272 GB, free: 57.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.165e-05/7.216, allocations: 22.91 kB / 4.272 GB, free: 57.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/7.217, allocations: 380.9 kB / 4.272 GB, free: 57.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.045e-05/7.217, allocations: 26.12 kB / 4.272 GB, free: 57.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002348/7.22, allocations: 373 kB / 4.273 GB, free: 57.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/7.22, allocations: 78.02 kB / 4.273 GB, free: 57.52 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/7.22, allocations: 7.844 kB / 4.273 GB, free: 57.51 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00395/7.224, allocations: 1.342 MB / 4.274 GB, free: 57.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/7.224, allocations: 11.44 kB / 4.274 GB, free: 57.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/7.224, allocations: 15.78 kB / 4.274 GB, free: 57.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/7.225, allocations: 373 kB / 4.274 GB, free: 57.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.277e-05/7.225, allocations: 26.94 kB / 4.274 GB, free: 57.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001684/7.227, allocations: 254.3 kB / 4.275 GB, free: 57.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/7.227, allocations: 73.47 kB / 4.275 GB, free: 57.43 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (sink2.medium.phase,source2.medium.phase,sink4.medium.phase,source4.medium.phase,sink3.medium.phase,source3.medium.phase,sink1.medium.phase,source1.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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.0002777/7.227, allocations: 146.2 kB / 4.275 GB, free: 57.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002134/7.229, allocations: 0.7118 MB / 4.276 GB, free: 57.25 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/7.231, allocations: 1.024 MB / 4.277 GB, free: 57.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/7.231, allocations: 3.656 kB / 4.277 GB, free: 57.05 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/7.231, allocations: 3.469 kB / 4.277 GB, free: 57.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/7.231, allocations: 0 / 4.277 GB, free: 57.05 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003311/7.235, allocations: 2.157 MB / 4.279 GB, free: 56.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/7.235, allocations: 3.906 kB / 4.279 GB, free: 56.57 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/7.235, allocations: 102.8 kB / 4.279 GB, free: 56.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/7.235, allocations: 3.969 kB / 4.279 GB, free: 56.57 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/7.235, allocations: 6.844 kB / 4.279 GB, free: 56.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/7.235, allocations: 8.531 kB / 4.279 GB, free: 56.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/7.235, allocations: 5.188 kB / 4.279 GB, free: 56.57 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003067/7.238, allocations: 1.585 MB / 4.28 GB, free: 55.85 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003185/7.241, allocations: 2.015 MB / 4.282 GB, free: 54.76 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008659/7.242, allocations: 0.5652 MB / 4.283 GB, free: 54.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004027/7.243, allocations: 3.875 kB / 4.283 GB, free: 54.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/7.244, allocations: 110.5 kB / 4.283 GB, free: 54.55 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.704e-05/7.244, allocations: 33.69 kB / 4.283 GB, free: 54.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.293e-05/7.244, allocations: 23.67 kB / 4.283 GB, free: 54.55 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001634/7.246, allocations: 1.248 MB / 4.284 GB, free: 54.44 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.009655/7.255, allocations: 2.159 MB / 4.286 GB, free: 54.3 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.009729/7.265, allocations: 2.204 MB / 4.289 GB, free: 53.96 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00337/7.268, allocations: 1.391 MB / 4.29 GB, free: 53.94 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/7.268, allocations: 2 kB / 4.29 GB, free: 53.94 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003275/7.269, allocations: 155.4 kB / 4.29 GB, free: 53.94 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002711/7.271, allocations: 419.5 kB / 4.29 GB, free: 53.91 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/7.276, allocations: 1.673 MB / 4.292 GB, free: 53.27 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/7.277, allocations: 1.409 MB / 4.293 GB, free: 52.54 MB / 0.6198 GB Notification: Performance of SimCode: time 5.51e-07/7.277, allocations: 0 / 4.293 GB, free: 52.54 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1)