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.007148/0.007147, allocations: 101 kB / 15.73 MB, free: 6.055 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.002012/0.002012, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.435/1.435, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008462/0.008462, allocations: 1.935 MB / 271.8 MB, free: 3.238 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.002094/0.002095, allocations: 75.89 kB / 377.7 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09413/0.09624, allocations: 47.12 MB / 424.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002504/0.09878, allocations: 1.283 MB / 426.1 MB, free: 424 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001564/0.09895, allocations: 35.89 kB / 426.2 MB, free: 388 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.78e-05/0.09899, allocations: 0 / 426.2 MB, free: 388 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.707e-05/0.09903, allocations: 3.984 kB / 426.2 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.412e-05/0.09907, allocations: 0 / 426.2 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.09922, allocations: 11.92 kB / 426.2 MB, free: 372 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.72e-05/0.0993, allocations: 23.98 kB / 426.2 MB, free: 348 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.557e-05/0.09935, allocations: 3.984 kB / 426.2 MB, free: 344 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.14e-05/0.09939, allocations: 8 kB / 426.2 MB, free: 336 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.352e-05/0.09947, allocations: 27.89 kB / 426.3 MB, free: 308 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.09949, allocations: 4 kB / 426.3 MB, free: 304 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.137e-05/0.0995, allocations: 0 / 426.3 MB, free: 304 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.564e-05/0.09953, allocations: 11.98 kB / 426.3 MB, free: 292 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.826e-05/0.09959, allocations: 7.938 kB / 426.3 MB, free: 284 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.728e-05/0.09967, allocations: 19.97 kB / 426.3 MB, free: 264 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.09968, allocations: 0 / 426.3 MB, free: 264 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.09969, allocations: 0 / 426.3 MB, free: 264 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.0997, allocations: 0 / 426.3 MB, free: 264 kB / 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.1553/0.255, allocations: 345.3 kB / 426.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.255, allocations: 13.08 kB / 426.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.993e-05/0.2551, allocations: 39.16 kB / 426.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.2551, allocations: 5.094 kB / 426.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.9e-05/0.2552, allocations: 168.8 kB / 426.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.2553, allocations: 34.78 kB / 426.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.2553, allocations: 3.391 kB / 426.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.2555, allocations: 56.75 kB / 427 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2555, allocations: 5.578 kB / 427 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.2555, allocations: 2.219 kB / 427 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2555, allocations: 1.594 kB / 427 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.74e-05/0.2556, allocations: 18.91 kB / 427 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003287/0.2559, allocations: 261.5 kB / 427.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.256, allocations: 42.05 kB / 427.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.525e-05/0.2561, allocations: 16.19 kB / 427.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.2561, allocations: 0 / 427.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.2564, allocations: 79.36 kB / 427.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.2564, allocations: 0 / 427.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002809/0.2566, allocations: 100.1 kB / 427.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.2567, allocations: 58.95 kB / 427.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.762e-05/0.2567, allocations: 98.06 kB / 427.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.838e-06/0.2568, allocations: 26.67 kB / 427.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.044e-05/0.2568, allocations: 89.41 kB / 427.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.335e-05/0.2568, allocations: 22.72 kB / 427.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-05/0.2568, allocations: 23.95 kB / 427.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.323e-05/0.2569, allocations: 324.6 kB / 428.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.598e-05/0.257, allocations: 17.69 kB / 428.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.05e-05/0.257, allocations: 39.67 kB / 428.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.747e-05/0.2571, allocations: 57.14 kB / 428.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2571, allocations: 5.312 kB / 428.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001507/0.2573, allocations: 87.38 kB / 428.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2573, allocations: 6.781 kB / 428.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2573, allocations: 1.969 kB / 428.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2573, allocations: 1.812 kB / 428.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.613e-05/0.2574, allocations: 13.81 kB / 428.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.2574, allocations: 0.6562 kB / 428.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.636e-05/0.2575, allocations: 9.109 kB / 428.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.2575, allocations: 5.875 kB / 428.3 MB, free: 10.25 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 5.336e-05/0.2576, allocations: 120.2 kB / 428.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.2576, allocations: 5.297 kB / 428.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.127e-05/0.2576, allocations: 11.78 kB / 428.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.2576, allocations: 1.438 kB / 428.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2576, allocations: 0 / 428.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.2577, allocations: 4.766 kB / 428.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.669e-05/0.2577, allocations: 164 kB / 428.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2577, allocations: 2 kB / 428.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.616e-05/0.2578, allocations: 3.359 kB / 428.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.2578, allocations: 4.031 kB / 428.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.2578, allocations: 2.047 kB / 428.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2578, allocations: 2.797 kB / 428.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2578, allocations: 1.5 kB / 428.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.2579, allocations: 109.5 kB / 428.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.607e-05/0.258, allocations: 89.25 kB / 428.8 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.258, allocations: 1.938 kB / 428.8 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.156e-05/0.2581, allocations: 10.77 kB / 428.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.2581, allocations: 14.03 kB / 428.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.2581, allocations: 2.922 kB / 428.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.682e-05/0.2581, allocations: 81.23 kB / 429 MB, free: 9.688 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2581, allocations: 0 / 429 MB, free: 9.688 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001824/0.2583, allocations: 13.16 kB / 429 MB, free: 9.688 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.0003474/0.2587, allocations: 0.6622 MB / 429.6 MB, free: 9.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001634/0.2589, allocations: 55.89 kB / 429.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2589, allocations: 192 / 429.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.866e-05/0.2589, allocations: 31.84 kB / 429.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.2591, allocations: 3.797 kB / 429.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008895/0.26, allocations: 1.232 MB / 431 MB, free: 7.973 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.2601, allocations: 0.6837 MB / 431.6 MB, free: 7.273 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.711e-05/0.2601, allocations: 7.328 kB / 431.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.2602, allocations: 15.61 kB / 431.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2602, allocations: 3.938 kB / 431.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.2805, allocations: 1.514 MB / 433.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.622/8.903, allocations: 9.797 kB / 433.2 MB, free: 6.797 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 & /home/hudson/saved_omc/OMSimulator/install/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)