Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.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.TestDelayedValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",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.001256/0.001256, allocations: 199.8 kB / 8.535 MB, free: 460 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 225.5 MB / 234.4 MB, free: 9.453 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009633/0.0009633, allocations: 96.25 kB / 286.3 MB, free: 5.836 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1675/0.1675, allocations: 45.15 MB / 383.3 MB, free: 4.867 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1738/0.3413, allocations: 69.38 MB / 452.7 MB, free: 48.18 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.428, allocations: 63.24 MB / 0.5039 GB, free: 0.8711 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6015/1.03, allocations: 352.5 MB / 0.8481 GB, free: 23.38 MB / 0.5027 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/1.03, allocations: 83.52 kB / 0.8482 GB, free: 23.34 MB / 0.5027 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.9629/1.993, allocations: 312.3 MB / 1.153 GB, free: 82.87 MB / 0.5339 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/1.993, allocations: 10.97 kB / 1.153 GB, free: 82.87 MB / 0.5339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006597/1.993, allocations: 201.7 kB / 1.153 GB, free: 82.78 MB / 0.5339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002442/1.996, allocations: 1.285 MB / 1.155 GB, free: 82.47 MB / 0.5339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/1.996, allocations: 145.1 kB / 1.155 GB, free: 82.38 MB / 0.5339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/1.996, allocations: 62.31 kB / 1.155 GB, free: 82.38 MB / 0.5339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002422/1.999, allocations: 1.782 MB / 1.157 GB, free: 82.37 MB / 0.5339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002295/2.001, allocations: 1.787 MB / 1.158 GB, free: 82.14 MB / 0.5339 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/2.001, allocations: 13.81 kB / 1.158 GB, free: 82.14 MB / 0.5339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001496/2.001, allocations: 0 / 1.158 GB, free: 82.14 MB / 0.5339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.862e-05/2.001, allocations: 124.1 kB / 1.158 GB, free: 82.14 MB / 0.5339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/2.011, allocations: 6.789 MB / 1.165 GB, free: 79.98 MB / 0.5339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/2.012, allocations: 1.025 MB / 1.166 GB, free: 79.96 MB / 0.5339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008695/2.013, allocations: 0.78 MB / 1.167 GB, free: 79.95 MB / 0.5339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004914/2.018, allocations: 4.386 MB / 1.171 GB, free: 77.61 MB / 0.5339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/2.018, allocations: 55.56 kB / 1.171 GB, free: 77.56 MB / 0.5339 GB Notification: Performance of pre-optimization done (n=117): time 3.045e-06/2.018, allocations: 2.25 kB / 1.171 GB, free: 77.56 MB / 0.5339 GB Notification: Performance of matching and sorting (n=132): time 0.01566/2.034, allocations: 5.206 MB / 1.176 GB, free: 76.94 MB / 0.5339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/2.034, allocations: 222.1 kB / 1.176 GB, free: 76.69 MB / 0.5339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/2.035, allocations: 0.9072 MB / 1.177 GB, free: 76.53 MB / 0.5339 GB Notification: Performance of collectPreVariables (initialization): time 0.0001175/2.035, allocations: 25.7 kB / 1.177 GB, free: 76.5 MB / 0.5339 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/2.036, allocations: 489.2 kB / 1.178 GB, free: 76.21 MB / 0.5339 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003092/2.036, allocations: 444.9 kB / 1.178 GB, free: 75.93 MB / 0.5339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/2.036, allocations: 0 / 1.178 GB, free: 75.93 MB / 0.5339 GB Notification: Performance of setup shared object (initialization): time 8.155e-05/2.036, allocations: 369.8 kB / 1.179 GB, free: 75.62 MB / 0.5339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009724/2.037, allocations: 0.7388 MB / 1.179 GB, free: 75.62 MB / 0.5339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/2.038, allocations: 1.051 MB / 1.18 GB, free: 75.29 MB / 0.5339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006547/2.045, allocations: 1.855 MB / 1.182 GB, free: 75.27 MB / 0.5339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/2.045, allocations: 3.75 kB / 1.182 GB, free: 75.27 MB / 0.5339 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.008877/2.054, allocations: 3.309 MB / 1.185 GB, free: 75.13 MB / 0.5339 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003759/2.054, allocations: 2.974 MB / 1.188 GB, free: 72.05 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/2.054, allocations: 16.14 kB / 1.188 GB, free: 72.05 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005966/2.06, allocations: 1.164 MB / 1.189 GB, free: 72.03 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/2.062, allocations: 334.1 kB / 1.19 GB, free: 72.03 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004657/2.066, allocations: 2.187 MB / 1.192 GB, free: 71.48 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/2.068, allocations: 74.67 kB / 1.192 GB, free: 71.48 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/2.068, allocations: 74.84 kB / 1.192 GB, free: 71.48 MB / 0.5339 GB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/2.068, allocations: 3.812 kB / 1.192 GB, free: 71.48 MB / 0.5339 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007861/2.076, allocations: 2.879 MB / 1.195 GB, free: 71.43 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/2.076, allocations: 13.91 kB / 1.195 GB, free: 71.43 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005622/2.082, allocations: 1.025 MB / 1.196 GB, free: 71.42 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/2.083, allocations: 342.9 kB / 1.196 GB, free: 71.42 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003181/2.086, allocations: 1.783 MB / 1.198 GB, free: 70.88 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/2.088, allocations: 67.14 kB / 1.198 GB, free: 70.87 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001685/2.088, allocations: 78.31 kB / 1.198 GB, free: 70.87 MB / 0.5339 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003625/2.088, allocations: 144.2 kB / 1.198 GB, free: 70.75 MB / 0.5339 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/2.089, allocations: 150.8 kB / 1.198 GB, free: 70.68 MB / 0.5339 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006643/2.095, allocations: 2.832 MB / 1.201 GB, free: 70.58 MB / 0.5339 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/2.095, allocations: 17.25 kB / 1.201 GB, free: 70.58 MB / 0.5339 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/2.095, allocations: 0 / 1.201 GB, free: 70.58 MB / 0.5339 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/2.095, allocations: 10.69 kB / 1.201 GB, free: 70.58 MB / 0.5339 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007776/2.103, allocations: 4.175 MB / 1.205 GB, free: 70.24 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/2.103, allocations: 0 / 1.205 GB, free: 70.24 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/2.104, allocations: 233.5 kB / 1.205 GB, free: 70.24 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002967/2.107, allocations: 0.9446 MB / 1.206 GB, free: 70.22 MB / 0.5339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/2.107, allocations: 24.81 kB / 1.206 GB, free: 70.22 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003964/2.111, allocations: 2.183 MB / 1.209 GB, free: 69.67 MB / 0.5339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/2.111, allocations: 0 / 1.209 GB, free: 69.67 MB / 0.5339 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006699/2.118, allocations: 3.596 MB / 1.212 GB, free: 69.4 MB / 0.5339 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008016/2.126, allocations: 5.122 MB / 1.217 GB, free: 68.75 MB / 0.5339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008461/2.127, allocations: 433.4 kB / 1.217 GB, free: 68.58 MB / 0.5339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/2.127, allocations: 9.516 kB / 1.217 GB, free: 68.58 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/2.128, allocations: 77.36 kB / 1.218 GB, free: 68.57 MB / 0.5339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/2.129, allocations: 110.3 kB / 1.218 GB, free: 68.57 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/2.129, allocations: 60.02 kB / 1.218 GB, free: 68.57 MB / 0.5339 GB Notification: Performance of sort global known variables: time 0.0008818/2.13, allocations: 0.669 MB / 1.218 GB, free: 68.46 MB / 0.5339 GB Notification: Performance of remove unused functions: time 0.00478/2.134, allocations: 1.608 MB / 1.22 GB, free: 68.21 MB / 0.5339 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.002351/2.137, allocations: 1.219 MB / 1.221 GB, free: 67.86 MB / 0.5339 GB Notification: Performance of simCode: created initialization part: time 0.005486/2.142, allocations: 3.045 MB / 1.224 GB, free: 67.75 MB / 0.5339 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/2.142, allocations: 3.938 kB / 1.224 GB, free: 67.75 MB / 0.5339 GB Notification: Performance of simCode: created simulation system equations: time 0.001722/2.144, allocations: 0.9772 MB / 1.225 GB, free: 67.73 MB / 0.5339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/2.147, allocations: 0.5923 MB / 1.226 GB, free: 67.72 MB / 0.5339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/2.152, allocations: 2.853 MB / 1.228 GB, free: 67.18 MB / 0.5339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/2.154, allocations: 1.614 MB / 1.23 GB, free: 66.45 MB / 0.5339 GB Notification: Performance of SimCode: time 9.21e-07/2.154, allocations: 1.438 kB / 1.23 GB, free: 66.45 MB / 0.5339 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1)