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.001332/0.001332, allocations: 80.28 kB / 19.18 MB, free: 2.531 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.001478/0.001478, allocations: 164.6 kB / 22.46 MB, free: 5.359 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.289/1.289, allocations: 158.6 MB / 184.2 MB, free: 6.414 MB / 174.1 MB " [Timeout remaining time 179] 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.00789/0.00789, allocations: 1.43 MB / 237.9 MB, free: 1.711 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: translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 353 MB, free: 19.26 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.004e-05, allocations: 10.28 kB / 353 MB, free: 19.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001601/0.001621, allocations: 1.275 MB / 354.2 MB, free: 17.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001415/0.001763, allocations: 32.23 kB / 354.3 MB, free: 17.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.232e-05/0.001795, allocations: 4 kB / 354.3 MB, free: 17.92 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.761e-05/0.001823, allocations: 4 kB / 354.3 MB, free: 17.92 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.472e-05/0.001848, allocations: 3.984 kB / 354.3 MB, free: 17.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001323/0.00198, allocations: 7.984 kB / 354.3 MB, free: 17.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.08e-05/0.002051, allocations: 31.91 kB / 354.3 MB, free: 17.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.39e-05/0.002095, allocations: 0 / 354.3 MB, free: 17.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.325e-05/0.002148, allocations: 19.97 kB / 354.3 MB, free: 17.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.058e-05/0.002198, allocations: 7.984 kB / 354.3 MB, free: 17.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.002222, allocations: 4 kB / 354.4 MB, free: 17.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.054e-05/0.002232, allocations: 0 / 354.4 MB, free: 17.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.168e-05/0.002254, allocations: 15.97 kB / 354.4 MB, free: 17.83 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.557e-05/0.00229, allocations: 8 kB / 354.4 MB, free: 17.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.441e-05/0.002354, allocations: 27.89 kB / 354.4 MB, free: 17.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.002355, allocations: 0 / 354.4 MB, free: 17.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.81e-07/0.002356, allocations: 0 / 354.4 MB, free: 17.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.965e-06/0.002359, allocations: 0 / 354.4 MB, free: 17.79 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.000477/0.002836, allocations: 278.3 kB / 354.7 MB, free: 17.49 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.002866, allocations: 11.98 kB / 354.7 MB, free: 17.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.002898, allocations: 4.938 kB / 354.7 MB, free: 17.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.952e-05/0.002948, allocations: 109.8 kB / 354.8 MB, free: 17.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.006e-05/0.003008, allocations: 63.95 kB / 354.9 MB, free: 17.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.003024, allocations: 4.375 kB / 354.9 MB, free: 17.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.003148, allocations: 46.23 kB / 354.9 MB, free: 17.21 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.003158, allocations: 192 / 354.9 MB, free: 17.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.003167, allocations: 384 / 354.9 MB, free: 17.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.003172, allocations: 8.125 kB / 354.9 MB, free: 17.2 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.339e-05/0.003245, allocations: 11.98 kB / 354.9 MB, free: 17.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.381e-05/0.003339, allocations: 109.3 kB / 355 MB, free: 17.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.003447, allocations: 46.55 kB / 355.1 MB, free: 17 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.443e-05/0.003491, allocations: 16.94 kB / 355.1 MB, free: 16.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.003504, allocations: 4 kB / 355.1 MB, free: 16.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.003642, allocations: 67.38 kB / 355.2 MB, free: 16.9 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.003644, allocations: 0 / 355.2 MB, free: 16.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002457/0.003889, allocations: 105.6 kB / 355.3 MB, free: 16.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.003912, allocations: 59.33 kB / 355.3 MB, free: 16.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.96e-05/0.003961, allocations: 105.8 kB / 355.4 MB, free: 16.61 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.003972, allocations: 29.7 kB / 355.5 MB, free: 16.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.204e-05/0.003994, allocations: 88.09 kB / 355.5 MB, free: 16.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.004008, allocations: 19.88 kB / 355.6 MB, free: 16.46 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/0.004041, allocations: 25.66 kB / 355.6 MB, free: 16.43 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.575e-05/0.004077, allocations: 314.8 kB / 355.9 MB, free: 16.11 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.637e-05/0.004133, allocations: 23.98 kB / 355.9 MB, free: 16.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.622e-05/0.00419, allocations: 42.5 kB / 356 MB, free: 16.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.912e-05/0.004289, allocations: 66.61 kB / 356 MB, free: 15.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.00429, allocations: 0 / 356 MB, free: 15.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001413/0.004432, allocations: 77.62 kB / 356.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.004442, allocations: 4 kB / 356.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.004446, allocations: 3.984 kB / 356.1 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.004461, allocations: 4 kB / 356.1 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.153e-05/0.004533, allocations: 11.94 kB / 356.1 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.004539, allocations: 7.938 kB / 356.1 MB, free: 15.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.899e-05/0.004608, allocations: 16 kB / 356.2 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.004616, allocations: 4 kB / 356.2 MB, free: 15.83 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 ($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 (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 4.825e-05/0.004664, allocations: 117.8 kB / 356.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-06/0.004674, allocations: 0 / 356.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.81e-05/0.004692, allocations: 8.125 kB / 356.3 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.004693, allocations: 0 / 356.3 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.004697, allocations: 7.938 kB / 356.3 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.0047, allocations: 3.984 kB / 356.3 MB, free: 15.69 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.863e-05/0.004749, allocations: 101.3 kB / 356.4 MB, free: 15.56 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.00475, allocations: 0 / 356.4 MB, free: 15.56 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.86e-05/0.004778, allocations: 19.97 kB / 356.4 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.00478, allocations: 0 / 356.4 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.004788, allocations: 0 / 356.4 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.004789, allocations: 0 / 356.4 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.004789, allocations: 4 kB / 356.4 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.004933, allocations: 113.3 kB / 356.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-06/0.004938, allocations: 0 / 356.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.004954, allocations: 7.984 kB / 356.5 MB, free: 15.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.222e-05/0.005006, allocations: 4 kB / 356.5 MB, free: 15.4 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.847e-05/0.005054, allocations: 11.97 kB / 356.5 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.005061, allocations: 11.94 kB / 356.6 MB, free: 15.38 MB / 286.1 MB Notification: Performance of sorting global known variables: time 1.6e-05/0.005077, allocations: 79.28 kB / 356.6 MB, free: 15.3 MB / 286.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005077, allocations: 0 / 356.6 MB, free: 15.3 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001993/0.005276, allocations: 8 kB / 356.6 MB, free: 15.29 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 ($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 (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 5.609e-05/0.005332, allocations: 95.38 kB / 356.7 MB, free: 15.19 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001532/0.005485, allocations: 59.95 kB / 356.8 MB, free: 15.13 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.005487, allocations: 0 / 356.8 MB, free: 15.13 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.069e-05/0.005547, allocations: 32.08 kB / 356.8 MB, free: 15.1 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.005678, allocations: 4 kB / 356.8 MB, free: 15.09 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002447/0.005923, allocations: 132.8 kB / 357 MB, free: 14.94 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.901e-05/0.005952, allocations: 67.28 kB / 357 MB, free: 14.85 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.28e-05/0.005975, allocations: 0 / 357 MB, free: 14.85 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.776e-05/0.006002, allocations: 12.5 kB / 357 MB, free: 14.84 MB / 286.1 MB Notification: Performance of SimCode: time 3.91e-07/0.006003, allocations: 0 / 357 MB, free: 14.84 MB / 286.1 MB Notification: Performance of Templates: time 0.002752/0.008755, allocations: 0.6427 MB / 357.7 MB, free: 14.2 MB / 286.1 MB " [Timeout remaining time 660] make -j1 -f MEV_MEV.Controls.PatientController.makefile [Timeout 660] (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 & ./MEV_MEV.Controls.PatientController -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.0210847444832325] Failed to read output from testmodel.py, exit status != 0: 0.014954473823308945 0.025792939 0.021206035 Calling exit ...