Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientValve.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/MEV 1.1.1/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) 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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/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: translateModel(MEV.Test.TestPatientValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientValve") translateModel(MEV.Test.TestPatientValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientValve") [: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.002038/0.002038, allocations: 181.3 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.006926/0.006927, allocations: 1.922 MB / 9.789 MB, free: 464 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9914/0.9914, allocations: 205.2 MB / 215.9 MB, free: 11.11 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.0008995/0.0008995, allocations: 83.62 kB / 264.4 MB, free: 11.32 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.248e-05/1.257e-05, allocations: 4 kB / 318.5 MB, free: 5.125 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.1607, allocations: 48.07 MB / 366.6 MB, free: 45.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06686/0.2276, allocations: 75.46 MB / 442.1 MB, free: 7.656 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/0.2278, allocations: 67.97 kB / 442.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005856/0.2337, allocations: 2.099 MB / 444.2 MB, free: 5.508 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.2337, allocations: 5.422 kB / 444.2 MB, free: 5.504 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003707/0.2341, allocations: 383.1 kB / 444.6 MB, free: 5.086 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2341, allocations: 12.03 kB / 444.6 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.222e-05/0.2342, allocations: 11.91 kB / 444.6 MB, free: 5.062 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.2344, allocations: 199.3 kB / 444.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.2344, allocations: 0 / 444.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.2345, allocations: 11.98 kB / 444.8 MB, free: 4.812 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001159/0.2346, allocations: 40 kB / 444.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.2347, allocations: 76.33 kB / 445 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.2347, allocations: 0 / 445 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.2347, allocations: 0 / 445 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2347, allocations: 0 / 445 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004824/0.2352, allocations: 364.3 kB / 445.3 MB, free: 4.309 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003716/0.2356, allocations: 62.55 kB / 445.4 MB, free: 4.238 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.422e-05/0.2357, allocations: 12.86 kB / 445.4 MB, free: 4.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.2357, allocations: 4 kB / 445.4 MB, free: 4.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.711e-05/0.2357, allocations: 34.56 kB / 445.4 MB, free: 4.176 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.2357, allocations: 0 / 445.4 MB, free: 4.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002053/0.2359, allocations: 69.67 kB / 445.5 MB, free: 4.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.2359, allocations: 51.41 kB / 445.5 MB, free: 4.039 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.2361, allocations: 128.1 kB / 445.7 MB, free: 3.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.2361, allocations: 29.7 kB / 445.7 MB, free: 3.871 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.2361, allocations: 103.9 kB / 445.8 MB, free: 3.766 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.252e-05/0.2362, allocations: 15.81 kB / 445.8 MB, free: 3.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.2362, allocations: 0 / 445.8 MB, free: 3.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.2363, allocations: 322.8 kB / 446.1 MB, free: 3.426 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.881e-05/0.2363, allocations: 12 kB / 446.1 MB, free: 3.414 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.469e-05/0.2364, allocations: 11.94 kB / 446.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.789e-05/0.2364, allocations: 23.98 kB / 446.2 MB, free: 3.379 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2364, allocations: 0 / 446.2 MB, free: 3.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000141/0.2366, allocations: 77.62 kB / 446.2 MB, free: 3.297 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.04e-05/0.2366, allocations: 107.5 kB / 446.3 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2367, allocations: 0 / 446.3 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.2367, allocations: 0 / 446.3 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.639e-05/0.2368, allocations: 12 kB / 446.4 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.2368, allocations: 0 / 446.4 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.615e-05/0.2368, allocations: 11.92 kB / 446.4 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.2369, allocations: 3.906 kB / 446.4 MB, free: 3.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.39e-06/0.2369, allocations: 4 kB / 446.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 5.858e-05/0.2369, allocations: 31.94 kB / 446.4 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-06/0.2369, allocations: 4 kB / 446.4 MB, free: 3.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-06/0.2369, allocations: 3.938 kB / 446.4 MB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.934e-05/0.237, allocations: 11.98 kB / 446.4 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.92e-07/0.237, allocations: 0 / 446.4 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.629e-05/0.2371, allocations: 5.875 kB / 446.4 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.88e-06/0.2371, allocations: 4 kB / 446.4 MB, free: 3.098 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 5.563e-05/0.2372, allocations: 109.8 kB / 446.5 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.2372, allocations: 7.906 kB / 446.6 MB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.2373, allocations: 73.77 kB / 446.6 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2373, allocations: 0 / 446.6 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.2373, allocations: 0 / 446.6 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2373, allocations: 0 / 446.6 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002655/0.2376, allocations: 311.9 kB / 446.9 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2376, allocations: 0 / 446.9 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.724e-05/0.2377, allocations: 15.97 kB / 446.9 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.2377, allocations: 4 kB / 447 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.2377, allocations: 0 / 447 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2377, allocations: 0 / 447 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2377, allocations: 0 / 447 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001193/0.2378, allocations: 173.9 kB / 447.1 MB, free: 2.328 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.642e-05/0.2379, allocations: 93.02 kB / 447.2 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.2379, allocations: 7.891 kB / 447.2 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.834e-05/0.238, allocations: 8.062 kB / 447.2 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.408e-05/0.2381, allocations: 0 / 447.2 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.2381, allocations: 4.75 kB / 447.2 MB, free: 2.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.781e-05/0.2381, allocations: 113.1 kB / 447.3 MB, free: 2.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002854/0.2384, allocations: 47.84 kB / 447.4 MB, free: 2.043 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001038/0.2385, allocations: 115.1 kB / 447.5 MB, free: 1.922 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001119/0.2387, allocations: 48.44 kB / 447.5 MB, free: 1.875 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2387, allocations: 0 / 447.5 MB, free: 1.875 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.364e-05/0.2387, allocations: 11.94 kB / 447.6 MB, free: 1.863 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001604/0.2389, allocations: 13.67 kB / 447.6 MB, free: 1.852 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.2392, allocations: 124.6 kB / 447.7 MB, free: 1.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.2394, allocations: 0.7264 MB / 448.4 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2394, allocations: 0 / 448.4 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of Templates: time 0.002808/0.2422, allocations: 1.031 MB / 449.5 MB, free: 15.93 MB / 346.7 MB make -j1 -f MEV_MEV.Test.TestPatientValve.makefile (rm -f MEV_MEV.Test.TestPatientValve.pipe ; mkfifo MEV_MEV.Test.TestPatientValve.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientValve.pipe >> ../files/MEV_MEV.Test.TestPatientValve.sim & ./MEV_MEV.Test.TestPatientValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientValve.pipe 2>&1)