Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 187.9 kB / 7.805 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 86.48 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2532/0.2532, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2563/0.5096, allocations: 64.97 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5543/1.064, allocations: 58.84 MB / 476.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7448/1.809, allocations: 350.7 MB / 0.808 GB, free: 2.281 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003793/1.809, allocations: 95.2 kB / 0.8081 GB, free: 2.23 MB / 490.7 MB 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 1.445/3.254, allocations: 307.5 MB / 1.108 GB, free: 79.76 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.036e-05/3.254, allocations: 9.75 kB / 1.108 GB, free: 79.76 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002081/3.256, allocations: 205.1 kB / 1.109 GB, free: 79.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004934/3.261, allocations: 1.283 MB / 1.11 GB, free: 79.29 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/3.261, allocations: 145 kB / 1.11 GB, free: 79.19 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006752/3.262, allocations: 67.38 kB / 1.11 GB, free: 79.19 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003765/3.266, allocations: 1.788 MB / 1.112 GB, free: 79.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003864/3.27, allocations: 1.791 MB / 1.113 GB, free: 78.95 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/3.27, allocations: 0 / 1.113 GB, free: 78.95 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002394/3.27, allocations: 3.062 kB / 1.113 GB, free: 78.95 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001549/3.27, allocations: 129.2 kB / 1.114 GB, free: 78.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01373/3.284, allocations: 6.782 MB / 1.12 GB, free: 76.74 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/3.285, allocations: 1.021 MB / 1.121 GB, free: 76.72 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/3.286, allocations: 0.7796 MB / 1.122 GB, free: 76.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006096/3.293, allocations: 4.386 MB / 1.126 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/3.293, allocations: 48.28 kB / 1.126 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=117): time 3.797e-06/3.293, allocations: 0 / 1.126 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=132): time 0.02006/3.313, allocations: 5.218 MB / 1.131 GB, free: 71.76 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/3.313, allocations: 224.9 kB / 1.132 GB, free: 71.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/3.315, allocations: 0.9065 MB / 1.133 GB, free: 71.11 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001633/3.315, allocations: 26.67 kB / 1.133 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003395/3.315, allocations: 493.1 kB / 1.133 GB, free: 70.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004924/3.316, allocations: 437.5 kB / 1.133 GB, free: 70.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/3.316, allocations: 0 / 1.133 GB, free: 70.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001257/3.316, allocations: 371.9 kB / 1.134 GB, free: 70.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/3.317, allocations: 0.7382 MB / 1.134 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/3.319, allocations: 1.051 MB / 1.136 GB, free: 69.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/3.332, allocations: 2.716 MB / 1.138 GB, free: 68.66 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.903e-05/3.332, allocations: 2.469 kB / 1.138 GB, free: 68.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.01728/3.349, allocations: 4.165 MB / 1.142 GB, free: 67.67 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008216/3.35, allocations: 2.977 MB / 1.145 GB, free: 64.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.731e-05/3.35, allocations: 8.531 kB / 1.145 GB, free: 64.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00648/3.356, allocations: 1.168 MB / 1.146 GB, free: 64.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/3.358, allocations: 334.3 kB / 1.147 GB, free: 64.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006293/3.365, allocations: 2.185 MB / 1.149 GB, free: 63.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002908/3.368, allocations: 75.66 kB / 1.149 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003/3.368, allocations: 77.88 kB / 1.149 GB, free: 63.26 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/3.368, allocations: 5.375 kB / 1.149 GB, free: 63.26 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01597/3.384, allocations: 3.732 MB / 1.153 GB, free: 62.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.36e-05/3.384, allocations: 8 kB / 1.153 GB, free: 62.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006017/3.39, allocations: 1.028 MB / 1.154 GB, free: 61.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/3.392, allocations: 348.5 kB / 1.154 GB, free: 61.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003668/3.396, allocations: 1.77 MB / 1.156 GB, free: 59.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/3.398, allocations: 72.16 kB / 1.156 GB, free: 59.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002181/3.398, allocations: 75.98 kB / 1.156 GB, free: 59.67 MB / 0.4948 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.000617/3.399, allocations: 144.8 kB / 1.156 GB, free: 59.53 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003863/3.399, allocations: 147 kB / 1.156 GB, free: 59.38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008085/3.407, allocations: 2.831 MB / 1.159 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.003e-05/3.407, allocations: 20.84 kB / 1.159 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/3.407, allocations: 0 / 1.159 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.859e-05/3.407, allocations: 11.73 kB / 1.159 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/3.418, allocations: 4.178 MB / 1.163 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/3.418, allocations: 3.812 kB / 1.163 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/3.419, allocations: 233.5 kB / 1.163 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003272/3.422, allocations: 0.9396 MB / 1.164 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001675/3.422, allocations: 23.45 kB / 1.164 GB, free: 52.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005028/3.427, allocations: 2.192 MB / 1.166 GB, free: 50.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/3.427, allocations: 0 / 1.166 GB, free: 50.98 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007936/3.435, allocations: 3.589 MB / 1.17 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009193/3.445, allocations: 5.136 MB / 1.175 GB, free: 42.34 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/3.446, allocations: 427 kB / 1.175 GB, free: 41.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/3.446, allocations: 0 / 1.175 GB, free: 41.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/3.448, allocations: 82.17 kB / 1.175 GB, free: 41.83 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/3.448, allocations: 116.5 kB / 1.175 GB, free: 41.72 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/3.448, allocations: 55.97 kB / 1.175 GB, free: 41.67 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0009724/3.449, allocations: 0.6711 MB / 1.176 GB, free: 40.99 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005847/3.455, allocations: 1.585 MB / 1.178 GB, free: 39.41 MB / 0.4948 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.002983/3.458, allocations: 1.206 MB / 1.179 GB, free: 38.34 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005952/3.464, allocations: 3.047 MB / 1.182 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/3.464, allocations: 0 / 1.182 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001756/3.466, allocations: 0.9805 MB / 1.183 GB, free: 34.31 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/3.469, allocations: 0.589 MB / 1.183 GB, free: 33.76 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006566/3.475, allocations: 2.857 MB / 1.186 GB, free: 31.04 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/3.477, allocations: 1.618 MB / 1.188 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of SimCode: time 1.082e-06/3.477, allocations: 3.938 kB / 1.188 GB, free: 29.39 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1)