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.001265/0.001265, allocations: 113 kB / 18.94 MB, free: 2.934 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.001532/0.001532, allocations: 207.3 kB / 22.25 MB, free: 5.086 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.381/1.381, allocations: 207.6 MB / 233 MB, free: 10 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.009489/0.009489, allocations: 1.97 MB / 287.2 MB, free: 3.961 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.002157/0.002157, allocations: 75.73 kB / 401.8 MB, free: 50.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08768, allocations: 49.69 MB / 451.5 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001946/0.08963, allocations: 1.295 MB / 452.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001714/0.0898, allocations: 23.91 kB / 452.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.616e-05/0.08984, allocations: 0 / 452.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.802e-05/0.08986, allocations: 0 / 452.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.316e-05/0.0899, allocations: 0 / 452.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.09005, allocations: 19.92 kB / 452.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.523e-05/0.09012, allocations: 31.91 kB / 452.8 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.637e-05/0.09017, allocations: 8.391 kB / 452.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.329e-05/0.0902, allocations: 11.98 kB / 452.8 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.914e-05/0.09026, allocations: 15.92 kB / 452.9 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.09028, allocations: 4 kB / 452.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.032e-05/0.09029, allocations: 0 / 452.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.168e-05/0.09031, allocations: 7.984 kB / 452.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.655e-05/0.09036, allocations: 11.92 kB / 452.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.682e-05/0.09042, allocations: 23.91 kB / 452.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.09043, allocations: 4 kB / 452.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.09043, allocations: 0 / 452.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.09043, allocations: 0 / 452.9 MB, free: 4.844 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.0004766/0.09091, allocations: 266.4 kB / 453.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.09095, allocations: 15.98 kB / 453.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.709e-05/0.09101, allocations: 42.69 kB / 453.2 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.09103, allocations: 4.938 kB / 453.2 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.262e-05/0.09109, allocations: 110.5 kB / 453.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.755e-05/0.09114, allocations: 55.97 kB / 453.4 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.09116, allocations: 12.36 kB / 453.4 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.09128, allocations: 53.98 kB / 453.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.09129, allocations: 0 / 453.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.09129, allocations: 0 / 453.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.0913, allocations: 0 / 453.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.693e-05/0.09137, allocations: 15.98 kB / 453.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003/0.09167, allocations: 243.9 kB / 453.7 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.976e-05/0.09177, allocations: 42.56 kB / 453.8 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.873e-05/0.0918, allocations: 16.94 kB / 453.8 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.09181, allocations: 0 / 453.8 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001706/0.09198, allocations: 79.36 kB / 453.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.09198, allocations: 0 / 453.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002255/0.09221, allocations: 105.5 kB / 454 MB, free: 3.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/0.09224, allocations: 59.41 kB / 454 MB, free: 3.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.441e-05/0.09228, allocations: 93.84 kB / 454.1 MB, free: 3.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.09229, allocations: 33.7 kB / 454.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.102e-05/0.09231, allocations: 96.09 kB / 454.2 MB, free: 3.336 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.167e-05/0.09232, allocations: 15.91 kB / 454.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.09236, allocations: 21.7 kB / 454.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.407e-05/0.0924, allocations: 322.8 kB / 454.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.87e-05/0.09245, allocations: 15.98 kB / 454.6 MB, free: 2.953 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.973e-05/0.0925, allocations: 38.56 kB / 454.6 MB, free: 2.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.702e-05/0.09259, allocations: 62.5 kB / 454.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.09259, allocations: 0 / 454.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001257/0.09271, allocations: 89.55 kB / 454.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.09272, allocations: 4 kB / 454.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.09273, allocations: 0 / 454.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.09274, allocations: 4 kB / 454.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.69e-05/0.09281, allocations: 19.98 kB / 454.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.09282, allocations: 4 kB / 454.8 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.881e-05/0.09287, allocations: 4 kB / 454.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.09288, allocations: 4 kB / 454.8 MB, free: 2.703 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.049e-05/0.09293, allocations: 117.8 kB / 454.9 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.007e-05/0.09294, allocations: 7.953 kB / 454.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.13e-05/0.09296, allocations: 8.062 kB / 455 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.09297, allocations: 0 / 455 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.09297, allocations: 4 kB / 455 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.09297, allocations: 4 kB / 455 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.366e-05/0.09304, allocations: 136.6 kB / 455.1 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.09304, allocations: 0 / 455.1 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.389e-05/0.09306, allocations: 4 kB / 455.1 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.09306, allocations: 0 / 455.1 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.09307, allocations: 7.938 kB / 455.1 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.09307, allocations: 0 / 455.1 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.09307, allocations: 0 / 455.1 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.0932, allocations: 117 kB / 455.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-06/0.09321, allocations: 3.953 kB / 455.2 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.09322, allocations: 4 kB / 455.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.803e-05/0.09327, allocations: 11.98 kB / 455.2 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.09332, allocations: 3.984 kB / 455.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.09333, allocations: 8 kB / 455.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.701e-05/0.09334, allocations: 75.28 kB / 455.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.09334, allocations: 288 / 455.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001825/0.09353, allocations: 23.98 kB / 455.4 MB, free: 2.098 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.0003633/0.09389, allocations: 0.6635 MB / 456 MB, free: 1.406 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001492/0.09404, allocations: 60.09 kB / 456.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.09404, allocations: 4.062 kB / 456.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.653e-05/0.0941, allocations: 19.98 kB / 456.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.09423, allocations: 4 kB / 456.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009091/0.09514, allocations: 1.242 MB / 457.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.09546, allocations: 0.6768 MB / 458 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.349e-05/0.09549, allocations: 7.984 kB / 458 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.381e-05/0.09554, allocations: 11.44 kB / 458 MB, free: 15.26 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.09554, allocations: 0 / 458 MB, free: 15.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02685/0.1224, allocations: 1.688 MB / 459.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.65, allocations: 12.06 kB / 459.7 MB, free: 13.52 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.24751048699909] Failed to read output from testmodel.py, exit status != 0: 10.744540447998588 10.769765817 10.674724541 Calling exit ...