Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001007/0.001007, allocations: 194.9 kB / 8.538 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 225.5 MB / 234.4 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00089/0.00089, allocations: 90.33 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1691/0.1691, allocations: 45.16 MB / 383.3 MB, free: 496 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2143/0.3834, allocations: 69.36 MB / 452.7 MB, free: 76.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.4756, allocations: 63.24 MB / 0.5039 GB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.139/4.615, allocations: 2.778 GB / 3.282 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/4.615, allocations: 90.17 kB / 3.282 GB, free: 136.5 MB / 0.5261 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.716/6.332, allocations: 0.6426 GB / 3.925 GB, free: 44.59 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/6.332, allocations: 9.594 kB / 3.925 GB, free: 44.59 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008195/6.34, allocations: 1.018 MB / 3.926 GB, free: 44.51 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/6.342, allocations: 1.004 MB / 3.927 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.708e-05/6.342, allocations: 55.97 kB / 3.927 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/6.342, allocations: 64.94 kB / 3.927 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001965/6.344, allocations: 1.228 MB / 3.928 GB, free: 44.16 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/6.346, allocations: 1.428 MB / 3.929 GB, free: 43.71 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/6.346, allocations: 7.281 kB / 3.929 GB, free: 43.71 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/6.346, allocations: 6.812 kB / 3.929 GB, free: 43.71 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.607e-05/6.346, allocations: 33.41 kB / 3.929 GB, free: 43.71 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1272/6.474, allocations: 75.61 MB / 4.003 GB, free: 24.96 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/6.475, allocations: 0.8007 MB / 4.004 GB, free: 24.93 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/6.475, allocations: 412.2 kB / 4.004 GB, free: 24.91 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8883/7.364, allocations: 318 MB / 4.315 GB, free: 104.8 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/7.364, allocations: 38.11 kB / 4.315 GB, free: 104.8 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=39): time 3.216e-06/7.364, allocations: 0 / 4.315 GB, free: 104.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=39): time 0.004673/7.368, allocations: 1.394 MB / 4.316 GB, free: 104.7 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/7.368, allocations: 261.3 kB / 4.317 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/7.37, allocations: 1.044 MB / 4.318 GB, free: 104.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/7.37, allocations: 27.11 kB / 4.318 GB, free: 104.2 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/7.37, allocations: 0.6427 MB / 4.318 GB, free: 103.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.8e-05/7.37, allocations: 145.9 kB / 4.318 GB, free: 103.9 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/7.37, allocations: 0 / 4.318 GB, free: 103.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.235e-05/7.37, allocations: 347.3 kB / 4.319 GB, free: 103.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005521/7.371, allocations: 401 kB / 4.319 GB, free: 103.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000699/7.371, allocations: 0.7859 MB / 4.32 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/7.375, allocations: 0.8469 MB / 4.321 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/7.375, allocations: 3.625 kB / 4.321 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.008177/7.383, allocations: 2.762 MB / 4.323 GB, free: 103 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005667/7.383, allocations: 4.447 MB / 4.328 GB, free: 98.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/7.383, allocations: 10.12 kB / 4.328 GB, free: 98.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/7.384, allocations: 23.47 kB / 4.328 GB, free: 98.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/7.385, allocations: 371 kB / 4.328 GB, free: 98.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/7.385, allocations: 24.12 kB / 4.328 GB, free: 98.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/7.387, allocations: 378.1 kB / 4.329 GB, free: 98.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/7.387, allocations: 74.27 kB / 4.329 GB, free: 98.23 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.892e-06/7.387, allocations: 2.969 kB / 4.329 GB, free: 98.23 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003734/7.391, allocations: 1.345 MB / 4.33 GB, free: 98.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/7.391, allocations: 12.97 kB / 4.33 GB, free: 98.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/7.391, allocations: 21.3 kB / 4.33 GB, free: 98.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/7.392, allocations: 367 kB / 4.33 GB, free: 98.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/7.392, allocations: 27.41 kB / 4.33 GB, free: 98.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/7.393, allocations: 255 kB / 4.331 GB, free: 98.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/7.393, allocations: 74.14 kB / 4.331 GB, free: 98.15 MB / 0.6042 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.0001966/7.393, allocations: 148.2 kB / 4.331 GB, free: 98.05 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001931/7.395, allocations: 0.7089 MB / 4.332 GB, free: 97.99 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/7.397, allocations: 1.021 MB / 4.333 GB, free: 97.81 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/7.397, allocations: 3 kB / 4.333 GB, free: 97.81 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/7.397, allocations: 5.062 kB / 4.333 GB, free: 97.81 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/7.397, allocations: 7.094 kB / 4.333 GB, free: 97.81 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/7.4, allocations: 2.147 MB / 4.335 GB, free: 97.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/7.4, allocations: 2.375 kB / 4.335 GB, free: 97.36 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/7.4, allocations: 100.6 kB / 4.335 GB, free: 97.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/7.4, allocations: 6.219 kB / 4.335 GB, free: 97.36 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/7.4, allocations: 10.61 kB / 4.335 GB, free: 97.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/7.4, allocations: 9.531 kB / 4.335 GB, free: 97.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/7.4, allocations: 8.438 kB / 4.335 GB, free: 97.36 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003025/7.403, allocations: 1.583 MB / 4.336 GB, free: 96.64 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003035/7.406, allocations: 2.026 MB / 4.338 GB, free: 95.55 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008702/7.407, allocations: 0.5531 MB / 4.339 GB, free: 95.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/7.408, allocations: 12.89 kB / 4.339 GB, free: 95.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/7.409, allocations: 102.1 kB / 4.339 GB, free: 95.37 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.425e-05/7.409, allocations: 38.42 kB / 4.339 GB, free: 95.37 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/7.409, allocations: 24.75 kB / 4.339 GB, free: 95.36 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001445/7.41, allocations: 1.247 MB / 4.34 GB, free: 95.25 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008062/7.418, allocations: 2.188 MB / 4.342 GB, free: 95.12 MB / 0.6042 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.005916/7.424, allocations: 2.21 MB / 4.344 GB, free: 94.78 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002082/7.426, allocations: 1.393 MB / 4.346 GB, free: 94.76 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/7.426, allocations: 6.219 kB / 4.346 GB, free: 94.76 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002295/7.427, allocations: 159.8 kB / 4.346 GB, free: 94.76 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/7.429, allocations: 398.9 kB / 4.346 GB, free: 94.73 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002849/7.431, allocations: 1.678 MB / 4.348 GB, free: 94.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008495/7.432, allocations: 1.413 MB / 4.349 GB, free: 93.35 MB / 0.6042 GB Notification: Performance of SimCode: time 8.82e-07/7.432, allocations: 0 / 4.349 GB, free: 93.35 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.pipe 2>&1)