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: "" <> buildModelFMU(MEV.Test.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005576/0.005576, allocations: 101.9 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 193.3 kB / 16.67 MB, free: 5.949 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.29/1.29, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008605/0.008605, allocations: 1.939 MB / 271.8 MB, free: 3.246 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.001378/0.001378, allocations: 71.91 kB / 377.7 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.08066, allocations: 47.12 MB / 424.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.157/0.2376, allocations: 1.96 MB / 426.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000796/0.2385, allocations: 0.5718 MB / 427.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.58e-05/0.2385, allocations: 1.125 kB / 427.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.467e-05/0.2386, allocations: 20.64 kB / 427.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.2388, allocations: 46.38 kB / 427.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001816/0.239, allocations: 37.16 kB / 427.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.2391, allocations: 142.3 kB / 427.6 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.2392, allocations: 30.36 kB / 427.7 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.822e-05/0.2393, allocations: 52.69 kB / 427.7 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.536e-05/0.2394, allocations: 58.47 kB / 427.8 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.2394, allocations: 8.406 kB / 427.8 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.777e-05/0.2395, allocations: 13.62 kB / 427.8 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.908e-05/0.2395, allocations: 20.36 kB / 427.8 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.89e-05/0.2396, allocations: 61.34 kB / 427.9 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.2398, allocations: 112.1 kB / 428 MB, free: 9.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2398, allocations: 0 / 428 MB, free: 9.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2398, allocations: 3.938 kB / 428 MB, free: 9.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.2398, allocations: 0 / 428 MB, free: 9.906 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.000459/0.2403, allocations: 425.8 kB / 428.4 MB, free: 9.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2403, allocations: 13.02 kB / 428.4 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.818e-05/0.2403, allocations: 37.52 kB / 428.5 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/0.2404, allocations: 14.81 kB / 428.5 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.2405, allocations: 207.7 kB / 428.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.2406, allocations: 7.719 kB / 428.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.2406, allocations: 4.469 kB / 428.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.2408, allocations: 90.09 kB / 428.8 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.2408, allocations: 4.844 kB / 428.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2408, allocations: 3.438 kB / 428.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.2408, allocations: 3 kB / 428.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.2409, allocations: 55.5 kB / 428.8 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005019/0.2415, allocations: 385.2 kB / 429.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004485/0.2419, allocations: 73.22 kB / 429.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.753e-05/0.242, allocations: 26.05 kB / 429.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.242, allocations: 0.5625 kB / 429.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.343e-05/0.242, allocations: 32.77 kB / 429.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.242, allocations: 0 / 429.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002498/0.2423, allocations: 92.97 kB / 429.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.2423, allocations: 56.53 kB / 429.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.2425, allocations: 181.8 kB / 429.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.2425, allocations: 27.61 kB / 429.7 MB, free: 8.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.2426, allocations: 114.4 kB / 429.8 MB, free: 8.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.439e-05/0.2426, allocations: 12.52 kB / 429.8 MB, free: 8.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.254e-05/0.2426, allocations: 24.22 kB / 429.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.649e-05/0.2427, allocations: 320.3 kB / 430.2 MB, free: 8.164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.912e-05/0.2428, allocations: 29.08 kB / 430.2 MB, free: 8.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.012e-05/0.2428, allocations: 19.09 kB / 430.2 MB, free: 8.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.2429, allocations: 45.33 kB / 430.3 MB, free: 8.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.243, allocations: 0 / 430.3 MB, free: 8.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001546/0.2431, allocations: 92.98 kB / 430.3 MB, free: 8.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2431, allocations: 13.66 kB / 430.4 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2432, allocations: 3.891 kB / 430.4 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.2432, allocations: 1.406 kB / 430.4 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.814e-05/0.2433, allocations: 12.75 kB / 430.4 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2433, allocations: 4 kB / 430.4 MB, free: 8.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.602e-05/0.2433, allocations: 7.922 kB / 430.4 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.2434, allocations: 2.156 kB / 430.4 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.963e-05/0.2434, allocations: 105.7 kB / 430.5 MB, free: 8.004 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 3.64e-05/0.2435, allocations: 14.88 kB / 430.5 MB, free: 8.004 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.157e-05/0.2436, allocations: 41.55 kB / 430.5 MB, free: 7.996 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.01e-07/0.2436, allocations: 0.9375 kB / 430.5 MB, free: 7.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0001337/0.2437, allocations: 90.36 kB / 430.6 MB, free: 7.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-06/0.2437, allocations: 6.156 kB / 430.6 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-06/0.2437, allocations: 0 / 430.6 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.326e-06/0.2438, allocations: 5.5 kB / 430.6 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.827e-05/0.2438, allocations: 15.34 kB / 430.7 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-06/0.2438, allocations: 0 / 430.7 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.136e-05/0.2439, allocations: 2.25 kB / 430.7 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-06/0.2439, allocations: 2.219 kB / 430.7 MB, free: 7.941 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 5.429e-05/0.244, allocations: 185.8 kB / 430.8 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.173e-05/0.244, allocations: 17.7 kB / 430.9 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.2442, allocations: 89.17 kB / 431 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.2442, allocations: 0.8438 kB / 431 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2442, allocations: 1.062 kB / 431 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2442, allocations: 0 / 431 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.2445, allocations: 352.6 kB / 431.3 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2445, allocations: 1.094 kB / 431.3 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.075e-05/0.2446, allocations: 16.11 kB / 431.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2446, allocations: 1.25 kB / 431.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.2446, allocations: 0.5625 kB / 431.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2446, allocations: 0.875 kB / 431.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2446, allocations: 1.469 kB / 431.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.2448, allocations: 171.2 kB / 431.5 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.564e-05/0.2448, allocations: 104.8 kB / 431.6 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.2448, allocations: 1.906 kB / 431.6 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.641e-05/0.2449, allocations: 9.656 kB / 431.6 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.245, allocations: 3.797 kB / 431.6 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.245, allocations: 1.797 kB / 431.6 MB, free: 7.125 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.337e-05/0.2451, allocations: 139.6 kB / 431.7 MB, free: 7.047 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2451, allocations: 0 / 431.7 MB, free: 7.047 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000311/0.2454, allocations: 41.03 kB / 431.8 MB, free: 7.043 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.0002788/0.2457, allocations: 0.7068 MB / 432.5 MB, free: 6.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001919/0.2459, allocations: 68.91 kB / 432.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2459, allocations: 0 / 432.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.823e-05/0.246, allocations: 26.36 kB / 432.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.2463, allocations: 9.031 kB / 432.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.2479, allocations: 1.663 MB / 434.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.248, allocations: 0.7095 MB / 435 MB, free: 4.414 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.579e-05/0.2481, allocations: 8.406 kB / 435 MB, free: 4.414 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.849e-05/0.2481, allocations: 31.8 kB / 435 MB, free: 4.402 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2481, allocations: 0 / 435 MB, free: 4.402 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.2671, allocations: 2.497 MB / 437.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.185/7.452, allocations: 5.484 kB / 437.5 MB, free: 3.875 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientValve.fmu > MEV_MEV.Test.TestPatientValve.pipe 2>&1)