Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00212/0.002119, allocations: 185 kB / 7.802 MB, free: 2.453 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.75/1.75, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001086/0.001085, allocations: 86.64 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2468/0.2468, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2725/0.5194, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5219/1.041, allocations: 58.84 MB / 476.7 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.872/7.913, allocations: 2.772 GB / 3.237 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/7.914, allocations: 78.95 kB / 3.237 GB, free: 109.9 MB / 0.4948 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 2.496/10.41, allocations: 0.6353 GB / 3.873 GB, free: 36.07 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.654e-05/10.41, allocations: 8.562 kB / 3.873 GB, free: 36.07 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01062/10.42, allocations: 1.022 MB / 3.874 GB, free: 35.91 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004026/10.42, allocations: 0.9973 MB / 3.875 GB, free: 35.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001787/10.42, allocations: 56.44 kB / 3.875 GB, free: 35.34 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002838/10.43, allocations: 69.78 kB / 3.875 GB, free: 35.34 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002975/10.43, allocations: 1.221 MB / 3.876 GB, free: 34.9 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002907/10.43, allocations: 1.432 MB / 3.877 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.232e-05/10.43, allocations: 7.094 kB / 3.877 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/10.43, allocations: 5.156 kB / 3.877 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.469e-05/10.43, allocations: 34.56 kB / 3.878 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5021/10.93, allocations: 69.88 MB / 3.946 GB, free: 91.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/10.93, allocations: 0.8064 MB / 3.947 GB, free: 91.67 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006565/10.94, allocations: 412.6 kB / 3.947 GB, free: 91.66 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.9772/11.91, allocations: 277.4 MB / 4.218 GB, free: 55.5 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.879e-05/11.91, allocations: 49.78 kB / 4.218 GB, free: 55.46 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=39): time 5.811e-06/11.91, allocations: 1.031 kB / 4.218 GB, free: 55.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=39): time 0.005812/11.92, allocations: 1.392 MB / 4.219 GB, free: 55.42 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/11.92, allocations: 266.9 kB / 4.22 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002367/11.92, allocations: 1.04 MB / 4.221 GB, free: 54.96 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000122/11.92, allocations: 25.7 kB / 4.221 GB, free: 54.93 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005539/11.92, allocations: 0.6391 MB / 4.221 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/11.92, allocations: 147.9 kB / 4.221 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/11.92, allocations: 4 kB / 4.221 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001144/11.92, allocations: 346 kB / 4.222 GB, free: 54.23 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007473/11.92, allocations: 403.2 kB / 4.222 GB, free: 54.23 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/11.92, allocations: 0.7862 MB / 4.223 GB, free: 53.74 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003831/11.93, allocations: 0.8471 MB / 4.224 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.64e-05/11.93, allocations: 6.875 kB / 4.224 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.009127/11.94, allocations: 2.764 MB / 4.226 GB, free: 53.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001199/11.94, allocations: 4.431 MB / 4.231 GB, free: 48.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.804e-05/11.94, allocations: 15.38 kB / 4.231 GB, free: 48.95 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.813e-05/11.94, allocations: 21.69 kB / 4.231 GB, free: 48.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/11.94, allocations: 377.1 kB / 4.231 GB, free: 48.94 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.651e-05/11.94, allocations: 25.83 kB / 4.231 GB, free: 48.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/11.94, allocations: 369.5 kB / 4.231 GB, free: 48.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/11.94, allocations: 77.16 kB / 4.232 GB, free: 48.88 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/11.94, allocations: 8.672 kB / 4.232 GB, free: 48.87 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004171/11.95, allocations: 1.334 MB / 4.233 GB, free: 48.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/11.95, allocations: 12.72 kB / 4.233 GB, free: 48.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/11.95, allocations: 22.72 kB / 4.233 GB, free: 48.85 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/11.95, allocations: 377 kB / 4.233 GB, free: 48.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-05/11.95, allocations: 22.75 kB / 4.233 GB, free: 48.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/11.95, allocations: 252 kB / 4.233 GB, free: 48.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/11.95, allocations: 68.58 kB / 4.234 GB, free: 48.8 MB / 0.5573 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.0004417/11.95, allocations: 152.7 kB / 4.234 GB, free: 48.69 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002586/11.95, allocations: 0.7095 MB / 4.234 GB, free: 48.63 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002419/11.96, allocations: 1.023 MB / 4.235 GB, free: 48.45 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/11.96, allocations: 7.438 kB / 4.235 GB, free: 48.45 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/11.96, allocations: 0 / 4.235 GB, free: 48.45 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/11.96, allocations: 3.656 kB / 4.235 GB, free: 48.45 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004809/11.96, allocations: 2.15 MB / 4.238 GB, free: 48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/11.96, allocations: 9.219 kB / 4.238 GB, free: 47.99 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/11.96, allocations: 95.14 kB / 4.238 GB, free: 47.99 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.569e-05/11.96, allocations: 7.938 kB / 4.238 GB, free: 47.99 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/11.96, allocations: 9.703 kB / 4.238 GB, free: 47.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.248e-05/11.96, allocations: 10.97 kB / 4.238 GB, free: 47.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.415e-05/11.96, allocations: 9.625 kB / 4.238 GB, free: 47.99 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00358/11.97, allocations: 1.582 MB / 4.239 GB, free: 47.27 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003685/11.97, allocations: 2.015 MB / 4.241 GB, free: 46.18 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/11.97, allocations: 0.5567 MB / 4.242 GB, free: 46.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002912/11.97, allocations: 11.59 kB / 4.242 GB, free: 46.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/11.97, allocations: 105.2 kB / 4.242 GB, free: 46 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.75e-05/11.97, allocations: 36.67 kB / 4.242 GB, free: 45.99 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.957e-05/11.97, allocations: 28.33 kB / 4.242 GB, free: 45.99 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001664/11.97, allocations: 1.245 MB / 4.243 GB, free: 45.88 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01138/11.98, allocations: 2.156 MB / 4.245 GB, free: 45.76 MB / 0.5573 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.01081/12, allocations: 2.193 MB / 4.247 GB, free: 45.43 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003147/12, allocations: 1.396 MB / 4.249 GB, free: 45.41 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/12, allocations: 0 / 4.249 GB, free: 45.41 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003065/12, allocations: 165.2 kB / 4.249 GB, free: 45.41 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/12, allocations: 406.2 kB / 4.249 GB, free: 45.38 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003889/12.01, allocations: 1.677 MB / 4.251 GB, free: 44.74 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/12.01, allocations: 1.414 MB / 4.252 GB, free: 44 MB / 0.5573 GB Notification: Performance of SimCode: time 7.12e-07/12.01, allocations: 0 / 4.252 GB, free: 44 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1)