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.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.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") translateModel(MEV.Test.TestPatientController1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Test.TestPatientController1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00216/0.00216, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.342/1.342, allocations: 205.1 MB / 222.4 MB, free: 4.625 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008674/0.008674, allocations: 1.92 MB / 271.7 MB, free: 3.348 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.001616/0.001616, allocations: 67.84 kB / 329.8 MB, free: 32.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07684/0.07848, allocations: 47.14 MB / 377 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002945/0.08145, allocations: 1.523 MB / 378.5 MB, free: 112 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.08277, allocations: 0.7382 MB / 379.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.911e-05/0.08288, allocations: 0 / 379.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.08303, allocations: 51.88 kB / 379.3 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.08316, allocations: 63.72 kB / 379.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005936/0.08376, allocations: 167.5 kB / 379.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002274/0.084, allocations: 171.7 kB / 379.7 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.776e-05/0.08409, allocations: 8 kB / 379.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.08422, allocations: 83.73 kB / 379.8 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.0844, allocations: 99.7 kB / 379.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.08444, allocations: 8 kB / 379.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.08468, allocations: 155.8 kB / 380 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.802e-05/0.08475, allocations: 31.91 kB / 380.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.08487, allocations: 71.53 kB / 380.1 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.08519, allocations: 227.7 kB / 380.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.0852, allocations: 0 / 380.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.08521, allocations: 0 / 380.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.08522, allocations: 3.938 kB / 380.4 MB, free: 14.24 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.0008275/0.08606, allocations: 0.5216 MB / 380.9 MB, free: 13.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.0861, allocations: 15.89 kB / 380.9 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.239e-05/0.08617, allocations: 24.73 kB / 380.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.08639, allocations: 202 kB / 381.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.973e-05/0.08646, allocations: 38.27 kB / 381.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.0865, allocations: 8.312 kB / 381.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.08679, allocations: 139.6 kB / 381.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.08681, allocations: 0 / 381.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.08684, allocations: 0 / 381.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.08685, allocations: 4 kB / 381.3 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.08705, allocations: 95.88 kB / 381.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005078/0.08757, allocations: 368.6 kB / 381.7 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.08786, allocations: 150.5 kB / 381.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.08803, allocations: 96.81 kB / 382 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.08805, allocations: 8 kB / 382 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003748/0.08843, allocations: 229 kB / 382.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 4.158e-06/0.08845, allocations: 96 / 382.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007475/0.0892, allocations: 456.5 kB / 382.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/0.08929, allocations: 114.8 kB / 382.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.08945, allocations: 187.3 kB / 383 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.08949, allocations: 33.7 kB / 383 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.08956, allocations: 104.6 kB / 383.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.751e-05/0.08963, allocations: 63.19 kB / 383.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.327e-05/0.08971, allocations: 41.7 kB / 383.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.08984, allocations: 338.8 kB / 383.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.09, allocations: 80.2 kB / 383.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.09016, allocations: 92.42 kB / 383.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003362/0.09051, allocations: 297.6 kB / 384 MB, free: 10.31 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.09052, allocations: 0 / 384 MB, free: 10.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005065/0.09103, allocations: 373 kB / 384.4 MB, free: 9.926 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.623e-05/0.0911, allocations: 71.39 kB / 384.4 MB, free: 9.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.09111, allocations: 0 / 384.4 MB, free: 9.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.09113, allocations: 0 / 384.4 MB, free: 9.844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.09126, allocations: 23.98 kB / 384.4 MB, free: 9.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.09127, allocations: 3.938 kB / 384.5 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.0914, allocations: 19.89 kB / 384.5 MB, free: 9.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.09143, allocations: 8 kB / 384.5 MB, free: 9.789 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.000181/0.09162, allocations: 218.9 kB / 384.7 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.09166, allocations: 19.81 kB / 384.7 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.451e-05/0.09171, allocations: 21.81 kB / 384.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.09171, allocations: 0 / 384.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.09172, allocations: 0 / 384.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.09173, allocations: 0 / 384.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.09194, allocations: 261.3 kB / 385 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.09195, allocations: 4 kB / 385 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.639e-05/0.09201, allocations: 11.98 kB / 385 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.09202, allocations: 0 / 385 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.09205, allocations: 11.94 kB / 385 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.09206, allocations: 0 / 385 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.09206, allocations: 0 / 385 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000591/0.09266, allocations: 464.4 kB / 385.5 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.555e-05/0.09273, allocations: 92.86 kB / 385.6 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.09278, allocations: 12 kB / 385.6 MB, free: 8.574 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.09291, allocations: 15.92 kB / 385.6 MB, free: 8.559 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.09299, allocations: 11.98 kB / 385.6 MB, free: 8.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.09302, allocations: 15.98 kB / 385.6 MB, free: 8.531 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001062/0.09313, allocations: 135.2 kB / 385.7 MB, free: 8.398 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09314, allocations: 0 / 385.7 MB, free: 8.398 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003067/0.09345, allocations: 80 kB / 385.8 MB, free: 8.32 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.0002203/0.09368, allocations: 162.8 kB / 386 MB, free: 8.152 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005391/0.09423, allocations: 405.8 kB / 386.4 MB, free: 7.734 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.09424, allocations: 0 / 386.4 MB, free: 7.734 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.09452, allocations: 279 kB / 386.7 MB, free: 7.438 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.09476, allocations: 19.98 kB / 386.7 MB, free: 7.418 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005784/0.09534, allocations: 347.2 kB / 387 MB, free: 7.055 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.09566, allocations: 0.7315 MB / 387.7 MB, free: 6.297 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.409e-05/0.09571, allocations: 4.562 kB / 387.7 MB, free: 6.293 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.186e-05/0.09575, allocations: 15.44 kB / 387.8 MB, free: 6.277 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09576, allocations: 0 / 387.8 MB, free: 6.277 MB / 286.1 MB Notification: Performance of Templates: time 0.00571/0.1015, allocations: 2.626 MB / 390.4 MB, free: 3.648 MB / 286.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile (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 & ./MEV_MEV.Test.TestPatientController1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Test.TestPatientController1.pipe 2>&1)