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.001321/0.001321, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001495/0.001495, allocations: 218.8 kB / 22.25 MB, free: 5.121 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.46/1.46, allocations: 207.6 MB / 233 MB, free: 9.977 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.008917/0.008917, allocations: 1.964 MB / 287.2 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.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: 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.00216/0.00216, allocations: 68.5 kB / 401.8 MB, free: 50.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.093, allocations: 49.7 MB / 451.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002437/0.09543, allocations: 1.534 MB / 453 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.0965, allocations: 0.7579 MB / 453.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.386e-05/0.09658, allocations: 0 / 453.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.0967, allocations: 51.81 kB / 453.8 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.478e-05/0.0968, allocations: 67.78 kB / 453.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005614/0.09736, allocations: 167.5 kB / 454 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.09756, allocations: 159.6 kB / 454.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.09766, allocations: 11.94 kB / 454.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.09777, allocations: 83.8 kB / 454.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.09797, allocations: 111.7 kB / 454.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.09799, allocations: 12 kB / 454.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001905/0.09818, allocations: 163.8 kB / 454.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.09825, allocations: 31.91 kB / 454.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.417e-05/0.09833, allocations: 55.67 kB / 454.7 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.09863, allocations: 235.2 kB / 454.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.09864, allocations: 0 / 454.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.09864, allocations: 0 / 454.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.09865, allocations: 0 / 454.9 MB, free: 2.824 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.0006608/0.09931, allocations: 468.7 kB / 455.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.09935, allocations: 11.98 kB / 455.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.722e-05/0.09938, allocations: 38.75 kB / 455.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.802e-05/0.09943, allocations: 20.84 kB / 455.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.09965, allocations: 160.8 kB / 455.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.053e-05/0.09972, allocations: 59.97 kB / 455.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.09973, allocations: 8.375 kB / 455.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.09996, allocations: 141.5 kB / 455.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.09997, allocations: 0 / 455.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.09998, allocations: 4 kB / 455.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.09998, allocations: 7.938 kB / 455.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.1001, allocations: 91.94 kB / 455.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004159/0.1006, allocations: 339.7 kB / 456.2 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.1008, allocations: 118.5 kB / 456.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.1009, allocations: 76.81 kB / 456.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.1009, allocations: 4 kB / 456.4 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.1011, allocations: 238.5 kB / 456.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.1011, allocations: 4 kB / 456.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005557/0.1017, allocations: 461 kB / 457.1 MB, free: 440 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.1017, allocations: 118.8 kB / 457.2 MB, free: 296 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.1018, allocations: 183.3 kB / 457.4 MB, free: 104 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.1018, allocations: 29.7 kB / 457.4 MB, free: 68 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.547e-05/0.1019, allocations: 112.5 kB / 457.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.249e-05/0.102, allocations: 59.52 kB / 457.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.591e-05/0.1021, allocations: 45.7 kB / 457.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1022, allocations: 330.8 kB / 458 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.1024, allocations: 88.19 kB / 458 MB, free: 15.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.1026, allocations: 92.36 kB / 458.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.1029, allocations: 285.7 kB / 458.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1029, allocations: 0 / 458.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000557/0.1035, allocations: 385 kB / 458.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.053e-05/0.1036, allocations: 67.39 kB / 458.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1036, allocations: 4 kB / 458.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1036, allocations: 4 kB / 458.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.1037, allocations: 19.98 kB / 458.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1037, allocations: 0 / 458.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.1038, allocations: 19.94 kB / 458.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.1039, allocations: 11.98 kB / 458.9 MB, free: 14.5 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.0002065/0.1041, allocations: 218.8 kB / 459.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.803e-05/0.1041, allocations: 19.91 kB / 459.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.379e-05/0.1041, allocations: 21.95 kB / 459.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1041, allocations: 8 kB / 459.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.1042, allocations: 0 / 459.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1042, allocations: 0 / 459.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003022/0.1045, allocations: 228.4 kB / 459.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1045, allocations: 0 / 459.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.548e-05/0.1045, allocations: 12 kB / 459.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1045, allocations: 0 / 459.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.1045, allocations: 11.98 kB / 459.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1045, allocations: 0 / 459.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1045, allocations: 0 / 459.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007577/0.1053, allocations: 464 kB / 459.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.744e-05/0.1053, allocations: 19.84 kB / 459.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.1054, allocations: 11.94 kB / 459.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.1055, allocations: 15.98 kB / 459.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/0.1055, allocations: 15.97 kB / 459.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.1056, allocations: 11.98 kB / 460 MB, free: 13.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.1057, allocations: 139.2 kB / 460.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1057, allocations: 0 / 460.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.106, allocations: 87.81 kB / 460.2 MB, free: 13.13 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.001116/0.1071, allocations: 1.037 MB / 461.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005191/0.1076, allocations: 342.6 kB / 461.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1076, allocations: 0 / 461.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002768/0.1079, allocations: 219.1 kB / 461.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.1081, allocations: 20.23 kB / 461.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00304/0.1112, allocations: 2.404 MB / 464.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/0.1116, allocations: 0.7238 MB / 464.9 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.371e-05/0.1116, allocations: 8.484 kB / 464.9 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.695e-05/0.1117, allocations: 43.42 kB / 465 MB, free: 8.141 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1117, allocations: 0 / 465 MB, free: 8.141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0324/0.1441, allocations: 4.686 MB / 469.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.31, allocations: 11.95 kB / 469.7 MB, free: 3.398 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.861759633990005] Failed to read output from testmodel.py, exit status != 0: 11.414222446037456 11.430259675 11.328545105 Calling exit ...