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.001695/0.001695, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002021/0.002021, allocations: 214.5 kB / 23.04 MB, free: 5.074 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.383/1.383, allocations: 207.6 MB / 233.8 MB, free: 9.988 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.00854/0.00854, allocations: 1.97 MB / 288 MB, free: 3.855 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="cs",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.00206/0.00206, allocations: 72.58 kB / 402.5 MB, free: 50.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07461/0.07667, allocations: 49.7 MB / 452.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001862/0.07853, allocations: 1.287 MB / 453.5 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001539/0.07868, allocations: 31.89 kB / 453.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.906e-05/0.07871, allocations: 0 / 453.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.614e-05/0.07874, allocations: 7.938 kB / 453.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.993e-05/0.07877, allocations: 3.938 kB / 453.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001507/0.07892, allocations: 11.98 kB / 453.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.288e-05/0.07899, allocations: 23.97 kB / 453.6 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.193e-05/0.07903, allocations: 4.406 kB / 453.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.317e-05/0.07907, allocations: 11.98 kB / 453.6 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.825e-05/0.07912, allocations: 15.92 kB / 453.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.07914, allocations: 4 kB / 453.6 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.013e-05/0.07915, allocations: 0 / 453.6 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.332e-05/0.07917, allocations: 11.98 kB / 453.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.07922, allocations: 19.91 kB / 453.7 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.139e-05/0.07929, allocations: 19.92 kB / 453.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.0793, allocations: 0 / 453.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.0793, allocations: 0 / 453.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.0793, allocations: 0 / 453.7 MB, free: 4.82 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.0004871/0.07979, allocations: 266.4 kB / 454 MB, free: 4.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.07983, allocations: 19.97 kB / 454 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.738e-05/0.07987, allocations: 8.125 kB / 454 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.564e-05/0.07991, allocations: 38.7 kB / 454 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.07994, allocations: 4.938 kB / 454 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.863e-05/0.07999, allocations: 106.5 kB / 454.1 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.676e-05/0.08004, allocations: 55.95 kB / 454.2 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.906e-05/0.08006, allocations: 8.375 kB / 454.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.0802, allocations: 53.8 kB / 454.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.08021, allocations: 7.938 kB / 454.3 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.08022, allocations: 4 kB / 454.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.08022, allocations: 0 / 454.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.181e-05/0.0803, allocations: 27.91 kB / 454.3 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002555/0.08056, allocations: 224 kB / 454.5 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.08069, allocations: 50.55 kB / 454.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.061e-05/0.08074, allocations: 24.97 kB / 454.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-06/0.08075, allocations: 3.938 kB / 454.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001945/0.08094, allocations: 91.25 kB / 454.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 2.274e-06/0.08094, allocations: 3.984 kB / 454.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004456/0.08139, allocations: 153.5 kB / 454.8 MB, free: 3.535 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.08142, allocations: 59.34 kB / 454.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.082e-05/0.08147, allocations: 101.8 kB / 455 MB, free: 3.355 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.08148, allocations: 25.7 kB / 455 MB, free: 3.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.278e-05/0.08151, allocations: 92.09 kB / 455.1 MB, free: 3.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/0.08152, allocations: 31.77 kB / 455.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.08156, allocations: 25.72 kB / 455.2 MB, free: 3.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.08161, allocations: 318.8 kB / 455.5 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.697e-05/0.08166, allocations: 28.11 kB / 455.5 MB, free: 2.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.606e-05/0.08173, allocations: 47.42 kB / 455.5 MB, free: 2.762 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.08183, allocations: 76.02 kB / 455.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.08183, allocations: 4 kB / 455.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001494/0.08198, allocations: 105.4 kB / 455.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.082, allocations: 4 kB / 455.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.082, allocations: 4 kB / 455.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.08202, allocations: 0 / 455.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.349e-05/0.0821, allocations: 15.98 kB / 455.7 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.08211, allocations: 0 / 455.7 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.613e-05/0.08217, allocations: 20.02 kB / 455.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.08218, allocations: 4 kB / 455.8 MB, free: 2.516 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition3,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.674e-05/0.08224, allocations: 117.8 kB / 455.9 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.096e-05/0.08225, allocations: 7.953 kB / 455.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.29e-05/0.08227, allocations: 8.062 kB / 455.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.08227, allocations: 0 / 455.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.08228, allocations: 0 / 455.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.08228, allocations: 3.984 kB / 455.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003359/0.08262, allocations: 347.2 kB / 456.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.08262, allocations: 0 / 456.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.524e-05/0.08265, allocations: 15.92 kB / 456.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.08265, allocations: 0 / 456.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.08266, allocations: 4 kB / 456.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.08267, allocations: 3.938 kB / 456.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.08267, allocations: 0 / 456.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001582/0.08283, allocations: 205.2 kB / 456.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.08283, allocations: 7.953 kB / 456.5 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.08285, allocations: 4 kB / 456.5 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.08293, allocations: 11.92 kB / 456.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.08298, allocations: 7.984 kB / 456.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.507e-06/0.08298, allocations: 19.98 kB / 456.5 MB, free: 1.672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.025e-05/0.083, allocations: 79.28 kB / 456.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.083, allocations: 0 / 456.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.08323, allocations: 8 kB / 456.6 MB, free: 1.586 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition3,$whenCondition1,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 (10): * Single equations (assignments): 7 * 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.0004031/0.08363, allocations: 0.7689 MB / 457.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.08379, allocations: 67.84 kB / 457.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.0838, allocations: 0 / 457.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.946e-05/0.08387, allocations: 35.98 kB / 457.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.08408, allocations: 8.359 kB / 457.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.08539, allocations: 1.39 MB / 458.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.08577, allocations: 0.6807 MB / 459.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.058e-05/0.0858, allocations: 11.94 kB / 459.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.08585, allocations: 19.44 kB / 459.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.08585, allocations: 0 / 459.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.1056, allocations: 1.874 MB / 461.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/10.82, allocations: 3.953 kB / 461.5 MB, free: 12.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Controls_PatientController_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 MEV_MEV_Controls_PatientController.fmu > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.359025649959221] Failed to read output from testmodel.py, exit status != 0: 10.979848108021542 11.005613254 10.921746641 Calling exit ...