Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Controls.PatientController.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.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",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.00972/0.00972, allocations: 102.3 kB / 15.74 MB, free: 6.035 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.001949/0.001949, allocations: 195.9 kB / 16.67 MB, free: 5.961 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.437/1.437, allocations: 205.1 MB / 222.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008633/0.008633, allocations: 1.932 MB / 271.8 MB, free: 10.07 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.001467/0.001467, allocations: 71.89 kB / 377.7 MB, free: 20 kB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1909, allocations: 47.13 MB / 424.9 MB, free: 20.61 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001742/0.1926, allocations: 1.283 MB / 426.1 MB, free: 19.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001425/0.1928, allocations: 25.86 kB / 426.2 MB, free: 19.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.599e-05/0.1928, allocations: 0 / 426.2 MB, free: 19.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.704e-05/0.1929, allocations: 0 / 426.2 MB, free: 19.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.737e-05/0.1929, allocations: 7.938 kB / 426.2 MB, free: 19.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001201/0.193, allocations: 15.92 kB / 426.2 MB, free: 19.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.092e-05/0.1931, allocations: 23.97 kB / 426.2 MB, free: 19.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.1931, allocations: 8 kB / 426.2 MB, free: 19.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.945e-05/0.1932, allocations: 7.984 kB / 426.2 MB, free: 19.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.036e-05/0.1932, allocations: 15.92 kB / 426.2 MB, free: 19.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.1933, allocations: 4 kB / 426.2 MB, free: 19.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.1933, allocations: 4 kB / 426.3 MB, free: 19.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.1933, allocations: 7.984 kB / 426.3 MB, free: 19.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.792e-05/0.1933, allocations: 19.91 kB / 426.3 MB, free: 19.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.591e-05/0.1934, allocations: 15.97 kB / 426.3 MB, free: 19.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1934, allocations: 0 / 426.3 MB, free: 19.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1934, allocations: 0 / 426.3 MB, free: 19.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.349e-06/0.1934, allocations: 0 / 426.3 MB, free: 19.16 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000432/0.1939, allocations: 351.1 kB / 426.6 MB, free: 18.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1939, allocations: 15.83 kB / 426.7 MB, free: 18.76 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.475e-05/0.194, allocations: 34.7 kB / 426.7 MB, free: 18.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.194, allocations: 12.88 kB / 426.7 MB, free: 18.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.4e-05/0.1941, allocations: 164.4 kB / 426.9 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.786e-05/0.1941, allocations: 38.25 kB / 426.9 MB, free: 18.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.1941, allocations: 4.375 kB / 426.9 MB, free: 18.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.1942, allocations: 53.98 kB / 427 MB, free: 18.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.1943, allocations: 0 / 427 MB, free: 18.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.1943, allocations: 0 / 427 MB, free: 18.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.1943, allocations: 0 / 427 MB, free: 18.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.045e-05/0.1944, allocations: 31.91 kB / 427 MB, free: 18.37 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002677/0.1946, allocations: 259.4 kB / 427.2 MB, free: 18.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.438e-05/0.1947, allocations: 38.56 kB / 427.3 MB, free: 18.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.958e-05/0.1948, allocations: 12.94 kB / 427.3 MB, free: 18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.1948, allocations: 4 kB / 427.3 MB, free: 18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.195, allocations: 87.3 kB / 427.4 MB, free: 17.9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.195, allocations: 0 / 427.4 MB, free: 17.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002258/0.1952, allocations: 97.59 kB / 427.5 MB, free: 17.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.1952, allocations: 55.41 kB / 427.5 MB, free: 17.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.279e-05/0.1953, allocations: 97.86 kB / 427.6 MB, free: 17.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.408e-06/0.1953, allocations: 25.83 kB / 427.6 MB, free: 17.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.812e-05/0.1953, allocations: 92.08 kB / 427.7 MB, free: 17.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.127e-05/0.1953, allocations: 19.84 kB / 427.8 MB, free: 17.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.1954, allocations: 25.72 kB / 427.8 MB, free: 17.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.748e-05/0.1954, allocations: 318.8 kB / 428.1 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.026e-05/0.1955, allocations: 19.98 kB / 428.1 MB, free: 17.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.07e-05/0.1955, allocations: 38.5 kB / 428.2 MB, free: 17.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.585e-05/0.1956, allocations: 62.55 kB / 428.2 MB, free: 17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1956, allocations: 0 / 428.2 MB, free: 17 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001309/0.1958, allocations: 89.88 kB / 428.3 MB, free: 16.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.1958, allocations: 4.938 kB / 428.3 MB, free: 16.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.1958, allocations: 4 kB / 428.3 MB, free: 16.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1958, allocations: 4.062 kB / 428.3 MB, free: 16.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.944e-05/0.1959, allocations: 11.94 kB / 428.3 MB, free: 16.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.1959, allocations: 4.062 kB / 428.3 MB, free: 16.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.135e-05/0.196, allocations: 11.98 kB / 428.3 MB, free: 16.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.196, allocations: 4.188 kB / 428.3 MB, free: 16.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.78e-05/0.196, allocations: 117.8 kB / 428.5 MB, free: 16.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.196, allocations: 7.891 kB / 428.5 MB, free: 16.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.871e-05/0.1961, allocations: 11.95 kB / 428.5 MB, free: 16.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1961, allocations: 8 kB / 428.5 MB, free: 16.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1961, allocations: 0 / 428.5 MB, free: 16.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.1961, allocations: 0 / 428.5 MB, free: 16.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.145e-05/0.1962, allocations: 157.6 kB / 428.6 MB, free: 16.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1962, allocations: 0 / 428.6 MB, free: 16.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.59e-05/0.1962, allocations: 7.984 kB / 428.6 MB, free: 16.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1962, allocations: 7.875 kB / 428.7 MB, free: 16.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.1962, allocations: 4 kB / 428.7 MB, free: 16.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1962, allocations: 0 / 428.7 MB, free: 16.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1962, allocations: 0 / 428.7 MB, free: 16.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.1964, allocations: 117 kB / 428.8 MB, free: 16.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.369e-05/0.1964, allocations: 81.06 kB / 428.9 MB, free: 16.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.1964, allocations: 8 kB / 428.9 MB, free: 16.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.559e-05/0.1964, allocations: 7.984 kB / 428.9 MB, free: 16.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.1965, allocations: 4 kB / 428.9 MB, free: 16.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.1965, allocations: 3.984 kB / 428.9 MB, free: 16.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.651e-05/0.1965, allocations: 87.28 kB / 429 MB, free: 16.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1965, allocations: 0 / 429 MB, free: 16.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001847/0.1967, allocations: 8 kB / 429 MB, free: 16.13 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,t_on,t_off,active) * Number of discrete states: 2 (active,t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003363/0.1971, allocations: 0.6631 MB / 429.6 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001397/0.1972, allocations: 60.05 kB / 429.7 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1972, allocations: 0 / 429.7 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.663e-05/0.1973, allocations: 27.98 kB / 429.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.1974, allocations: 4 kB / 429.7 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007989/0.1982, allocations: 1.242 MB / 431 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.058e-05/0.1983, allocations: 0.6768 MB / 431.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.494e-05/0.1983, allocations: 4 kB / 431.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.254e-05/0.1984, allocations: 15.44 kB / 431.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1984, allocations: 0 / 431.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01488/0.2133, allocations: 1.516 MB / 433.2 MB, free: 11.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.363/7.577, allocations: 20.36 kB / 433.2 MB, free: 11.71 MB / 318.1 MB (rm -f MEV_MEV.Controls.PatientController.pipe ; mkfifo MEV_MEV.Controls.PatientController.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController.pipe >> ../files/MEV_MEV.Controls.PatientController.sim & python3 -m fmpy simulate --output-file MEV_MEV.Controls.PatientController_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 MEV_MEV_Controls_PatientController.fmu > MEV_MEV.Controls.PatientController.pipe 2>&1)