Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009848/0.0009848, allocations: 179.4 kB / 8.517 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.168/1.168, allocations: 221.4 MB / 230.3 MB, free: 7.707 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 88.11 kB / 281.2 MB, free: 5.531 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1588/0.1588, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1787/0.3376, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09534/0.4329, allocations: 61.91 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6035/1.036, allocations: 351.4 MB / 0.8374 GB, free: 38.52 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/1.037, allocations: 96.08 kB / 0.8375 GB, free: 38.47 MB / 0.4948 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.9835/2.02, allocations: 313 MB / 1.143 GB, free: 73.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/2.02, allocations: 14.34 kB / 1.143 GB, free: 73.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/2.021, allocations: 205.4 kB / 1.143 GB, free: 73.17 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/2.025, allocations: 1.284 MB / 1.145 GB, free: 72.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/2.025, allocations: 144.9 kB / 1.145 GB, free: 72.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003063/2.025, allocations: 67.06 kB / 1.145 GB, free: 72.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002456/2.028, allocations: 1.782 MB / 1.147 GB, free: 72.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002352/2.03, allocations: 1.792 MB / 1.148 GB, free: 72.47 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.093e-05/2.03, allocations: 1.781 kB / 1.148 GB, free: 72.47 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/2.03, allocations: 3.125 kB / 1.148 GB, free: 72.47 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.936e-05/2.03, allocations: 126 kB / 1.148 GB, free: 72.46 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/2.041, allocations: 6.775 MB / 1.155 GB, free: 70.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/2.042, allocations: 1.023 MB / 1.156 GB, free: 70.24 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008859/2.043, allocations: 0.7751 MB / 1.157 GB, free: 70.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005248/2.048, allocations: 4.391 MB / 1.161 GB, free: 67.89 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/2.048, allocations: 48.81 kB / 1.161 GB, free: 67.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=117): time 2.715e-06/2.048, allocations: 0 / 1.161 GB, free: 67.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.0165/2.065, allocations: 5.213 MB / 1.166 GB, free: 67.22 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/2.065, allocations: 226.7 kB / 1.166 GB, free: 66.97 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/2.066, allocations: 0.9043 MB / 1.167 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001748/2.066, allocations: 29.08 kB / 1.167 GB, free: 66.78 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/2.066, allocations: 491.4 kB / 1.168 GB, free: 66.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003563/2.067, allocations: 436.6 kB / 1.168 GB, free: 66.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.886e-05/2.067, allocations: 3.656 kB / 1.168 GB, free: 66.21 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.532e-05/2.067, allocations: 368.8 kB / 1.169 GB, free: 65.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009909/2.068, allocations: 0.7393 MB / 1.169 GB, free: 65.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/2.069, allocations: 1.054 MB / 1.17 GB, free: 65.57 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005398/2.074, allocations: 1.701 MB / 1.172 GB, free: 65.56 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/2.075, allocations: 0 / 1.172 GB, free: 65.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.008686/2.083, allocations: 3.152 MB / 1.175 GB, free: 65.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004181/2.084, allocations: 2.977 MB / 1.178 GB, free: 62.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/2.084, allocations: 10.44 kB / 1.178 GB, free: 62.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005616/2.089, allocations: 1.162 MB / 1.179 GB, free: 62.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/2.091, allocations: 336.7 kB / 1.179 GB, free: 62.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004729/2.096, allocations: 2.198 MB / 1.182 GB, free: 61.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/2.097, allocations: 73.27 kB / 1.182 GB, free: 61.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000259/2.098, allocations: 77.67 kB / 1.182 GB, free: 61.76 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.198e-06/2.098, allocations: 3.344 kB / 1.182 GB, free: 61.76 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006907/2.105, allocations: 2.717 MB / 1.184 GB, free: 61.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-05/2.105, allocations: 11.17 kB / 1.184 GB, free: 61.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005426/2.11, allocations: 1.018 MB / 1.185 GB, free: 61.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/2.112, allocations: 345.6 kB / 1.186 GB, free: 61.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/2.115, allocations: 1.77 MB / 1.188 GB, free: 61.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/2.117, allocations: 69.14 kB / 1.188 GB, free: 61.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002032/2.117, allocations: 78.55 kB / 1.188 GB, free: 61.16 MB / 0.5105 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.0004051/2.117, allocations: 146.8 kB / 1.188 GB, free: 61.04 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/2.118, allocations: 148.6 kB / 1.188 GB, free: 60.97 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006734/2.124, allocations: 2.841 MB / 1.191 GB, free: 60.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/2.124, allocations: 14.31 kB / 1.191 GB, free: 60.86 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/2.124, allocations: 0 / 1.191 GB, free: 60.86 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/2.124, allocations: 8.859 kB / 1.191 GB, free: 60.86 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008609/2.133, allocations: 4.18 MB / 1.195 GB, free: 60.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/2.133, allocations: 0 / 1.195 GB, free: 60.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/2.134, allocations: 234.1 kB / 1.195 GB, free: 60.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00319/2.137, allocations: 0.9434 MB / 1.196 GB, free: 60.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/2.138, allocations: 26.09 kB / 1.196 GB, free: 60.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004295/2.142, allocations: 2.191 MB / 1.198 GB, free: 59.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/2.142, allocations: 2.438 kB / 1.198 GB, free: 59.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007293/2.149, allocations: 3.592 MB / 1.202 GB, free: 58 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008953/2.158, allocations: 5.129 MB / 1.207 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009319/2.159, allocations: 423.7 kB / 1.207 GB, free: 55.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/2.16, allocations: 7.344 kB / 1.207 GB, free: 55.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/2.161, allocations: 84.48 kB / 1.207 GB, free: 55.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/2.161, allocations: 110 kB / 1.207 GB, free: 55.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/2.161, allocations: 60.48 kB / 1.207 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0009322/2.162, allocations: 0.6656 MB / 1.208 GB, free: 55.22 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005394/2.168, allocations: 1.581 MB / 1.209 GB, free: 54.69 MB / 0.5105 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.002797/2.17, allocations: 1.211 MB / 1.211 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006303/2.177, allocations: 3.04 MB / 1.214 GB, free: 53.21 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/2.177, allocations: 4 kB / 1.214 GB, free: 53.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001893/2.179, allocations: 0.9769 MB / 1.215 GB, free: 52.35 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003047/2.182, allocations: 0.5938 MB / 1.215 GB, free: 51.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006138/2.188, allocations: 2.85 MB / 1.218 GB, free: 49.66 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/2.189, allocations: 1.623 MB / 1.22 GB, free: 48.32 MB / 0.5105 GB Notification: Performance of SimCode: time 6.71e-07/2.189, allocations: 3.938 kB / 1.22 GB, free: 48.32 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1)