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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 213.9 kB / 22.24 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 207.7 MB / 233.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008566/0.008566, allocations: 1.958 MB / 287.3 MB, free: 3.688 MB / 222.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 76.33 kB / 401.8 MB, free: 50.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0774/0.07951, allocations: 49.7 MB / 451.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.00196/0.08147, allocations: 1.279 MB / 452.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001733/0.08164, allocations: 31.89 kB / 452.8 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.368e-05/0.08168, allocations: 0 / 452.8 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.737e-05/0.0817, allocations: 3.938 kB / 452.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.738e-05/0.08174, allocations: 0 / 452.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001553/0.0819, allocations: 11.98 kB / 452.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.851e-05/0.08197, allocations: 27.95 kB / 452.8 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.345e-05/0.08203, allocations: 8.406 kB / 452.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.831e-05/0.08207, allocations: 15.92 kB / 452.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.594e-05/0.08213, allocations: 15.92 kB / 452.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.08215, allocations: 0 / 452.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.312e-05/0.08216, allocations: 4 kB / 452.9 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/0.08218, allocations: 7.984 kB / 452.9 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.399e-05/0.08223, allocations: 11.94 kB / 452.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.25e-05/0.0823, allocations: 23.89 kB / 452.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.08231, allocations: 0 / 452.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.08231, allocations: 0 / 452.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.08231, allocations: 0 / 452.9 MB, free: 4.66 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.0005031/0.08282, allocations: 274.4 kB / 453.2 MB, free: 4.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.08286, allocations: 11.98 kB / 453.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.373e-05/0.08291, allocations: 42.69 kB / 453.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.08295, allocations: 4.938 kB / 453.2 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.356e-05/0.08301, allocations: 106.5 kB / 453.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.381e-05/0.08307, allocations: 59.95 kB / 453.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.08308, allocations: 384 / 453.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.08322, allocations: 61.98 kB / 453.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.08323, allocations: 3.938 kB / 453.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.08324, allocations: 3.984 kB / 453.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.08324, allocations: 7.938 kB / 453.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.911e-05/0.08331, allocations: 11.98 kB / 453.5 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003167/0.08363, allocations: 228 kB / 453.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001044/0.08373, allocations: 38.61 kB / 453.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.165e-05/0.08377, allocations: 16.95 kB / 453.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.08379, allocations: 7.984 kB / 453.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001738/0.08396, allocations: 75.31 kB / 453.8 MB, free: 3.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.08396, allocations: 0 / 453.8 MB, free: 3.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002487/0.08421, allocations: 101.6 kB / 453.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.08424, allocations: 55.41 kB / 454 MB, free: 3.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.695e-05/0.08429, allocations: 97.84 kB / 454.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.059e-05/0.0843, allocations: 29.7 kB / 454.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.271e-05/0.08432, allocations: 95.97 kB / 454.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.08433, allocations: 23.97 kB / 454.2 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.213e-05/0.08437, allocations: 25.7 kB / 454.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.004e-05/0.08442, allocations: 314.8 kB / 454.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.055e-05/0.08447, allocations: 19.98 kB / 454.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.183e-05/0.08452, allocations: 38.56 kB / 454.6 MB, free: 2.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.687e-05/0.08461, allocations: 54.5 kB / 454.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.08461, allocations: 0 / 454.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001288/0.08474, allocations: 97.55 kB / 454.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.08475, allocations: 8 kB / 454.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.08475, allocations: 4 kB / 454.8 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.08477, allocations: 0 / 454.8 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.747e-05/0.08484, allocations: 11.98 kB / 454.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.08484, allocations: 0 / 454.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.178e-05/0.0849, allocations: 12 kB / 454.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.08491, allocations: 0 / 454.8 MB, free: 2.527 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.779e-05/0.08497, allocations: 129.8 kB / 454.9 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.08498, allocations: 7.953 kB / 454.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.129e-05/0.085, allocations: 4.062 kB / 454.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.085, allocations: 0 / 454.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.08501, allocations: 0 / 454.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.08501, allocations: 0 / 454.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.333e-05/0.08507, allocations: 140.6 kB / 455.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.08507, allocations: 0 / 455.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.491e-05/0.0851, allocations: 7.938 kB / 455.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.0851, allocations: 0 / 455.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.08511, allocations: 3.984 kB / 455.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.08511, allocations: 4 kB / 455.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.08511, allocations: 400 / 455.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.08525, allocations: 117 kB / 455.2 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-06/0.08525, allocations: 3.953 kB / 455.2 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.08527, allocations: 11.92 kB / 455.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.54e-05/0.08532, allocations: 4 kB / 455.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.08536, allocations: 7.984 kB / 455.2 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.08537, allocations: 7.984 kB / 455.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.783e-05/0.08539, allocations: 75.28 kB / 455.3 MB, free: 1.934 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.08539, allocations: 8.094 kB / 455.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001809/0.08557, allocations: 12.19 kB / 455.3 MB, free: 1.914 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.0003746/0.08594, allocations: 0.6592 MB / 456 MB, free: 1.227 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001459/0.08609, allocations: 55.91 kB / 456 MB, free: 1.172 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.08609, allocations: 0 / 456 MB, free: 1.172 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.682e-05/0.08615, allocations: 23.94 kB / 456.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.08628, allocations: 4.172 kB / 456.1 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009405/0.08722, allocations: 1.242 MB / 457.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.59e-05/0.08729, allocations: 63.34 kB / 457.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.618e-05/0.08732, allocations: 4 kB / 457.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.75e-05/0.08736, allocations: 15.44 kB / 457.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.08736, allocations: 0 / 457.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.1137, allocations: 2.083 MB / 459.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/10.82, allocations: 0 / 459.5 MB, free: 13.58 MB / 334.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.287694638129324] Failed to read output from testmodel.py, exit status != 0: 10.922572398092598 10.939165581 10.853865684 Calling exit ...