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-master/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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.0007477/0.0007477, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007928/0.0007928, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.194/1.194, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.006984/0.006984, allocations: 1.928 MB / 272.3 MB, free: 3.387 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.0004503/0.0004503, allocations: 12 kB / 331 MB, free: 33.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06763/0.06809, allocations: 48.1 MB / 379.1 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001053/0.06917, allocations: 0.9993 MB / 380.1 MB, free: 84 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001244/0.06931, allocations: 31.91 kB / 380.1 MB, free: 52 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.91e-05/0.06934, allocations: 4 kB / 380.1 MB, free: 48 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.558e-05/0.06937, allocations: 3.938 kB / 380.1 MB, free: 44 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 2.529e-05/0.0694, allocations: 0 / 380.1 MB, free: 44 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001152/0.06952, allocations: 11.98 kB / 380.1 MB, free: 32 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.696e-05/0.06958, allocations: 23.97 kB / 380.2 MB, free: 8 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.06963, allocations: 4 kB / 380.2 MB, free: 4 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.138e-05/0.06968, allocations: 15.91 kB / 380.2 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.682e-05/0.06973, allocations: 11.98 kB / 380.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.06975, allocations: 4 kB / 380.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.937e-06/0.06977, allocations: 3.938 kB / 380.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.06979, allocations: 15.98 kB / 380.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.419e-05/0.06983, allocations: 25.7 kB / 380.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 3.813e-05/0.06988, allocations: 7.984 kB / 380.3 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.06989, allocations: 0 / 380.3 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.0699, allocations: 0 / 380.3 MB, free: 15.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.0699, allocations: 7.938 kB / 380.3 MB, free: 15.91 MB / 286.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.0004866/0.0704, allocations: 351.5 kB / 380.6 MB, free: 15.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.07044, allocations: 11.97 kB / 380.6 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.083e-05/0.07049, allocations: 30.56 kB / 380.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.07052, allocations: 8 kB / 380.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.449e-05/0.07061, allocations: 163.1 kB / 380.8 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.854e-05/0.07067, allocations: 29.7 kB / 380.8 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.07069, allocations: 7.953 kB / 380.8 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.07082, allocations: 49.67 kB / 380.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.07084, allocations: 4 kB / 380.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.07085, allocations: 0 / 380.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.07086, allocations: 4 kB / 380.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.245e-05/0.07094, allocations: 23.92 kB / 380.9 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003203/0.07127, allocations: 260.9 kB / 381.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.839e-05/0.07138, allocations: 46.56 kB / 381.2 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.07143, allocations: 20.94 kB / 381.2 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.07144, allocations: 0 / 381.2 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001698/0.07162, allocations: 91.19 kB / 381.3 MB, free: 14.64 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.07163, allocations: 0 / 381.3 MB, free: 14.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002318/0.07186, allocations: 93.67 kB / 381.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.07191, allocations: 59.39 kB / 381.5 MB, free: 14.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.668e-05/0.07197, allocations: 97.86 kB / 381.6 MB, free: 14.37 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.07199, allocations: 29.83 kB / 381.6 MB, free: 14.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.082e-05/0.07203, allocations: 91.98 kB / 381.7 MB, free: 14.24 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.251e-05/0.07205, allocations: 15.8 kB / 381.7 MB, free: 14.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.07206, allocations: 4 kB / 381.7 MB, free: 14.22 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.07216, allocations: 314.8 kB / 382 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.439e-05/0.07222, allocations: 23.98 kB / 382.1 MB, free: 13.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.42e-05/0.07229, allocations: 46.5 kB / 382.1 MB, free: 13.83 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.331e-05/0.07235, allocations: 27.97 kB / 382.1 MB, free: 13.8 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.07236, allocations: 3.938 kB / 382.1 MB, free: 13.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001497/0.07251, allocations: 93.81 kB / 382.2 MB, free: 13.7 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.07254, allocations: 8 kB / 382.2 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.07255, allocations: 4.062 kB / 382.2 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.779e-06/0.07256, allocations: 0 / 382.2 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.664e-05/0.07265, allocations: 8 kB / 382.2 MB, free: 13.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.07266, allocations: 4 kB / 382.2 MB, free: 13.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.206e-05/0.07273, allocations: 7.984 kB / 382.3 MB, free: 13.67 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.07274, allocations: 8.125 kB / 382.3 MB, free: 13.66 MB / 286.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,$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 7.773e-05/0.07283, allocations: 117.8 kB / 382.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-06/0.07284, allocations: 7.938 kB / 382.4 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.831e-05/0.07287, allocations: 7.969 kB / 382.4 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.07288, allocations: 7.984 kB / 382.4 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.07288, allocations: 0 / 382.4 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.07289, allocations: 0 / 382.4 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.073, allocations: 157.6 kB / 382.6 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.073, allocations: 0 / 382.6 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.079e-05/0.07304, allocations: 11.98 kB / 382.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.07305, allocations: 4 kB / 382.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.07306, allocations: 0 / 382.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.07307, allocations: 4 kB / 382.6 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.07307, allocations: 0 / 382.6 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.07324, allocations: 120.9 kB / 382.7 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.271e-05/0.07328, allocations: 88.98 kB / 382.8 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.0733, allocations: 4 kB / 382.8 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.892e-05/0.07336, allocations: 15.98 kB / 382.8 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.07341, allocations: 11.97 kB / 382.8 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.07342, allocations: 0 / 382.8 MB, free: 13.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.301e-05/0.07346, allocations: 79.28 kB / 382.9 MB, free: 12.94 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07346, allocations: 0 / 382.9 MB, free: 12.94 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001767/0.07364, allocations: 12 kB / 382.9 MB, free: 12.93 MB / 286.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 (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.0004557/0.0741, allocations: 0.6749 MB / 383.6 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00015/0.07426, allocations: 55.95 kB / 383.6 MB, free: 12.17 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.07428, allocations: 0 / 383.6 MB, free: 12.17 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.114e-05/0.07434, allocations: 28.12 kB / 383.7 MB, free: 12.14 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.07448, allocations: 7.984 kB / 383.7 MB, free: 12.14 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005966/0.07508, allocations: 440.4 kB / 384.1 MB, free: 11.65 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.0753, allocations: 0.677 MB / 384.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.931e-05/0.07533, allocations: 4.172 kB / 384.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.497e-05/0.07537, allocations: 15.44 kB / 384.8 MB, free: 10.92 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.07538, allocations: 4 kB / 384.8 MB, free: 10.92 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009552/0.08494, allocations: 1.227 MB / 386 MB, free: 9.703 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.08513, allocations: 151 kB / 386.2 MB, free: 9.461 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.401/1.486, allocations: 4.062 kB / 386.2 MB, free: 9.457 MB / 286.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/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) Environment - environmentSimulation: