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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") translateModel(MEV.Test.TestPatientController2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 109.3 kB / 15.99 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 197.9 kB / 16.91 MB, free: 6.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 222.8 MB, free: 4.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008388/0.008388, allocations: 1.932 MB / 272 MB, free: 3.496 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002442/0.002442, allocations: 71.83 kB / 330 MB, free: 33.15 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09494/0.0974, allocations: 47.15 MB / 377.1 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002469/0.09991, allocations: 1.586 MB / 378.7 MB, free: 372 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.101, allocations: 0.7411 MB / 379.5 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.292e-05/0.101, allocations: 0 / 379.5 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.1012, allocations: 59.83 kB / 379.5 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.1013, allocations: 63.84 kB / 379.6 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.1019, allocations: 151.7 kB / 379.7 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001991/0.1021, allocations: 167.7 kB / 379.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.998e-05/0.1022, allocations: 19.97 kB / 379.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1023, allocations: 79.8 kB / 380 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.1025, allocations: 123.6 kB / 380.1 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1025, allocations: 8 kB / 380.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.1027, allocations: 147.9 kB / 380.3 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.078e-05/0.1028, allocations: 31.91 kB / 380.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.426e-05/0.1029, allocations: 71.59 kB / 380.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.1031, allocations: 160 kB / 380.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1031, allocations: 0 / 380.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1031, allocations: 0 / 380.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1031, allocations: 0 / 380.5 MB, free: 14.55 MB / 286.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.0007667/0.1039, allocations: 0.5371 MB / 381.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1039, allocations: 19.83 kB / 381.1 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.904e-05/0.104, allocations: 20.75 kB / 381.1 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/0.1042, allocations: 212 kB / 381.3 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.113e-05/0.1043, allocations: 38.25 kB / 381.3 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.1043, allocations: 8.375 kB / 381.4 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.1046, allocations: 147.6 kB / 381.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-06/0.1046, allocations: 0 / 381.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.1046, allocations: 0 / 381.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1046, allocations: 4 kB / 381.5 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1048, allocations: 95.88 kB / 381.6 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004843/0.1053, allocations: 372.6 kB / 382 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.1056, allocations: 142.6 kB / 382.1 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.1057, allocations: 100.8 kB / 382.2 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.1058, allocations: 8.031 kB / 382.2 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003527/0.1061, allocations: 232.9 kB / 382.4 MB, free: 12.45 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.1061, allocations: 4 kB / 382.4 MB, free: 12.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007394/0.1069, allocations: 476.5 kB / 382.9 MB, free: 11.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.107, allocations: 122.7 kB / 383 MB, free: 11.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.1071, allocations: 198.7 kB / 383.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.1072, allocations: 33.7 kB / 383.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.104e-05/0.1072, allocations: 104.6 kB / 383.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.1073, allocations: 51.27 kB / 383.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.064e-05/0.1074, allocations: 49.7 kB / 383.4 MB, free: 11.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1075, allocations: 338.8 kB / 383.8 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.1077, allocations: 88.19 kB / 383.9 MB, free: 10.94 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.1078, allocations: 88.44 kB / 384 MB, free: 10.85 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.1082, allocations: 296.8 kB / 384.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1082, allocations: 0 / 384.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005027/0.1087, allocations: 398.3 kB / 384.6 MB, free: 10.13 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.206e-05/0.1087, allocations: 71.39 kB / 384.7 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.1088, allocations: 3.938 kB / 384.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1088, allocations: 4 kB / 384.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1089, allocations: 15.98 kB / 384.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.1089, allocations: 4 kB / 384.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.109, allocations: 27.83 kB / 384.8 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.1091, allocations: 4 kB / 384.8 MB, free: 9.988 MB / 286.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.0001741/0.1092, allocations: 222.8 kB / 385 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.515e-05/0.1093, allocations: 23.81 kB / 385 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.738e-05/0.1093, allocations: 25.86 kB / 385 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1093, allocations: 0 / 385 MB, free: 9.699 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1094, allocations: 7.875 kB / 385 MB, free: 9.691 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1094, allocations: 4 kB / 385 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.1096, allocations: 249.4 kB / 385.3 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1096, allocations: 0 / 385.3 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.444e-05/0.1096, allocations: 11.98 kB / 385.3 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.1096, allocations: 4 kB / 385.3 MB, free: 9.379 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.1097, allocations: 11.98 kB / 385.3 MB, free: 9.367 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1097, allocations: 4 kB / 385.3 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1097, allocations: 0 / 385.3 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.1103, allocations: 472.3 kB / 385.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-05/0.1104, allocations: 92.86 kB / 385.9 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.496e-05/0.1104, allocations: 12 kB / 385.9 MB, free: 8.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.1105, allocations: 11.98 kB / 385.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.634e-05/0.1106, allocations: 27.97 kB / 385.9 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.1106, allocations: 4 kB / 385.9 MB, free: 8.707 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.1107, allocations: 148.3 kB / 386.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1107, allocations: 0 / 386.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.111, allocations: 79.98 kB / 386.1 MB, free: 8.484 MB / 286.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.000223/0.1113, allocations: 158.9 kB / 386.3 MB, free: 8.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005232/0.1118, allocations: 413.8 kB / 386.7 MB, free: 7.895 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1118, allocations: 4 kB / 386.7 MB, free: 7.891 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002818/0.1121, allocations: 290.7 kB / 387 MB, free: 7.582 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.1123, allocations: 19.98 kB / 387 MB, free: 7.562 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006009/0.1129, allocations: 429.2 kB / 387.4 MB, free: 7.109 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.1132, allocations: 0.7315 MB / 388.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.418e-05/0.1133, allocations: 15.44 kB / 388.2 MB, free: 6.336 MB / 286.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1133, allocations: 7.938 kB / 388.2 MB, free: 6.328 MB / 286.1 MB Notification: Performance of Templates: time 0.004191/0.1175, allocations: 2.478 MB / 390.7 MB, free: 3.848 MB / 286.1 MB make -j1 -f MEV_MEV.Test.TestPatientController2.makefile (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 & ./MEV_MEV.Test.TestPatientController2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController2.pipe 2>&1)