Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.00129/0.00129, allocations: 203 kB / 8.54 MB, free: 1.73 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008667/0.0008668, allocations: 92.8 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1726/0.1726, allocations: 45.14 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.217/0.3897, allocations: 69.37 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.4829, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.042/4.525, allocations: 2.76 GB / 3.263 GB, free: 143.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/4.525, allocations: 87.27 kB / 3.264 GB, free: 143.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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.603/5.128, allocations: 216.9 MB / 3.475 GB, free: 90.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/5.129, allocations: 7.25 kB / 3.475 GB, free: 90.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001737/5.13, allocations: 243.2 kB / 3.476 GB, free: 90.26 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/5.131, allocations: 367.1 kB / 3.476 GB, free: 89.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/5.131, allocations: 15.34 kB / 3.476 GB, free: 89.98 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/5.131, allocations: 16.78 kB / 3.476 GB, free: 89.98 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004429/5.131, allocations: 296.9 kB / 3.476 GB, free: 89.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/5.132, allocations: 391.3 kB / 3.477 GB, free: 89.65 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/5.132, allocations: 0 / 3.477 GB, free: 89.65 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/5.132, allocations: 3.875 kB / 3.477 GB, free: 89.65 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/5.132, allocations: 7.625 kB / 3.477 GB, free: 89.65 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01634/5.148, allocations: 10.79 MB / 3.487 GB, free: 82.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/5.148, allocations: 207.1 kB / 3.487 GB, free: 82.02 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/5.149, allocations: 127.1 kB / 3.488 GB, free: 81.96 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04325/5.192, allocations: 27.19 MB / 3.514 GB, free: 63.68 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/5.192, allocations: 38 kB / 3.514 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.284e-06/5.192, allocations: 0 / 3.514 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.001629/5.194, allocations: 0.4935 MB / 3.515 GB, free: 63.47 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/5.194, allocations: 110.2 kB / 3.515 GB, free: 63.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/5.194, allocations: 235.3 kB / 3.515 GB, free: 63.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/5.194, allocations: 25.7 kB / 3.515 GB, free: 63.17 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/5.194, allocations: 177.1 kB / 3.515 GB, free: 63.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.207e-05/5.194, allocations: 78.28 kB / 3.515 GB, free: 62.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.587e-05/5.194, allocations: 0 / 3.515 GB, free: 62.96 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.142e-05/5.194, allocations: 341.6 kB / 3.515 GB, free: 62.63 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/5.194, allocations: 112.3 kB / 3.516 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/5.194, allocations: 197.2 kB / 3.516 GB, free: 62.43 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006547/5.195, allocations: 190.5 kB / 3.516 GB, free: 62.37 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/5.195, allocations: 0 / 3.516 GB, free: 62.37 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001476/5.197, allocations: 0.5639 MB / 3.517 GB, free: 62.17 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/5.197, allocations: 3.969 kB / 3.517 GB, free: 62.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/5.197, allocations: 3.562 kB / 3.517 GB, free: 62.17 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/5.197, allocations: 11.58 kB / 3.517 GB, free: 62.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/5.197, allocations: 107.9 kB / 3.517 GB, free: 62.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/5.197, allocations: 3.938 kB / 3.517 GB, free: 62.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/5.197, allocations: 72.84 kB / 3.517 GB, free: 62.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/5.197, allocations: 13.69 kB / 3.517 GB, free: 62.13 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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 7.598e-05/5.198, allocations: 116.5 kB / 3.517 GB, free: 62.02 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005028/5.198, allocations: 188 kB / 3.517 GB, free: 61.97 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/5.2, allocations: 1.685 MB / 3.519 GB, free: 61.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-05/5.2, allocations: 25.61 kB / 3.519 GB, free: 61.26 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/5.2, allocations: 0 / 3.519 GB, free: 61.26 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/5.2, allocations: 3.75 kB / 3.519 GB, free: 61.26 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/5.202, allocations: 2.239 MB / 3.521 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/5.202, allocations: 4 kB / 3.521 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/5.202, allocations: 79.31 kB / 3.521 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/5.202, allocations: 11.62 kB / 3.521 GB, free: 60.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/5.202, allocations: 11.03 kB / 3.521 GB, free: 60.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/5.202, allocations: 0 / 3.521 GB, free: 60.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/5.202, allocations: 3.938 kB / 3.521 GB, free: 60.18 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001552/5.204, allocations: 1.389 MB / 3.522 GB, free: 59.56 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001676/5.205, allocations: 1.802 MB / 3.524 GB, free: 58.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.795e-05/5.206, allocations: 159.5 kB / 3.524 GB, free: 58.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/5.206, allocations: 0 / 3.524 GB, free: 58.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/5.206, allocations: 47.14 kB / 3.524 GB, free: 58.38 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/5.206, allocations: 40.17 kB / 3.524 GB, free: 58.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/5.206, allocations: 11.02 kB / 3.524 GB, free: 58.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0001854/5.206, allocations: 244.3 kB / 3.525 GB, free: 58.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004331/5.211, allocations: 1.123 MB / 3.526 GB, free: 57.92 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * 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.004164/5.215, allocations: 1.513 MB / 3.527 GB, free: 57.53 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0008044/5.216, allocations: 0.7058 MB / 3.528 GB, free: 57.24 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/5.216, allocations: 1.062 kB / 3.528 GB, free: 57.24 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00053/5.216, allocations: 0.6765 MB / 3.529 GB, free: 56.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008321/5.217, allocations: 159.6 kB / 3.529 GB, free: 56.86 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/5.218, allocations: 1.091 MB / 3.53 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004455/5.219, allocations: 0.973 MB / 3.531 GB, free: 55.62 MB / 0.5261 GB Notification: Performance of SimCode: time 3.21e-07/5.219, allocations: 0 / 3.531 GB, free: 55.62 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1)