Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.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.0016/0.0016, allocations: 114.3 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.001904/0.001904, allocations: 211.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.438/1.438, allocations: 207.6 MB / 233 MB, free: 10.01 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.01/0.01, allocations: 1.966 MB / 287.2 MB, free: 3.871 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.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",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.002229/0.002229, allocations: 80.3 kB / 401.8 MB, free: 50.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08536/0.08758, allocations: 49.7 MB / 451.5 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002388/0.08997, allocations: 1.545 MB / 453 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.09101, allocations: 0.7502 MB / 453.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.849e-05/0.09108, allocations: 0 / 453.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.09121, allocations: 71.78 kB / 453.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.674e-05/0.09131, allocations: 71.77 kB / 453.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005554/0.09187, allocations: 159.6 kB / 454.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.09204, allocations: 167.6 kB / 454.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.514e-05/0.09214, allocations: 15.88 kB / 454.3 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.09224, allocations: 83.8 kB / 454.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.09241, allocations: 127.7 kB / 454.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.09243, allocations: 12 kB / 454.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001835/0.09262, allocations: 155.8 kB / 454.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.24e-05/0.09268, allocations: 39.89 kB / 454.7 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.561e-05/0.09274, allocations: 59.61 kB / 454.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.09298, allocations: 235.2 kB / 455 MB, free: 2.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09299, allocations: 0 / 455 MB, free: 2.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09299, allocations: 0 / 455 MB, free: 2.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.09299, allocations: 4 kB / 455 MB, free: 2.785 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006712/0.09366, allocations: 476.7 kB / 455.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.09371, allocations: 11.98 kB / 455.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.545e-05/0.09374, allocations: 42.73 kB / 455.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.795e-05/0.09379, allocations: 20.84 kB / 455.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.09403, allocations: 158.2 kB / 455.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.762e-05/0.09408, allocations: 71.95 kB / 455.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.0941, allocations: 8.375 kB / 455.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002329/0.09434, allocations: 141.5 kB / 455.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.09435, allocations: 0 / 455.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.09436, allocations: 7.938 kB / 455.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.09437, allocations: 4 kB / 455.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001576/0.09453, allocations: 99.81 kB / 456 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004537/0.09498, allocations: 347.7 kB / 456.3 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.09519, allocations: 110.6 kB / 456.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.09531, allocations: 92.84 kB / 456.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.09532, allocations: 0 / 456.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.09558, allocations: 242.5 kB / 456.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.09558, allocations: 0 / 456.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006434/0.09622, allocations: 468.9 kB / 457.2 MB, free: 348 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.09627, allocations: 118.8 kB / 457.3 MB, free: 204 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.09641, allocations: 202.7 kB / 457.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.09645, allocations: 33.7 kB / 457.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/0.09653, allocations: 104.6 kB / 457.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/0.0966, allocations: 67.52 kB / 457.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.556e-05/0.09668, allocations: 41.7 kB / 457.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.09686, allocations: 338.8 kB / 458.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.09704, allocations: 84.2 kB / 458.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.09722, allocations: 94.06 kB / 458.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003935/0.09761, allocations: 296.8 kB / 458.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.09761, allocations: 3.938 kB / 458.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005766/0.09819, allocations: 402.4 kB / 459 MB, free: 14.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.312e-05/0.09825, allocations: 67.39 kB / 459 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.09826, allocations: 4 kB / 459 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.09827, allocations: 0 / 459 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.09838, allocations: 15.98 kB / 459 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.09839, allocations: 0 / 459 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.09853, allocations: 27.94 kB / 459.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.09854, allocations: 8 kB / 459.1 MB, free: 14.35 MB / 334.1 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.0002197/0.09876, allocations: 218.8 kB / 459.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.0988, allocations: 19.91 kB / 459.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.09885, allocations: 25.95 kB / 459.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.09885, allocations: 0 / 459.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.09886, allocations: 4 kB / 459.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.09886, allocations: 3.984 kB / 459.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002508/0.09911, allocations: 228.4 kB / 459.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.09911, allocations: 4 kB / 459.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.502e-05/0.09917, allocations: 8 kB / 459.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.09917, allocations: 7.984 kB / 459.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.09919, allocations: 8 kB / 459.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.0992, allocations: 7.922 kB / 459.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.0992, allocations: 4 kB / 459.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006952/0.0999, allocations: 472 kB / 460.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-05/0.09993, allocations: 19.8 kB / 460.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.738e-05/0.09997, allocations: 8 kB / 460.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.1001, allocations: 19.98 kB / 460.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.197e-05/0.1002, allocations: 19.91 kB / 460.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.1002, allocations: 15.98 kB / 460.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.1003, allocations: 140.3 kB / 460.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1003, allocations: 0 / 460.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003531/0.1007, allocations: 83.86 kB / 460.4 MB, free: 12.96 MB / 334.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: 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.001147/0.1018, allocations: 1.057 MB / 461.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005409/0.1024, allocations: 342.7 kB / 461.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1024, allocations: 0 / 461.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.1027, allocations: 226.7 kB / 462 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.1029, allocations: 16 kB / 462 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.106, allocations: 2.505 MB / 464.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.1064, allocations: 0.7317 MB / 465.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.245e-05/0.1065, allocations: 4.5 kB / 465.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.486e-05/0.1065, allocations: 47.41 kB / 465.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1065, allocations: 0 / 465.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.1403, allocations: 4.792 MB / 470.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.26, allocations: 7.969 kB / 470.1 MB, free: 2.98 MB / 334.1 MB " [Timeout remaining time 649] (rm -f MEV_MEV.Test.TestPatientController2.pipe ; mkfifo MEV_MEV.Test.TestPatientController2.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController2.pipe >> ../files/MEV_MEV.Test.TestPatientController2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController2_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.82203437294811] Failed to read output from testmodel.py, exit status != 0: 11.368322499096394 11.385094562 11.28903049 Calling exit ...