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.001117/0.001117, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001055/0.001055, allocations: 191.9 kB / 16.25 MB, free: 6.629 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.257/1.257, allocations: 205.1 MB / 222.1 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008324/0.008324, allocations: 1.939 MB / 271.4 MB, free: 3.488 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.001204/0.001204, allocations: 72.12 kB / 329.3 MB, free: 33.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06752/0.06873, allocations: 47.15 MB / 376.5 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.00254/0.0713, allocations: 1.584 MB / 378.1 MB, free: 388 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.07242, allocations: 0.7383 MB / 378.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.404e-05/0.0725, allocations: 0 / 378.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.07267, allocations: 67.83 kB / 378.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.751e-05/0.07277, allocations: 71.78 kB / 378.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005251/0.07331, allocations: 143.8 kB / 379.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001862/0.0735, allocations: 167.6 kB / 379.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.534e-05/0.07358, allocations: 19.97 kB / 379.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.07369, allocations: 83.73 kB / 379.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.07386, allocations: 115.7 kB / 379.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.07389, allocations: 8 kB / 379.5 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.07408, allocations: 151.9 kB / 379.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.769e-05/0.07414, allocations: 35.91 kB / 379.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.494e-05/0.07422, allocations: 75.53 kB / 379.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002535/0.07448, allocations: 227.7 kB / 379.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.07449, allocations: 3.938 kB / 379.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.0745, allocations: 0 / 379.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.07451, allocations: 0 / 379.9 MB, free: 14.48 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.0007285/0.07524, allocations: 0.5294 MB / 380.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.07528, allocations: 19.88 kB / 380.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.547e-05/0.07535, allocations: 24.69 kB / 380.5 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.07554, allocations: 212 kB / 380.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.971e-05/0.0756, allocations: 38.2 kB / 380.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.07563, allocations: 12.36 kB / 380.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002439/0.07588, allocations: 133.8 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.0759, allocations: 3.984 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.07592, allocations: 0 / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.07593, allocations: 4 kB / 380.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.0761, allocations: 87.95 kB / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004452/0.07656, allocations: 392.5 kB / 381.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002301/0.0768, allocations: 138.5 kB / 381.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.07694, allocations: 104.8 kB / 381.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.07696, allocations: 8 kB / 381.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.07726, allocations: 229.1 kB / 381.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.07727, allocations: 3.938 kB / 381.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006916/0.07797, allocations: 472.5 kB / 382.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.07804, allocations: 114.8 kB / 382.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.07819, allocations: 206.6 kB / 382.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.07823, allocations: 33.7 kB / 382.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.07829, allocations: 104.6 kB / 382.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.753e-05/0.07835, allocations: 55.25 kB / 382.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.522e-05/0.07842, allocations: 45.7 kB / 382.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.07853, allocations: 338.8 kB / 383.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.07869, allocations: 84.2 kB / 383.3 MB, free: 10.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.07882, allocations: 92.42 kB / 383.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.07915, allocations: 304.7 kB / 383.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.07916, allocations: 0 / 383.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004475/0.07961, allocations: 394.3 kB / 384.1 MB, free: 10.06 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/0.07968, allocations: 67.39 kB / 384.1 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.07969, allocations: 0 / 384.1 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.0797, allocations: 4 kB / 384.1 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.992e-05/0.07981, allocations: 23.86 kB / 384.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.07982, allocations: 0 / 384.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.07994, allocations: 31.83 kB / 384.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.07997, allocations: 4 kB / 384.2 MB, free: 9.922 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.000158/0.08013, allocations: 214.9 kB / 384.4 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.08017, allocations: 19.81 kB / 384.4 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.08021, allocations: 25.86 kB / 384.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.08022, allocations: 0 / 384.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.08022, allocations: 0 / 384.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.08023, allocations: 7.938 kB / 384.4 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.08043, allocations: 257.4 kB / 384.7 MB, free: 9.336 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.08044, allocations: 4 kB / 384.7 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.994e-05/0.08049, allocations: 11.98 kB / 384.7 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.08051, allocations: 7.938 kB / 384.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.08053, allocations: 8 kB / 384.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.08054, allocations: 0 / 384.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.08054, allocations: 0 / 384.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005325/0.08108, allocations: 476.4 kB / 385.2 MB, free: 8.809 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.08113, allocations: 92.86 kB / 385.3 MB, free: 8.699 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.117e-05/0.08117, allocations: 12 kB / 385.3 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.794e-05/0.08128, allocations: 11.98 kB / 385.3 MB, free: 8.676 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.08134, allocations: 19.97 kB / 385.3 MB, free: 8.656 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.08137, allocations: 8 kB / 385.3 MB, free: 8.648 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.893e-05/0.08148, allocations: 148.3 kB / 385.5 MB, free: 8.504 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08148, allocations: 0 / 385.5 MB, free: 8.504 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002643/0.08175, allocations: 75.98 kB / 385.5 MB, free: 8.43 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.0002083/0.08197, allocations: 174.8 kB / 385.7 MB, free: 8.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004702/0.08244, allocations: 413.6 kB / 386.1 MB, free: 7.824 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.08246, allocations: 0 / 386.1 MB, free: 7.824 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002519/0.08271, allocations: 287 kB / 386.4 MB, free: 7.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.08293, allocations: 16 kB / 386.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005669/0.08351, allocations: 407.4 kB / 386.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.08378, allocations: 0.7276 MB / 387.5 MB, free: 6.324 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.434e-05/0.08383, allocations: 8.547 kB / 387.6 MB, free: 6.316 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.824e-05/0.08386, allocations: 19.44 kB / 387.6 MB, free: 6.297 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08387, allocations: 0 / 387.6 MB, free: 6.297 MB / 286.1 MB Notification: Performance of Templates: time 0.004637/0.08852, allocations: 2.533 MB / 390.1 MB, free: 3.762 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)