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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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-master/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: "" <> 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/Complex 3.2.3+maint.om/package.mo): time 0.01089/0.01089, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.01855/0.01855, allocations: 1.935 MB / 17.79 MB, free: 4.168 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.62/1.62, allocations: 205.4 MB / 224.4 MB, free: 11.91 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.0009434/0.0009433, allocations: 90.16 kB / 273.3 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004252, allocations: 8.219 kB / 331.9 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.122, allocations: 48.1 MB / 380 MB, free: 10.61 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3731/0.4952, allocations: 74.66 MB / 454.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.4955, allocations: 59.97 kB / 454.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001466/0.497, allocations: 0.5355 MB / 455.3 MB, free: 12.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.827e-06/0.497, allocations: 0 / 455.3 MB, free: 12.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.4971, allocations: 0 / 455.3 MB, free: 12.23 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004894/0.4976, allocations: 346.7 kB / 455.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.4976, allocations: 12.02 kB / 455.6 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.892e-05/0.4977, allocations: 42.19 kB / 455.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.4978, allocations: 0 / 455.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.4979, allocations: 175 kB / 455.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.163e-05/0.498, allocations: 29.69 kB / 455.9 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.853e-05/0.4981, allocations: 11.94 kB / 455.9 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.4983, allocations: 49.67 kB / 455.9 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.4983, allocations: 4 kB / 455.9 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.4983, allocations: 4 kB / 455.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.4983, allocations: 0 / 455.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.819e-05/0.4984, allocations: 23.98 kB / 456 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004471/0.4989, allocations: 256.9 kB / 456.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.499, allocations: 50.5 kB / 456.3 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.499, allocations: 0 / 456.3 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.4993, allocations: 83.44 kB / 456.3 MB, free: 10.99 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.4993, allocations: 0 / 456.3 MB, free: 10.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002892/0.4996, allocations: 106.8 kB / 456.4 MB, free: 10.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.4997, allocations: 59.39 kB / 456.5 MB, free: 10.81 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.234e-05/0.4997, allocations: 85 kB / 456.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.4998, allocations: 33.7 kB / 456.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.069e-05/0.4998, allocations: 84.05 kB / 456.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.4998, allocations: 27.84 kB / 456.7 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-06/0.4999, allocations: 4 kB / 456.7 MB, free: 10.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.5, allocations: 314.8 kB / 457 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.91e-05/0.5001, allocations: 19.98 kB / 457.1 MB, free: 10.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.311e-05/0.5001, allocations: 42.5 kB / 457.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.834e-05/0.5002, allocations: 27.94 kB / 457.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5002, allocations: 0 / 457.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001787/0.5004, allocations: 85.94 kB / 457.2 MB, free: 10.06 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.5004, allocations: 11.92 kB / 457.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.5005, allocations: 4 kB / 457.2 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.5005, allocations: 0 / 457.2 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-05/0.5006, allocations: 13.56 kB / 457.2 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.5006, allocations: 80 / 457.2 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.383e-05/0.5007, allocations: 15.89 kB / 457.3 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.5007, allocations: 12.75 kB / 457.3 MB, free: 10 MB / 330.7 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,$whenCondition3,$PRE.t_on,t_on,$PRE.t_off,t_off,$PRE.active,active) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.5008, allocations: 110.7 kB / 457.4 MB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.5008, allocations: 4 kB / 457.4 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.5009, allocations: 7.969 kB / 457.4 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.5009, allocations: 0 / 457.4 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5009, allocations: 4 kB / 457.4 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.5009, allocations: 3.984 kB / 457.4 MB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.501, allocations: 169.5 kB / 457.6 MB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.5011, allocations: 3.953 kB / 457.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.184e-05/0.5011, allocations: 9.047 kB / 457.6 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.5011, allocations: 0 / 457.6 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.5011, allocations: 8 kB / 457.6 MB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5011, allocations: 0 / 457.6 MB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.5011, allocations: 0 / 457.6 MB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.5013, allocations: 109.1 kB / 457.7 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.5014, allocations: 84.97 kB / 457.8 MB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.5014, allocations: 3.984 kB / 457.8 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.941e-05/0.5015, allocations: 8.875 kB / 457.8 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.5016, allocations: 7.984 kB / 457.8 MB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.5016, allocations: 3.984 kB / 457.8 MB, free: 9.387 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.841e-05/0.5016, allocations: 87.28 kB / 457.9 MB, free: 9.301 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.663e-06/0.5016, allocations: 0 / 457.9 MB, free: 9.301 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000181/0.5018, allocations: 11.94 kB / 457.9 MB, free: 9.289 MB / 330.7 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 (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.0006225/0.5024, allocations: 0.6739 MB / 458.6 MB, free: 8.586 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001584/0.5026, allocations: 51.91 kB / 458.6 MB, free: 8.535 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5026, allocations: 0 / 458.6 MB, free: 8.535 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.976e-05/0.5027, allocations: 27.98 kB / 458.6 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001017/0.5028, allocations: 11.98 kB / 458.7 MB, free: 8.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009859/0.5038, allocations: 0.7295 MB / 459.4 MB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.5041, allocations: 0.6848 MB / 460.1 MB, free: 7 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.682e-05/0.5042, allocations: 192 / 460.1 MB, free: 6.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.653e-05/0.5042, allocations: 11.44 kB / 460.1 MB, free: 6.984 MB / 330.7 MB Notification: Performance of SimCode: time 1.663e-06/0.5042, allocations: 0 / 460.1 MB, free: 6.984 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01247/0.5167, allocations: 1.216 MB / 461.3 MB, free: 5.781 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002518/0.517, allocations: 148.3 kB / 461.4 MB, free: 5.535 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.191, allocations: 0 / 461.4 MB, free: 5.535 MB / 330.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_MEV_MEV_Controls_PatientController_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 MEV_MEV_Controls_PatientController.fmu > MEV_MEV.Controls.PatientController.pipe 2>&1)