Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.0008224/0.0008224, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008377/0.0008377, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8325/0.8325, allocations: 158.6 MB / 184.2 MB, free: 3.039 MB / 170.7 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.006907/0.006907, allocations: 1.42 MB / 237.9 MB, free: 13.93 MB / 234.7 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.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.465e-06/2.465e-06, allocations: 3.984 kB / 352.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2.218e-05, allocations: 6.219 kB / 352.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001699/0.001721, allocations: 1.495 MB / 354 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000802/0.002523, allocations: 0.6999 MB / 354.7 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.926e-05/0.002593, allocations: 3.938 kB / 354.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.002724, allocations: 51.8 kB / 354.7 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.443e-05/0.002808, allocations: 63.78 kB / 354.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005055/0.003314, allocations: 163.5 kB / 354.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.003496, allocations: 163.6 kB / 355.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.003605, allocations: 23.98 kB / 355.1 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.003728, allocations: 95.83 kB / 355.2 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.003905, allocations: 103.8 kB / 355.3 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.003935, allocations: 8 kB / 355.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.004101, allocations: 147.8 kB / 355.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.004175, allocations: 31.86 kB / 355.5 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.075e-05/0.004246, allocations: 43.89 kB / 355.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.004516, allocations: 267.3 kB / 355.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.00452, allocations: 0 / 355.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.004521, allocations: 4 kB / 355.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.004528, allocations: 3.938 kB / 355.8 MB, free: 12.54 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005823/0.00511, allocations: 464.8 kB / 356.3 MB, free: 12.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.005148, allocations: 15.98 kB / 356.3 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.542e-05/0.005173, allocations: 38.75 kB / 356.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.005215, allocations: 16.84 kB / 356.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.005434, allocations: 154.2 kB / 356.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.811e-05/0.005482, allocations: 63.97 kB / 356.5 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/0.005498, allocations: 8.375 kB / 356.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.005699, allocations: 205.4 kB / 356.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.005707, allocations: 192 / 356.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.00572, allocations: 11.92 kB / 356.8 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.005724, allocations: 0 / 356.8 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.005843, allocations: 151.3 kB / 356.9 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003528/0.006196, allocations: 315.8 kB / 357.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.006377, allocations: 185.9 kB / 357.4 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.332e-05/0.00647, allocations: 144.2 kB / 357.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.006482, allocations: 0 / 357.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.006743, allocations: 298.2 kB / 357.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.006745, allocations: 0 / 357.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005138/0.007258, allocations: 0.584 MB / 358.4 MB, free: 9.648 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.007303, allocations: 110.8 kB / 358.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.483e-05/0.007398, allocations: 185.2 kB / 358.7 MB, free: 9.328 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.007412, allocations: 37.69 kB / 358.7 MB, free: 9.285 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.886e-05/0.007451, allocations: 104.6 kB / 358.8 MB, free: 9.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.732e-05/0.007488, allocations: 63.42 kB / 358.9 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/0.007544, allocations: 41.7 kB / 358.9 MB, free: 9.07 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.254e-05/0.007586, allocations: 334.8 kB / 359.3 MB, free: 8.734 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.007703, allocations: 147.6 kB / 359.4 MB, free: 8.578 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.106e-05/0.007794, allocations: 148.8 kB / 359.6 MB, free: 8.422 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.007982, allocations: 300.7 kB / 359.9 MB, free: 8.102 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.007985, allocations: 8 kB / 359.9 MB, free: 8.094 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002884/0.008273, allocations: 468.4 kB / 360.3 MB, free: 7.605 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.33e-05/0.008307, allocations: 74.05 kB / 360.4 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.008312, allocations: 0 / 360.4 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.008326, allocations: 0 / 360.4 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.765e-05/0.008404, allocations: 19.98 kB / 360.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.00841, allocations: 4 kB / 360.4 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.911e-05/0.00848, allocations: 15.94 kB / 360.4 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.008493, allocations: 12 kB / 360.4 MB, free: 7.473 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001091/0.008602, allocations: 223.1 kB / 360.7 MB, free: 7.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.032e-05/0.008622, allocations: 19.91 kB / 360.7 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.622e-05/0.008649, allocations: 21.97 kB / 360.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.008651, allocations: 0 / 360.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.008656, allocations: 0 / 360.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.00866, allocations: 3.984 kB / 360.7 MB, free: 7.191 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.008765, allocations: 200.5 kB / 360.9 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.008767, allocations: 4 kB / 360.9 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.125e-05/0.008798, allocations: 15.97 kB / 360.9 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.008801, allocations: 4 kB / 360.9 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.008815, allocations: 8 kB / 360.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.008816, allocations: 0 / 360.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.008817, allocations: 0 / 360.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003288/0.009146, allocations: 0.5117 MB / 361.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.526e-05/0.009162, allocations: 19.83 kB / 361.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.009188, allocations: 12 kB / 361.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.406e-05/0.009242, allocations: 15.98 kB / 361.5 MB, free: 6.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.368e-05/0.009296, allocations: 15.97 kB / 361.5 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.009315, allocations: 8 kB / 361.5 MB, free: 6.297 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.025e-05/0.009365, allocations: 151.2 kB / 361.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009366, allocations: 0 / 361.7 MB, free: 6.148 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002231/0.009589, allocations: 75.89 kB / 361.7 MB, free: 6.074 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,patientController.t_on,patientController.t_off,patientController.active,RR.a,RR.b,RR.last,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 14 (dutyCycle.nextEvent,dutyCycle.last,dutyCycle.nextEventScaled,dutyCycle.b,dutyCycle.a,$whenCondition4,RR.nextEvent,RR.last,RR.nextEventScaled,RR.b,RR.a,$whenCondition5,patientController.active,patientController.t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0005458/0.01013, allocations: 1.118 MB / 362.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003018/0.01044, allocations: 473.7 kB / 363.3 MB, free: 4.391 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01044, allocations: 0 / 363.3 MB, free: 4.391 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.01057, allocations: 290.1 kB / 363.6 MB, free: 4.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001836/0.01076, allocations: 24.55 kB / 363.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.01251, allocations: 2.759 MB / 366.4 MB, free: 1.125 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.725e-05/0.01257, allocations: 110.5 kB / 366.5 MB, free: 1 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.434e-05/0.01261, allocations: 16.48 kB / 366.5 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.132e-05/0.01267, allocations: 40.48 kB / 366.6 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of SimCode: time 8.72e-07/0.01267, allocations: 0 / 366.6 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.03205, allocations: 5.234 MB / 371.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.43/7.462, allocations: 0 / 371.8 MB, free: 11.65 MB / 298.7 MB " [Timeout remaining time 652] (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController1_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.114193395711482] Failed to read output from testmodel.py, exit status != 0: 7.5479790437966585 7.560984347 7.554245158 Calling exit ...