Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.TestValveCoefficients,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",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.001087/0.001087, allocations: 203.8 kB / 8.536 MB, free: 468 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.162/1.162, allocations: 225.5 MB / 234.4 MB, free: 9.52 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009079/0.0009079, allocations: 95.16 kB / 286.3 MB, free: 5.875 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1662/0.1662, allocations: 45.15 MB / 383.3 MB, free: 4.902 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1745/0.3407, allocations: 69.37 MB / 452.7 MB, free: 48.23 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.4308, allocations: 63.23 MB / 0.5039 GB, free: 0.9336 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.294/4.725, allocations: 2.778 GB / 3.281 GB, free: 160.9 MB / 0.5339 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/4.725, allocations: 81.62 kB / 3.282 GB, free: 160.9 MB / 0.5339 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.777/6.502, allocations: 0.6423 GB / 3.924 GB, free: 45.27 MB / 0.5496 GB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/6.502, allocations: 11.28 kB / 3.924 GB, free: 45.27 MB / 0.5496 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008022/6.51, allocations: 1.02 MB / 3.925 GB, free: 45.19 MB / 0.5496 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/6.512, allocations: 1.008 MB / 3.926 GB, free: 44.87 MB / 0.5496 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.269e-05/6.512, allocations: 51.38 kB / 3.926 GB, free: 44.87 MB / 0.5496 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002018/6.513, allocations: 71.16 kB / 3.926 GB, free: 44.87 MB / 0.5496 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001903/6.515, allocations: 1.22 MB / 3.927 GB, free: 44.86 MB / 0.5496 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/6.516, allocations: 1.435 MB / 3.928 GB, free: 44.42 MB / 0.5496 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/6.516, allocations: 8.844 kB / 3.929 GB, free: 44.42 MB / 0.5496 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/6.517, allocations: 7.219 kB / 3.929 GB, free: 44.42 MB / 0.5496 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/6.517, allocations: 31.75 kB / 3.929 GB, free: 44.42 MB / 0.5496 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.126/6.643, allocations: 75.92 MB / 4.003 GB, free: 25.74 MB / 0.5808 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000972/6.644, allocations: 0.7805 MB / 4.003 GB, free: 25.7 MB / 0.5808 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004872/6.644, allocations: 374.4 kB / 4.004 GB, free: 25.7 MB / 0.5808 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03283/6.677, allocations: 18.8 MB / 4.022 GB, free: 29.02 MB / 0.5964 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/6.677, allocations: 60.45 kB / 4.022 GB, free: 28.97 MB / 0.5964 GB Notification: Performance of pre-optimization done (n=72): time 2.504e-06/6.677, allocations: 0 / 4.022 GB, free: 28.97 MB / 0.5964 GB Notification: Performance of matching and sorting (n=72): time 0.00609/6.683, allocations: 1.844 MB / 4.024 GB, free: 28.87 MB / 0.5964 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/6.683, allocations: 264.8 kB / 4.024 GB, free: 28.55 MB / 0.5964 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009407/6.684, allocations: 0.7373 MB / 4.025 GB, free: 28.39 MB / 0.5964 GB Notification: Performance of collectPreVariables (initialization): time 8.923e-05/6.684, allocations: 29.52 kB / 4.025 GB, free: 28.36 MB / 0.5964 GB Notification: Performance of collectInitialEqns (initialization): time 0.000233/6.685, allocations: 0.5415 MB / 4.026 GB, free: 28.01 MB / 0.5964 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/6.685, allocations: 236.1 kB / 4.026 GB, free: 27.86 MB / 0.5964 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-05/6.685, allocations: 0 / 4.026 GB, free: 27.86 MB / 0.5964 GB Notification: Performance of setup shared object (initialization): time 0.0001066/6.685, allocations: 356.1 kB / 4.026 GB, free: 27.55 MB / 0.5964 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005565/6.685, allocations: 403 kB / 4.026 GB, free: 27.55 MB / 0.5964 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007196/6.686, allocations: 0.8191 MB / 4.027 GB, free: 27.02 MB / 0.5964 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003335/6.689, allocations: 0.8542 MB / 4.028 GB, free: 27 MB / 0.5964 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/6.69, allocations: 3.844 kB / 4.028 GB, free: 27 MB / 0.5964 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.006637/6.696, allocations: 2.339 MB / 4.03 GB, free: 26.88 MB / 0.5964 GB Notification: Performance of prepare postOptimizeDAE: time 0.001453/6.698, allocations: 4.86 MB / 4.035 GB, free: 21.77 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/6.698, allocations: 19.12 kB / 4.035 GB, free: 21.77 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.629e-05/6.698, allocations: 18 kB / 4.035 GB, free: 21.77 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/6.699, allocations: 383.7 kB / 4.036 GB, free: 21.76 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/6.699, allocations: 22.38 kB / 4.036 GB, free: 21.76 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/6.701, allocations: 246.8 kB / 4.036 GB, free: 21.68 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/6.701, allocations: 74.81 kB / 4.036 GB, free: 21.68 MB / 0.5964 GB Notification: Performance of prepare postOptimizeDAE: time 6.673e-06/6.701, allocations: 3.844 kB / 4.036 GB, free: 21.68 MB / 0.5964 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003816/6.704, allocations: 1.352 MB / 4.037 GB, free: 21.66 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/6.705, allocations: 14.25 kB / 4.037 GB, free: 21.66 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/6.705, allocations: 27.72 kB / 4.037 GB, free: 21.65 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/6.706, allocations: 373.8 kB / 4.038 GB, free: 21.64 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/6.706, allocations: 24.58 kB / 4.038 GB, free: 21.64 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/6.707, allocations: 185.8 kB / 4.038 GB, free: 21.59 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/6.707, allocations: 76.12 kB / 4.038 GB, free: 21.59 MB / 0.5964 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 143 * 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.0002585/6.707, allocations: 153.1 kB / 4.038 GB, free: 21.47 MB / 0.5964 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001975/6.709, allocations: 0.7154 MB / 4.039 GB, free: 21.41 MB / 0.5964 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005035/6.714, allocations: 4.384 MB / 4.043 GB, free: 20.86 MB / 0.5964 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.482e-05/6.714, allocations: 28.86 kB / 4.043 GB, free: 20.86 MB / 0.5964 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/6.714, allocations: 0 / 4.043 GB, free: 20.86 MB / 0.5964 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/6.714, allocations: 5.875 kB / 4.043 GB, free: 20.86 MB / 0.5964 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008753/6.723, allocations: 7.275 MB / 4.05 GB, free: 19.52 MB / 0.5964 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/6.723, allocations: 5.219 kB / 4.05 GB, free: 19.52 MB / 0.5964 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007738/6.724, allocations: 210.5 kB / 4.05 GB, free: 19.51 MB / 0.5964 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.59e-05/6.724, allocations: 10.81 kB / 4.05 GB, free: 19.51 MB / 0.5964 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.93e-05/6.724, allocations: 26.8 kB / 4.05 GB, free: 19.51 MB / 0.5964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.091e-05/6.724, allocations: 13.69 kB / 4.05 GB, free: 19.51 MB / 0.5964 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/6.724, allocations: 13.5 kB / 4.05 GB, free: 19.51 MB / 0.5964 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005433/6.729, allocations: 3.465 MB / 4.054 GB, free: 18.38 MB / 0.5964 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005441/6.735, allocations: 3.853 MB / 4.058 GB, free: 16.87 MB / 0.5964 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/6.736, allocations: 0.7658 MB / 4.058 GB, free: 16.61 MB / 0.5964 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003308/6.736, allocations: 12.05 kB / 4.058 GB, free: 16.61 MB / 0.5964 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/6.738, allocations: 119.5 kB / 4.058 GB, free: 16.59 MB / 0.5964 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/6.738, allocations: 159.2 kB / 4.059 GB, free: 16.58 MB / 0.5964 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-05/6.738, allocations: 45.08 kB / 4.059 GB, free: 16.58 MB / 0.5964 GB Notification: Performance of sort global known variables: time 0.001938/6.74, allocations: 1.426 MB / 4.06 GB, free: 16.43 MB / 0.5964 GB Notification: Performance of remove unused functions: time 0.008061/6.748, allocations: 2.189 MB / 4.062 GB, free: 16.18 MB / 0.5964 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse40.phase,$cse40.region,SinkP4.medium.phase,SourceP4.medium.phase,SinkP3.medium.phase,SourceP3.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00619/6.754, allocations: 2.217 MB / 4.064 GB, free: 15.71 MB / 0.5964 GB Notification: Performance of simCode: created initialization part: time 0.003087/6.757, allocations: 2.298 MB / 4.067 GB, free: 15.68 MB / 0.5964 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/6.757, allocations: 3.094 kB / 4.067 GB, free: 15.68 MB / 0.5964 GB Notification: Performance of simCode: created simulation system equations: time 0.0011/6.758, allocations: 1.23 MB / 4.068 GB, free: 15.67 MB / 0.5964 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/6.761, allocations: 0.52 MB / 4.068 GB, free: 15.63 MB / 0.5964 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/6.765, allocations: 3.128 MB / 4.071 GB, free: 14.64 MB / 0.5964 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/6.767, allocations: 1.679 MB / 4.073 GB, free: 13.29 MB / 0.5964 GB Notification: Performance of SimCode: time 5.71e-07/6.767, allocations: 0 / 4.073 GB, free: 13.29 MB / 0.5964 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1)