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.001785/0.001785, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001613/0.001613, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.377/1.377, allocations: 207.7 MB / 233.1 MB, free: 9.801 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.009778/0.009778, allocations: 1.966 MB / 287.3 MB, free: 3.68 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.002451/0.002451, allocations: 70.41 kB / 401.8 MB, free: 50.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08319/0.08564, allocations: 49.7 MB / 451.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002502/0.08815, allocations: 1.514 MB / 453 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.0893, allocations: 0.6957 MB / 453.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.901e-05/0.0894, allocations: 0 / 453.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.08956, allocations: 63.8 kB / 453.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.08969, allocations: 79.7 kB / 453.8 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000648/0.09033, allocations: 167.6 kB / 454 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.09056, allocations: 155.7 kB / 454.1 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.253e-05/0.09065, allocations: 15.92 kB / 454.2 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.0908, allocations: 87.73 kB / 454.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.09099, allocations: 123.7 kB / 454.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.463e-05/0.09102, allocations: 8 kB / 454.4 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.09123, allocations: 147.8 kB / 454.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.437e-05/0.09131, allocations: 35.84 kB / 454.5 MB, free: 3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.4e-05/0.09138, allocations: 51.67 kB / 454.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.09168, allocations: 239.2 kB / 454.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.09168, allocations: 0 / 454.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09169, allocations: 0 / 454.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.09169, allocations: 0 / 454.8 MB, free: 2.715 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.000704/0.0924, allocations: 476.6 kB / 455.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.09244, allocations: 15.98 kB / 455.3 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.783e-05/0.09248, allocations: 42.73 kB / 455.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.607e-05/0.09253, allocations: 16.84 kB / 455.4 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/0.09279, allocations: 166.2 kB / 455.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.09285, allocations: 71.89 kB / 455.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.09287, allocations: 4.375 kB / 455.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.09314, allocations: 201 kB / 455.8 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.09315, allocations: 7.984 kB / 455.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.09316, allocations: 4 kB / 455.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.09317, allocations: 0 / 455.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.09336, allocations: 155.3 kB / 456 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004218/0.09378, allocations: 327.6 kB / 456.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.09402, allocations: 178 kB / 456.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.09417, allocations: 148.2 kB / 456.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.09418, allocations: 4 kB / 456.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/0.09448, allocations: 314 kB / 456.9 MB, free: 404 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.09449, allocations: 0 / 456.9 MB, free: 404 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007773/0.09526, allocations: 0.5856 MB / 457.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.68e-05/0.09536, allocations: 114.8 kB / 457.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.09557, allocations: 202.7 kB / 457.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.0956, allocations: 33.7 kB / 457.8 MB, free: 15.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.056e-05/0.09569, allocations: 112.6 kB / 458 MB, free: 15.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.383e-05/0.09577, allocations: 63.52 kB / 458 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.873e-05/0.09584, allocations: 41.64 kB / 458.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.09602, allocations: 338.8 kB / 458.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.09624, allocations: 155.6 kB / 458.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.09646, allocations: 153.5 kB / 458.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004282/0.09689, allocations: 300.8 kB / 459 MB, free: 14.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.09689, allocations: 4 kB / 459 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000719/0.09761, allocations: 473.9 kB / 459.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.029e-05/0.0977, allocations: 71.38 kB / 459.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.09771, allocations: 4 kB / 459.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.09773, allocations: 4 kB / 459.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.09785, allocations: 15.94 kB / 459.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.09786, allocations: 0 / 459.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.09801, allocations: 27.88 kB / 459.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.09803, allocations: 4 kB / 459.6 MB, free: 13.53 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.0002469/0.09827, allocations: 222.9 kB / 459.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.584e-05/0.09832, allocations: 19.91 kB / 459.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.09838, allocations: 29.95 kB / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.09838, allocations: 0 / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.09838, allocations: 0 / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.09839, allocations: 7.938 kB / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002614/0.09865, allocations: 208.5 kB / 460.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/0.09866, allocations: 3.938 kB / 460.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.519e-05/0.09871, allocations: 8 kB / 460.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.09871, allocations: 4 kB / 460.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.09874, allocations: 11.98 kB / 460.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.09874, allocations: 0 / 460.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.09874, allocations: 0 / 460.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008025/0.09955, allocations: 0.5229 MB / 460.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.09958, allocations: 23.78 kB / 460.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.09963, allocations: 12 kB / 460.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.09974, allocations: 11.98 kB / 460.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.09982, allocations: 19.91 kB / 460.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.09985, allocations: 15.98 kB / 460.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.1, allocations: 147.2 kB / 460.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1, allocations: 0 / 460.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.1003, allocations: 79.86 kB / 460.9 MB, free: 12.08 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.001332/0.1017, allocations: 1.123 MB / 462 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006577/0.1023, allocations: 473.4 kB / 462.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1023, allocations: 0 / 462.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.1027, allocations: 302.1 kB / 462.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.1029, allocations: 12 kB / 462.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003698/0.1066, allocations: 2.855 MB / 465.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.1067, allocations: 110.4 kB / 465.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.006e-05/0.1068, allocations: 12.48 kB / 465.8 MB, free: 6.895 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.117e-05/0.1069, allocations: 43.42 kB / 465.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1069, allocations: 4 kB / 465.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03234/0.1392, allocations: 5.25 MB / 471.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/10.92, allocations: 3.906 kB / 471.1 MB, free: 1.523 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.445419739931822] Failed to read output from testmodel.py, exit status != 0: 11.027389978989959 11.050966545 10.955982456 Calling exit ...