Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestValveIncompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",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.001058/0.001058, allocations: 199.5 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.147/1.147, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008761/0.0008762, allocations: 93.88 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1615/0.1615, allocations: 45.14 MB / 383.3 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1916/0.3531, allocations: 69.37 MB / 452.7 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08573/0.4388, allocations: 63.24 MB / 0.5039 GB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.012/4.45, allocations: 2.778 GB / 3.281 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/4.451, allocations: 88.44 kB / 3.281 GB, free: 127.4 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 1.282/5.733, allocations: 0.5055 GB / 3.787 GB, free: 8.215 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/5.733, allocations: 8 kB / 3.787 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006118/5.739, allocations: 0.7706 MB / 3.788 GB, free: 7.445 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/5.741, allocations: 0.8059 MB / 3.789 GB, free: 6.617 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.882e-05/5.741, allocations: 44 kB / 3.789 GB, free: 6.574 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/5.741, allocations: 51.94 kB / 3.789 GB, free: 6.523 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001577/5.742, allocations: 0.9215 MB / 3.79 GB, free: 5.602 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/5.744, allocations: 1.091 MB / 3.791 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/5.744, allocations: 7.938 kB / 3.791 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/5.744, allocations: 4 kB / 3.791 GB, free: 4.398 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/5.744, allocations: 24 kB / 3.791 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2704/6.015, allocations: 56.74 MB / 3.846 GB, free: 78.78 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007899/6.016, allocations: 0.6 MB / 3.847 GB, free: 78.75 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003792/6.016, allocations: 310.6 kB / 3.847 GB, free: 78.75 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02933/6.045, allocations: 19.05 MB / 3.866 GB, free: 66.23 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/6.045, allocations: 45.66 kB / 3.866 GB, free: 66.19 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=61): time 2.564e-06/6.045, allocations: 0 / 3.866 GB, free: 66.19 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.004835/6.05, allocations: 1.442 MB / 3.867 GB, free: 66.15 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/6.05, allocations: 222.4 kB / 3.867 GB, free: 65.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000616/6.051, allocations: 0.559 MB / 3.868 GB, free: 65.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.936e-05/6.051, allocations: 28.77 kB / 3.868 GB, free: 65.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/6.051, allocations: 422 kB / 3.868 GB, free: 65.54 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/6.051, allocations: 195.8 kB / 3.868 GB, free: 65.44 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/6.051, allocations: 4 kB / 3.868 GB, free: 65.43 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.944e-05/6.051, allocations: 394.3 kB / 3.869 GB, free: 65.12 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004295/6.052, allocations: 305 kB / 3.869 GB, free: 65.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005345/6.052, allocations: 0.6 MB / 3.87 GB, free: 64.77 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002441/6.055, allocations: 0.6397 MB / 3.87 GB, free: 64.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/6.055, allocations: 3.875 kB / 3.87 GB, free: 64.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004947/6.06, allocations: 1.758 MB / 3.872 GB, free: 64.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004536/6.06, allocations: 3.226 MB / 3.875 GB, free: 61.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/6.06, allocations: 9.562 kB / 3.875 GB, free: 61.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/6.06, allocations: 19.12 kB / 3.875 GB, free: 61.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009587/6.061, allocations: 289.1 kB / 3.875 GB, free: 61.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/6.061, allocations: 20.36 kB / 3.875 GB, free: 61.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/6.062, allocations: 164.6 kB / 3.876 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.662e-05/6.062, allocations: 55.81 kB / 3.876 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.905e-06/6.062, allocations: 6.438 kB / 3.876 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002839/6.065, allocations: 1.022 MB / 3.877 GB, free: 61.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/6.065, allocations: 7.75 kB / 3.877 GB, free: 61.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/6.065, allocations: 15.28 kB / 3.877 GB, free: 61.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008932/6.066, allocations: 289.5 kB / 3.877 GB, free: 61.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/6.066, allocations: 19.14 kB / 3.877 GB, free: 61.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007638/6.067, allocations: 139.1 kB / 3.877 GB, free: 61.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.34e-05/6.067, allocations: 54.17 kB / 3.877 GB, free: 61.17 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.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 (109): * Single equations (assignments): 109 * 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.0001645/6.067, allocations: 139.7 kB / 3.877 GB, free: 61.06 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001457/6.069, allocations: 0.5385 MB / 3.878 GB, free: 61.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003877/6.073, allocations: 3.311 MB / 3.881 GB, free: 60.64 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/6.073, allocations: 30.42 kB / 3.881 GB, free: 60.64 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/6.073, allocations: 0 / 3.881 GB, free: 60.64 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/6.073, allocations: 0 / 3.881 GB, free: 60.64 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005299/6.078, allocations: 4.954 MB / 3.886 GB, free: 59.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/6.078, allocations: 3.938 kB / 3.886 GB, free: 59.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006282/6.079, allocations: 194.3 kB / 3.886 GB, free: 59.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/6.079, allocations: 3.969 kB / 3.886 GB, free: 59.86 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/6.079, allocations: 22.7 kB / 3.886 GB, free: 59.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/6.079, allocations: 11.03 kB / 3.886 GB, free: 59.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/6.079, allocations: 7.875 kB / 3.886 GB, free: 59.85 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003745/6.083, allocations: 2.551 MB / 3.889 GB, free: 59.15 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003665/6.086, allocations: 2.933 MB / 3.892 GB, free: 58.09 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006856/6.087, allocations: 0.589 MB / 3.892 GB, free: 57.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/6.087, allocations: 8.5 kB / 3.892 GB, free: 57.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008334/6.088, allocations: 99.34 kB / 3.892 GB, free: 57.89 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/6.088, allocations: 127.5 kB / 3.892 GB, free: 57.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.398e-05/6.088, allocations: 31.95 kB / 3.892 GB, free: 57.89 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001092/6.089, allocations: 1.084 MB / 3.893 GB, free: 57.78 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006692/6.096, allocations: 1.939 MB / 3.895 GB, free: 57.74 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,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 (67): * Single equations (assignments): 61 * 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.004948/6.101, allocations: 2.002 MB / 3.897 GB, free: 57.44 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00225/6.103, allocations: 1.748 MB / 3.899 GB, free: 57.42 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/6.103, allocations: 3.5 kB / 3.899 GB, free: 57.42 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000759/6.104, allocations: 0.9523 MB / 3.9 GB, free: 57.42 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/6.106, allocations: 403.9 kB / 3.9 GB, free: 57.39 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/6.109, allocations: 2.378 MB / 3.903 GB, free: 56.74 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008042/6.11, allocations: 1.442 MB / 3.904 GB, free: 56 MB / 0.5417 GB Notification: Performance of SimCode: time 2.71e-07/6.11, allocations: 0 / 3.904 GB, free: 56 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1)