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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 188.9 kB / 16.66 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008871/0.008871, allocations: 1.932 MB / 271.8 MB, free: 3.27 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 71.89 kB / 378.2 MB, free: 448 kB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.079/0.08049, allocations: 47.13 MB / 425.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.1559/0.2365, allocations: 1.954 MB / 427.3 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009843/0.2375, allocations: 0.5673 MB / 427.9 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.724e-05/0.2376, allocations: 1.562 kB / 427.9 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.167e-05/0.2377, allocations: 19.22 kB / 427.9 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.2379, allocations: 40.09 kB / 427.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.2382, allocations: 36.97 kB / 428 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.2384, allocations: 139.5 kB / 428.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.2386, allocations: 42.14 kB / 428.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.504e-05/0.2387, allocations: 45.61 kB / 428.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.2388, allocations: 57.84 kB / 428.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.2389, allocations: 9.344 kB / 428.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.239, allocations: 15.78 kB / 428.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.196e-05/0.239, allocations: 21.94 kB / 428.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.678e-05/0.2391, allocations: 54.36 kB / 428.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.2393, allocations: 118.5 kB / 428.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2393, allocations: 0 / 428.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2393, allocations: 2.781 kB / 428.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.2394, allocations: 1.469 kB / 428.5 MB, free: 10.97 MB / 318.1 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.0005215/0.2399, allocations: 421.7 kB / 428.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2399, allocations: 14.06 kB / 428.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.518e-05/0.24, allocations: 15 kB / 428.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.2402, allocations: 213.7 kB / 429.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.2402, allocations: 6.25 kB / 429.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.2402, allocations: 5.625 kB / 429.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.2405, allocations: 90.81 kB / 429.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.078e-06/0.2405, allocations: 1.25 kB / 429.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.2405, allocations: 2 kB / 429.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.2405, allocations: 4.25 kB / 429.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.2406, allocations: 57.38 kB / 429.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000503/0.2412, allocations: 391.9 kB / 429.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004148/0.2416, allocations: 68.08 kB / 429.7 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.481e-05/0.2416, allocations: 20.59 kB / 429.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2417, allocations: 1.375 kB / 429.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/0.2417, allocations: 31.08 kB / 429.8 MB, free: 9.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.2417, allocations: 4 kB / 429.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002473/0.242, allocations: 94.97 kB / 429.9 MB, free: 9.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.242, allocations: 55.41 kB / 429.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.2422, allocations: 187.3 kB / 430.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.2422, allocations: 25.7 kB / 430.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.2423, allocations: 113.6 kB / 430.3 MB, free: 9.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.2423, allocations: 14.47 kB / 430.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-05/0.2423, allocations: 28.19 kB / 430.3 MB, free: 9.445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.303e-05/0.2424, allocations: 321.6 kB / 430.6 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.271e-05/0.2425, allocations: 21.11 kB / 430.6 MB, free: 9.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-05/0.2425, allocations: 22.72 kB / 430.7 MB, free: 9.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.2426, allocations: 42.97 kB / 430.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.2426, allocations: 1.188 kB / 430.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000167/0.2428, allocations: 90.34 kB / 430.8 MB, free: 9.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.2428, allocations: 5.281 kB / 430.8 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2429, allocations: 3.938 kB / 430.8 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2429, allocations: 2 kB / 430.8 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.644e-05/0.243, allocations: 14.45 kB / 430.8 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.243, allocations: 1.969 kB / 430.8 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.424e-05/0.243, allocations: 11.17 kB / 430.8 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.2431, allocations: 3.906 kB / 430.8 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.642e-05/0.2431, allocations: 102.6 kB / 430.9 MB, free: 8.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.348e-05/0.2432, allocations: 19.66 kB / 430.9 MB, free: 8.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.606e-05/0.2433, allocations: 42.45 kB / 431 MB, free: 8.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.51e-07/0.2433, allocations: 3.938 kB / 431 MB, free: 8.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0001383/0.2434, allocations: 80.89 kB / 431.1 MB, free: 8.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.056e-06/0.2435, allocations: 9.562 kB / 431.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-06/0.2435, allocations: 0 / 431.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.038e-06/0.2435, allocations: 5.266 kB / 431.1 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.881e-05/0.2435, allocations: 10.56 kB / 431.1 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.175e-06/0.2436, allocations: 5.516 kB / 431.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.944e-05/0.2436, allocations: 6.922 kB / 431.1 MB, free: 8.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.2436, allocations: 5.484 kB / 431.1 MB, free: 8.828 MB / 318.1 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 6.483e-05/0.2437, allocations: 182.8 kB / 431.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.2437, allocations: 13.03 kB / 431.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002038/0.2439, allocations: 87.52 kB / 431.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.244, allocations: 2.047 kB / 431.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.244, allocations: 3.562 kB / 431.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.244, allocations: 0.6094 kB / 431.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003813/0.2444, allocations: 355.5 kB / 431.7 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2444, allocations: 0.6094 kB / 431.7 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.012e-05/0.2444, allocations: 12.34 kB / 431.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2444, allocations: 1.062 kB / 431.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.2445, allocations: 1.125 kB / 431.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2445, allocations: 1.703 kB / 431.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2445, allocations: 1.094 kB / 431.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001666/0.2446, allocations: 186.2 kB / 431.9 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.2447, allocations: 92.77 kB / 432 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.2447, allocations: 2.891 kB / 432 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.344e-05/0.2448, allocations: 5.766 kB / 432 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.2449, allocations: 3.969 kB / 432 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.2449, allocations: 5.125 kB / 432.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001068/0.245, allocations: 142.9 kB / 432.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.245, allocations: 0 / 432.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003151/0.2453, allocations: 39.09 kB / 432.2 MB, free: 7.855 MB / 318.1 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 0.0001092/0.2454, allocations: 91.36 kB / 432.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002493/0.2457, allocations: 67.81 kB / 432.4 MB, free: 7.746 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2457, allocations: 0.9688 kB / 432.4 MB, free: 7.746 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.705e-05/0.2458, allocations: 22.06 kB / 432.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.2461, allocations: 15.19 kB / 432.4 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.2467, allocations: 273.5 kB / 432.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.2468, allocations: 0.7056 MB / 433.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.237e-05/0.2469, allocations: 7.609 kB / 433.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.2469, allocations: 12.31 kB / 433.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2469, allocations: 0 / 433.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of Templates: time 0.003677/0.2506, allocations: 1.029 MB / 434.4 MB, free: 6.738 MB / 318.1 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)