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.0009584/0.0009584, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001127/0.001127, allocations: 177.3 kB / 15.94 MB, free: 228 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.826/1.826, allocations: 205.4 MB / 222.1 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.01346/0.01346, allocations: 1.928 MB / 272.3 MB, free: 3.297 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.0004863/0.0004864, allocations: 12.22 kB / 331 MB, free: 33.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07655/0.07705, allocations: 48.09 MB / 379 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001152/0.07825, allocations: 0.9976 MB / 380 MB, free: 124 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001325/0.07839, allocations: 33.62 kB / 380.1 MB, free: 92 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.825e-05/0.07842, allocations: 4 kB / 380.1 MB, free: 88 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.07844, allocations: 0 / 380.1 MB, free: 88 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 2.181e-05/0.07847, allocations: 3.984 kB / 380.1 MB, free: 84 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001259/0.0786, allocations: 11.98 kB / 380.1 MB, free: 72 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.358e-05/0.07868, allocations: 15.97 kB / 380.1 MB, free: 56 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.797e-05/0.07873, allocations: 4 kB / 380.1 MB, free: 52 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.214e-05/0.07877, allocations: 11.92 kB / 380.1 MB, free: 40 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.659e-05/0.07883, allocations: 11.98 kB / 380.1 MB, free: 28 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.07886, allocations: 4 kB / 380.1 MB, free: 24 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.094e-05/0.07887, allocations: 4 kB / 380.1 MB, free: 20 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.0789, allocations: 11.98 kB / 380.2 MB, free: 8 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.07895, allocations: 29.7 kB / 380.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 4.399e-05/0.079, allocations: 11.97 kB / 380.2 MB, free: 15.96 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.07901, allocations: 7.938 kB / 380.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.07902, allocations: 0 / 380.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.07903, allocations: 0 / 380.2 MB, free: 15.95 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.0004656/0.0795, allocations: 351.5 kB / 380.6 MB, free: 15.56 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.07954, allocations: 8.031 kB / 380.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.593e-05/0.0796, allocations: 34.56 kB / 380.6 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.07963, allocations: 0 / 380.6 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.386e-05/0.07971, allocations: 167.1 kB / 380.8 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-05/0.07977, allocations: 33.7 kB / 380.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.07979, allocations: 7.953 kB / 380.8 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.07992, allocations: 49.67 kB / 380.8 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.27e-06/0.07993, allocations: 7.938 kB / 380.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.026e-06/0.07995, allocations: 3.984 kB / 380.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.07996, allocations: 4 kB / 380.9 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.898e-05/0.08004, allocations: 23.92 kB / 380.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.08035, allocations: 260.9 kB / 381.1 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001052/0.08047, allocations: 46.56 kB / 381.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.263e-06/0.08049, allocations: 0 / 381.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.08066, allocations: 87.3 kB / 381.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.08067, allocations: 0 / 381.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002432/0.08092, allocations: 109.6 kB / 381.4 MB, free: 14.6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.08096, allocations: 59.34 kB / 381.4 MB, free: 14.53 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.06e-05/0.08102, allocations: 89.86 kB / 381.5 MB, free: 14.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.08104, allocations: 33.7 kB / 381.6 MB, free: 14.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.18e-05/0.08108, allocations: 91.97 kB / 381.6 MB, free: 14.3 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.0811, allocations: 19.94 kB / 381.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-06/0.08111, allocations: 0 / 381.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 7.983e-05/0.08119, allocations: 318.8 kB / 382 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.587e-05/0.08125, allocations: 19.98 kB / 382 MB, free: 13.94 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.268e-05/0.08132, allocations: 42.5 kB / 382 MB, free: 13.89 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.431e-05/0.08138, allocations: 23.98 kB / 382.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.08139, allocations: 0 / 382.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001568/0.08155, allocations: 93.52 kB / 382.2 MB, free: 13.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.08157, allocations: 7.281 kB / 382.2 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.08158, allocations: 4 kB / 382.2 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.746e-06/0.0816, allocations: 0 / 382.2 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.632e-05/0.08167, allocations: 12.06 kB / 382.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.08168, allocations: 3.984 kB / 382.2 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.547e-05/0.08175, allocations: 8 kB / 382.2 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.08177, allocations: 4 kB / 382.2 MB, free: 13.73 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 6.14e-05/0.08184, allocations: 121.7 kB / 382.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-06/0.08185, allocations: 4 kB / 382.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.652e-05/0.08187, allocations: 7.969 kB / 382.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.08188, allocations: 0 / 382.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.08189, allocations: 4 kB / 382.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-06/0.0819, allocations: 0 / 382.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.931e-05/0.082, allocations: 169.6 kB / 382.5 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.08201, allocations: 3.938 kB / 382.5 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.855e-05/0.08204, allocations: 4 kB / 382.5 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.624e-06/0.08205, allocations: 0 / 382.5 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.08206, allocations: 4 kB / 382.5 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.08207, allocations: 4 kB / 382.5 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.08208, allocations: 0 / 382.5 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001643/0.08224, allocations: 120.9 kB / 382.6 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.54e-05/0.08229, allocations: 85 kB / 382.7 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.08232, allocations: 0 / 382.7 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.856e-05/0.0824, allocations: 15.98 kB / 382.7 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.08247, allocations: 8.172 kB / 382.7 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.08249, allocations: 4 kB / 382.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.82e-05/0.08254, allocations: 87.22 kB / 382.8 MB, free: 13.01 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.08255, allocations: 0 / 382.8 MB, free: 13.01 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.08286, allocations: 8 kB / 382.8 MB, free: 13 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.0005363/0.0834, allocations: 0.6749 MB / 383.5 MB, free: 12.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.08356, allocations: 51.97 kB / 383.6 MB, free: 12.25 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.08357, allocations: 0 / 383.6 MB, free: 12.25 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.903e-05/0.08365, allocations: 32.62 kB / 383.6 MB, free: 12.21 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.8e-05/0.08374, allocations: 4.188 kB / 383.6 MB, free: 12.21 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006555/0.08441, allocations: 0.7242 MB / 384.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001704/0.08459, allocations: 0.6848 MB / 385 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.848e-05/0.08462, allocations: 192 / 385 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.168e-05/0.08466, allocations: 15.42 kB / 385 MB, free: 10.7 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.08467, allocations: 4 kB / 385 MB, free: 10.69 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01003/0.0947, allocations: 1.197 MB / 386.2 MB, free: 9.504 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/0.09493, allocations: 154.8 kB / 386.4 MB, free: 9.254 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/1.886, allocations: 0 / 386.4 MB, free: 9.254 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: