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.001335/0.001335, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001544/0.001544, allocations: 215.3 kB / 23.04 MB, free: 5.074 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.402/1.402, allocations: 207.6 MB / 233.8 MB, free: 9.973 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.009427/0.009427, allocations: 1.958 MB / 288 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="cs",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.002286/0.002286, allocations: 76.55 kB / 402.6 MB, free: 50.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07617/0.07845, allocations: 49.7 MB / 452.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.00238/0.08083, allocations: 1.533 MB / 453.8 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.0819, allocations: 0.7602 MB / 454.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.836e-05/0.082, allocations: 7.938 kB / 454.6 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.08213, allocations: 47.86 kB / 454.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.08223, allocations: 63.78 kB / 454.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006076/0.08284, allocations: 167.6 kB / 454.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002014/0.08304, allocations: 163.6 kB / 455 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.706e-05/0.08313, allocations: 11.94 kB / 455 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.08325, allocations: 79.8 kB / 455.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.08343, allocations: 111.6 kB / 455.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.08346, allocations: 12 kB / 455.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.08364, allocations: 163.8 kB / 455.4 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.137e-05/0.08371, allocations: 35.89 kB / 455.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.163e-05/0.08378, allocations: 59.67 kB / 455.5 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.08406, allocations: 227.2 kB / 455.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.08407, allocations: 0 / 455.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.08407, allocations: 0 / 455.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.08408, allocations: 0 / 455.7 MB, free: 2.828 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.0006798/0.08476, allocations: 464.8 kB / 456.1 MB, free: 2.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.08479, allocations: 15.98 kB / 456.2 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.756e-05/0.08481, allocations: 192 / 456.2 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.069e-05/0.08484, allocations: 42.73 kB / 456.2 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.462e-05/0.0849, allocations: 16.84 kB / 456.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.08514, allocations: 156.6 kB / 456.4 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.052e-05/0.0852, allocations: 71.89 kB / 456.4 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.08522, allocations: 8.125 kB / 456.4 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.08546, allocations: 141.5 kB / 456.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.08547, allocations: 3.938 kB / 456.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.08549, allocations: 4 kB / 456.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.08549, allocations: 0 / 456.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.08565, allocations: 87.94 kB / 456.7 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004302/0.08608, allocations: 339.7 kB / 457 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.08633, allocations: 118.5 kB / 457.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.08645, allocations: 84.81 kB / 457.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.08646, allocations: 0 / 457.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.08673, allocations: 238.6 kB / 457.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.353e-06/0.08673, allocations: 3.938 kB / 457.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005935/0.08732, allocations: 464.9 kB / 457.9 MB, free: 436 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.08736, allocations: 114.8 kB / 458 MB, free: 296 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.08747, allocations: 183.3 kB / 458.2 MB, free: 104 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.08749, allocations: 29.7 kB / 458.2 MB, free: 68 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.69e-05/0.08757, allocations: 104.5 kB / 458.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.08764, allocations: 63.52 kB / 458.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.747e-05/0.08772, allocations: 49.62 kB / 458.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.08788, allocations: 338.8 kB / 458.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.08804, allocations: 88.19 kB / 458.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.08819, allocations: 80.44 kB / 458.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003738/0.08857, allocations: 289.7 kB / 459.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.08857, allocations: 0 / 459.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006056/0.08918, allocations: 381.1 kB / 459.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.824e-05/0.08924, allocations: 71.38 kB / 459.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.08925, allocations: 0 / 459.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.08927, allocations: 4 kB / 459.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.08938, allocations: 19.94 kB / 459.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.08938, allocations: 0 / 459.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.08951, allocations: 19.94 kB / 459.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.08953, allocations: 15.92 kB / 459.7 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.0002049/0.08974, allocations: 211 kB / 459.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.08978, allocations: 23.91 kB / 459.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.307e-05/0.08982, allocations: 21.97 kB / 460 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.08982, allocations: 0 / 460 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.08983, allocations: 3.984 kB / 460 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.08983, allocations: 0 / 460 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.09008, allocations: 228.5 kB / 460.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.09008, allocations: 0 / 460.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.534e-05/0.09014, allocations: 11.98 kB / 460.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.09014, allocations: 3.938 kB / 460.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.09017, allocations: 11.94 kB / 460.2 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.09017, allocations: 4 kB / 460.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.09017, allocations: 4 kB / 460.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006878/0.09086, allocations: 456 kB / 460.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.803e-05/0.09089, allocations: 19.78 kB / 460.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.09093, allocations: 8 kB / 460.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.86e-05/0.09103, allocations: 11.98 kB / 460.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.734e-05/0.0911, allocations: 19.97 kB / 460.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.09113, allocations: 12 kB / 460.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.09124, allocations: 143.2 kB / 460.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09124, allocations: 0 / 460.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003219/0.09157, allocations: 79.88 kB / 461 MB, free: 13.14 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.001212/0.09278, allocations: 1.045 MB / 462 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005407/0.09332, allocations: 334.6 kB / 462.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.09332, allocations: 0 / 462.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.09361, allocations: 231 kB / 462.5 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.0002436/0.09385, allocations: 12.25 kB / 462.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.09706, allocations: 2.408 MB / 465 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.09745, allocations: 0.7278 MB / 465.7 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.951e-05/0.0975, allocations: 8.5 kB / 465.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.834e-05/0.09758, allocations: 43.41 kB / 465.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.09758, allocations: 0 / 465.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02568/0.1233, allocations: 4.715 MB / 470.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.03, allocations: 12 kB / 470.5 MB, free: 3.371 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 os._exit(0), Time elapsed: 13.539267217973247] Failed to read output from testmodel.py, exit status != 0: 11.189827437978238 11.205663516 11.118461069 Calling exit ...