Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.001082/0.001082, allocations: 199.7 kB / 8.538 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.144/1.144, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008511/0.0008511, allocations: 100.7 kB / 286.3 MB, free: 5.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1619/0.1619, allocations: 45.14 MB / 383.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1918/0.3538, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08335/0.4371, allocations: 63.25 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.93/4.367, allocations: 2.76 GB / 3.264 GB, free: 152.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/4.368, allocations: 86.77 kB / 3.264 GB, free: 152.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.6289/4.996, allocations: 216.7 MB / 3.475 GB, free: 91.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/4.996, allocations: 7.844 kB / 3.475 GB, free: 91.14 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001861/4.998, allocations: 239.9 kB / 3.476 GB, free: 91.12 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00059/4.999, allocations: 369.3 kB / 3.476 GB, free: 90.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.332e-05/4.999, allocations: 13.81 kB / 3.476 GB, free: 90.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/4.999, allocations: 15.53 kB / 3.476 GB, free: 90.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005092/5, allocations: 302.3 kB / 3.476 GB, free: 90.89 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005056/5, allocations: 386.2 kB / 3.477 GB, free: 90.76 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/5, allocations: 2.281 kB / 3.477 GB, free: 90.76 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/5, allocations: 0 / 3.477 GB, free: 90.76 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/5, allocations: 7.938 kB / 3.477 GB, free: 90.76 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01712/5.017, allocations: 10.79 MB / 3.487 GB, free: 83.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/5.018, allocations: 215.1 kB / 3.487 GB, free: 83.58 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/5.018, allocations: 125.6 kB / 3.488 GB, free: 83.57 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04504/5.063, allocations: 27.18 MB / 3.514 GB, free: 65.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/5.063, allocations: 38.31 kB / 3.514 GB, free: 65.74 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.455e-06/5.063, allocations: 0 / 3.514 GB, free: 65.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.001704/5.065, allocations: 0.4946 MB / 3.515 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/5.065, allocations: 106.4 kB / 3.515 GB, free: 65.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/5.065, allocations: 229.6 kB / 3.515 GB, free: 65.31 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/5.065, allocations: 25.7 kB / 3.515 GB, free: 65.28 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.104e-05/5.065, allocations: 182.3 kB / 3.515 GB, free: 65.13 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/5.065, allocations: 80.31 kB / 3.515 GB, free: 65.07 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.592e-05/5.065, allocations: 0 / 3.515 GB, free: 65.07 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.532e-05/5.065, allocations: 341.2 kB / 3.516 GB, free: 64.74 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/5.065, allocations: 111.6 kB / 3.516 GB, free: 64.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/5.066, allocations: 191.1 kB / 3.516 GB, free: 64.54 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007005/5.066, allocations: 191.5 kB / 3.516 GB, free: 64.48 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/5.066, allocations: 0 / 3.516 GB, free: 64.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001552/5.068, allocations: 0.5649 MB / 3.517 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/5.068, allocations: 11.3 kB / 3.517 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/5.068, allocations: 0 / 3.517 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/5.068, allocations: 6.656 kB / 3.517 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003691/5.068, allocations: 93.94 kB / 3.517 GB, free: 64.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/5.068, allocations: 3.312 kB / 3.517 GB, free: 64.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/5.069, allocations: 59.75 kB / 3.517 GB, free: 64.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/5.069, allocations: 22.47 kB / 3.517 GB, free: 64.25 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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 8.98e-05/5.069, allocations: 108.3 kB / 3.517 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005795/5.069, allocations: 187.8 kB / 3.517 GB, free: 64.09 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/5.071, allocations: 1.686 MB / 3.519 GB, free: 63.39 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.173e-05/5.071, allocations: 25.58 kB / 3.519 GB, free: 63.39 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/5.071, allocations: 0 / 3.519 GB, free: 63.39 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/5.071, allocations: 0 / 3.519 GB, free: 63.39 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/5.073, allocations: 2.25 MB / 3.521 GB, free: 62.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/5.073, allocations: 0 / 3.521 GB, free: 62.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/5.074, allocations: 73.28 kB / 3.521 GB, free: 62.31 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/5.074, allocations: 3.844 kB / 3.521 GB, free: 62.31 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/5.074, allocations: 3.875 kB / 3.521 GB, free: 62.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/5.074, allocations: 3.938 kB / 3.521 GB, free: 62.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/5.074, allocations: 3.688 kB / 3.521 GB, free: 62.31 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0016/5.075, allocations: 1.389 MB / 3.522 GB, free: 61.69 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001723/5.077, allocations: 1.802 MB / 3.524 GB, free: 60.65 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/5.077, allocations: 158.2 kB / 3.524 GB, free: 60.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/5.077, allocations: 0 / 3.524 GB, free: 60.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/5.078, allocations: 39.05 kB / 3.524 GB, free: 60.51 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.531e-05/5.078, allocations: 47 kB / 3.524 GB, free: 60.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.911e-05/5.078, allocations: 7.875 kB / 3.524 GB, free: 60.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0001824/5.078, allocations: 234.8 kB / 3.525 GB, free: 60.37 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004865/5.083, allocations: 1.125 MB / 3.526 GB, free: 60.05 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: 15 ($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,Opening.y,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.007207/5.09, allocations: 1.518 MB / 3.527 GB, free: 59.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0007717/5.091, allocations: 0.7041 MB / 3.528 GB, free: 59.37 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/5.091, allocations: 0 / 3.528 GB, free: 59.37 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005108/5.091, allocations: 0.6839 MB / 3.529 GB, free: 59.03 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009464/5.092, allocations: 155.3 kB / 3.529 GB, free: 58.99 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/5.094, allocations: 1.086 MB / 3.53 GB, free: 58.47 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/5.094, allocations: 0.9656 MB / 3.531 GB, free: 57.75 MB / 0.5261 GB Notification: Performance of SimCode: time 3.71e-07/5.094, allocations: 3.938 kB / 3.531 GB, free: 57.75 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)