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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.006683/0.006683, allocations: 1.935 MB / 18.67 MB, free: 3.066 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.1 MB / 225 MB, free: 4.816 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.001285/0.001285, allocations: 106 kB / 272.9 MB, free: 6.059 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009414/0.0009414, allocations: 47.92 kB / 330.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1835, allocations: 47.12 MB / 377.9 MB, free: 44.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.002533/0.186, allocations: 2.276 MB / 380.2 MB, free: 42.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007428/0.1868, allocations: 0.6019 MB / 380.8 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.21e-05/0.1869, allocations: 1.125 kB / 380.8 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.879e-05/0.1869, allocations: 8.891 kB / 380.8 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.187, allocations: 45.64 kB / 380.9 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.1872, allocations: 33.78 kB / 380.9 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.1873, allocations: 126.6 kB / 381 MB, free: 42.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.1874, allocations: 28.61 kB / 381 MB, free: 42.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.772e-05/0.1875, allocations: 49.52 kB / 381.1 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.456e-05/0.1876, allocations: 55.23 kB / 381.1 MB, free: 42.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.1876, allocations: 5.219 kB / 381.1 MB, free: 42.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.416e-05/0.1877, allocations: 9.062 kB / 381.2 MB, free: 42.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.183e-05/0.1877, allocations: 18.3 kB / 381.2 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.386e-05/0.1878, allocations: 61.7 kB / 381.2 MB, free: 42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.1879, allocations: 105.9 kB / 381.3 MB, free: 41.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1879, allocations: 0 / 381.3 MB, free: 41.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1879, allocations: 3.938 kB / 381.3 MB, free: 41.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.1879, allocations: 1.375 kB / 381.3 MB, free: 41.92 MB / 298.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.0004233/0.1884, allocations: 425.6 kB / 381.8 MB, free: 41.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.1884, allocations: 9.75 kB / 381.8 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.1884, allocations: 14.47 kB / 381.8 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.1886, allocations: 202.9 kB / 382 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.1886, allocations: 3.875 kB / 382 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/0.1886, allocations: 9.031 kB / 382 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.1888, allocations: 97.12 kB / 382.1 MB, free: 41.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.1888, allocations: 4 kB / 382.1 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1888, allocations: 3.938 kB / 382.1 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1888, allocations: 6.094 kB / 382.1 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.189, allocations: 54.47 kB / 382.2 MB, free: 41.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004725/0.1894, allocations: 386.5 kB / 382.5 MB, free: 40.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003987/0.1899, allocations: 70.28 kB / 382.6 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.113e-05/0.1899, allocations: 21.27 kB / 382.6 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.1899, allocations: 1.031 kB / 382.6 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.113e-05/0.19, allocations: 36.17 kB / 382.7 MB, free: 40.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.19, allocations: 0 / 382.7 MB, free: 40.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002295/0.1902, allocations: 94.17 kB / 382.8 MB, free: 40.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.677e-05/0.1902, allocations: 51.41 kB / 382.8 MB, free: 40.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.1904, allocations: 180.2 kB / 383 MB, free: 40.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.612e-06/0.1904, allocations: 25.7 kB / 383 MB, free: 40.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.173e-05/0.1904, allocations: 122 kB / 383.1 MB, free: 40.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.167e-06/0.1904, allocations: 8.969 kB / 383.1 MB, free: 40.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.1905, allocations: 19.16 kB / 383.1 MB, free: 40.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.896e-05/0.1905, allocations: 321.3 kB / 383.5 MB, free: 39.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.626e-05/0.1906, allocations: 31.72 kB / 383.5 MB, free: 39.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.53e-05/0.1906, allocations: 18.27 kB / 383.5 MB, free: 39.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.552e-05/0.1907, allocations: 50.91 kB / 383.6 MB, free: 39.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1907, allocations: 0 / 383.6 MB, free: 39.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001378/0.1909, allocations: 86.27 kB / 383.6 MB, free: 39.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.1909, allocations: 8.438 kB / 383.7 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1909, allocations: 5.094 kB / 383.7 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1909, allocations: 4.188 kB / 383.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.162e-05/0.191, allocations: 9.406 kB / 383.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.191, allocations: 0.75 kB / 383.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.037e-05/0.1911, allocations: 15.3 kB / 383.7 MB, free: 39.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1911, allocations: 5.234 kB / 383.7 MB, free: 39.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.872e-05/0.1912, allocations: 105.2 kB / 383.8 MB, free: 39.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 3.719e-05/0.1912, allocations: 12.75 kB / 383.8 MB, free: 39.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.648e-05/0.1913, allocations: 48.88 kB / 383.9 MB, free: 39.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.12e-07/0.1913, allocations: 4 kB / 383.9 MB, free: 39.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0001193/0.1914, allocations: 82.27 kB / 383.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.712e-06/0.1914, allocations: 6 kB / 383.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.52e-07/0.1915, allocations: 0 / 383.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-06/0.1915, allocations: 3.938 kB / 383.9 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.093e-05/0.1915, allocations: 9.5 kB / 384 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-06/0.1915, allocations: 0 / 384 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.801e-05/0.1916, allocations: 7.203 kB / 384 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.1916, allocations: 1.188 kB / 384 MB, free: 39.56 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.1916, allocations: 190 kB / 384.2 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.1917, allocations: 17.34 kB / 384.2 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.1918, allocations: 85.16 kB / 384.3 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1918, allocations: 1.156 kB / 384.3 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1918, allocations: 0 / 384.3 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1918, allocations: 0 / 384.3 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003032/0.1922, allocations: 356.7 kB / 384.6 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1922, allocations: 0 / 384.6 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.496e-05/0.1922, allocations: 6.688 kB / 384.6 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1922, allocations: 1.281 kB / 384.6 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1922, allocations: 1.312 kB / 384.6 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1922, allocations: 0 / 384.6 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1922, allocations: 1.344 kB / 384.6 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002899/0.1925, allocations: 0.7536 MB / 385.4 MB, free: 38.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.1926, allocations: 94.25 kB / 385.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.1926, allocations: 5.219 kB / 385.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.763e-05/0.1927, allocations: 1.906 kB / 385.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.934e-05/0.1927, allocations: 14.05 kB / 385.5 MB, free: 38.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.1927, allocations: 1.188 kB / 385.5 MB, free: 38.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.962e-05/0.1928, allocations: 139.8 kB / 385.6 MB, free: 37.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1928, allocations: 4 kB / 385.6 MB, free: 37.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004666/0.1933, allocations: 46.17 kB / 385.7 MB, free: 37.91 MB / 298.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.839e-05/0.1934, allocations: 91.81 kB / 385.8 MB, free: 37.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001803/0.1936, allocations: 65.94 kB / 385.8 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1936, allocations: 1.062 kB / 385.8 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.59e-05/0.1936, allocations: 18.3 kB / 385.8 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.1939, allocations: 17.81 kB / 385.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004456/0.1944, allocations: 411.8 kB / 386.3 MB, free: 37.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.1945, allocations: 0.7052 MB / 387 MB, free: 36.7 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.237e-05/0.1945, allocations: 17.7 kB / 387 MB, free: 36.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.321e-05/0.1946, allocations: 15.91 kB / 387 MB, free: 36.68 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1946, allocations: 0 / 387 MB, free: 36.68 MB / 298.7 MB Notification: Performance of Templates: time 0.002723/0.1973, allocations: 0.9889 MB / 388 MB, free: 36.07 MB / 298.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)