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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01201/0.01201, allocations: 1.924 MB / 9.997 MB, free: 0.582 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.3 MB / 216.2 MB, free: 15.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008466/0.0008467, allocations: 93.95 kB / 264.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.398e-05/1.4e-05, allocations: 0 / 319 MB, free: 19.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0869/0.08693, allocations: 48.1 MB / 367.1 MB, free: 3.59 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3212/0.4081, allocations: 75.51 MB / 442.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.4084, allocations: 62.78 kB / 442.7 MB, free: 2.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01589/0.4243, allocations: 5.619 MB / 448.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.522e-06/0.4244, allocations: 1.406 kB / 448.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.4244, allocations: 7.938 kB / 448.3 MB, free: 13.64 MB / 330.7 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.0005895/0.425, allocations: 0.5014 MB / 448.8 MB, free: 13.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.425, allocations: 8.031 kB / 448.8 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.673e-05/0.4251, allocations: 23.8 kB / 448.9 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.4254, allocations: 217 kB / 449.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.851e-05/0.4254, allocations: 7.953 kB / 449.1 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.036e-05/0.4254, allocations: 8 kB / 449.1 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000181/0.4256, allocations: 100.3 kB / 449.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.4258, allocations: 147.6 kB / 449.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.4259, allocations: 0 / 449.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.4259, allocations: 0 / 449.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.4259, allocations: 0 / 449.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005109/0.4264, allocations: 371.2 kB / 449.7 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002103/0.4266, allocations: 141.7 kB / 449.8 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.4268, allocations: 112.9 kB / 450 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.4268, allocations: 0 / 450 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.4271, allocations: 233.3 kB / 450.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.777e-06/0.4271, allocations: 3.984 kB / 450.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.000632/0.4277, allocations: 371.4 kB / 450.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.4278, allocations: 117.8 kB / 450.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.428, allocations: 172.9 kB / 450.8 MB, free: 11.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.428, allocations: 29.7 kB / 450.9 MB, free: 11.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.195e-05/0.4281, allocations: 111 kB / 451 MB, free: 11.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.437e-05/0.4282, allocations: 63.06 kB / 451 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.342e-05/0.4282, allocations: 3.938 kB / 451 MB, free: 11.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4283, allocations: 334.4 kB / 451.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.4284, allocations: 94.89 kB / 451.5 MB, free: 10.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.4286, allocations: 91.62 kB / 451.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.4287, allocations: 97.05 kB / 451.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4287, allocations: 0 / 451.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004856/0.4292, allocations: 360.6 kB / 452 MB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.178e-05/0.4293, allocations: 71.38 kB / 452.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4293, allocations: 0 / 452.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.4293, allocations: 0 / 452.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-05/0.4294, allocations: 19.94 kB / 452.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.4294, allocations: 0 / 452.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.4296, allocations: 23.89 kB / 452.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.4296, allocations: 15.56 kB / 452.1 MB, free: 10.07 MB / 330.7 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 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,$PRE.patientController.t_on,patientController.t_on,$PRE.patientController.t_off,patientController.t_off,$PRE.patientController.active,patientController.active,RR.a,RR.b,RR.last,$PRE.RR.nextEvent,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,$PRE.dutyCycle.nextEvent,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.4297, allocations: 185.9 kB / 452.3 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.244e-05/0.4298, allocations: 19.81 kB / 452.3 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.692e-05/0.4298, allocations: 21.78 kB / 452.3 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.4298, allocations: 0 / 452.3 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4299, allocations: 3.984 kB / 452.3 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.4299, allocations: 0 / 452.3 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.43, allocations: 237 kB / 452.6 MB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4301, allocations: 0 / 452.6 MB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.603e-05/0.4301, allocations: 19.92 kB / 452.6 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4301, allocations: 0 / 452.6 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.4301, allocations: 7.5 kB / 452.6 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4302, allocations: 4 kB / 452.6 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4302, allocations: 0 / 452.6 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006457/0.4308, allocations: 426.8 kB / 453 MB, free: 9.203 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.687e-05/0.4309, allocations: 100.8 kB / 453.1 MB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.487e-05/0.4309, allocations: 8 kB / 453.1 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.431, allocations: 11.98 kB / 453.1 MB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.4311, allocations: 27.22 kB / 453.2 MB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.4312, allocations: 12 kB / 453.2 MB, free: 9.035 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.512e-05/0.4312, allocations: 139.2 kB / 453.3 MB, free: 8.914 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4313, allocations: 0 / 453.3 MB, free: 8.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002972/0.4316, allocations: 91.8 kB / 453.4 MB, free: 8.828 MB / 330.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002351/0.4318, allocations: 159 kB / 453.6 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006618/0.4325, allocations: 1.052 MB / 454.6 MB, free: 7.668 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4325, allocations: 3.938 kB / 454.6 MB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.4327, allocations: 269.3 kB / 454.9 MB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/0.4329, allocations: 15.44 kB / 454.9 MB, free: 7.426 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/0.4333, allocations: 263.9 kB / 455.2 MB, free: 7.184 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.4336, allocations: 0.7349 MB / 455.9 MB, free: 6.422 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.508e-05/0.4337, allocations: 12.55 kB / 455.9 MB, free: 6.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.46e-05/0.4337, allocations: 11.44 kB / 455.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4337, allocations: 0 / 455.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of Templates: time 0.0051/0.4388, allocations: 2.328 MB / 458.2 MB, free: 4.09 MB / 330.7 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)