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.001115/0.001115, allocations: 109.6 kB / 16.41 MB, free: 6.406 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.001/0.001, allocations: 190.1 kB / 17.34 MB, free: 5.695 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.339/1.339, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008316/0.008316, allocations: 1.95 MB / 272.5 MB, free: 10.05 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.001448/0.001449, allocations: 63.95 kB / 378.9 MB, free: 52.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07834/0.0798, allocations: 47.14 MB / 426 MB, free: 20.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002166/0.08201, allocations: 1.53 MB / 427.6 MB, free: 18.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009539/0.08298, allocations: 0.7409 MB / 428.3 MB, free: 17.78 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.055e-05/0.08305, allocations: 0 / 428.3 MB, free: 17.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.08318, allocations: 51.81 kB / 428.4 MB, free: 17.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.493e-05/0.08329, allocations: 63.78 kB / 428.4 MB, free: 17.67 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.08381, allocations: 171.6 kB / 428.6 MB, free: 17.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.08401, allocations: 163.6 kB / 428.7 MB, free: 17.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.756e-05/0.08411, allocations: 15.92 kB / 428.8 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.35e-05/0.08421, allocations: 83.73 kB / 428.8 MB, free: 17.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.08436, allocations: 103.8 kB / 428.9 MB, free: 17.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.0844, allocations: 11.94 kB / 429 MB, free: 17.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.08459, allocations: 159.8 kB / 429.1 MB, free: 16.97 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.08465, allocations: 31.91 kB / 429.1 MB, free: 16.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.539e-05/0.08472, allocations: 59.66 kB / 429.2 MB, free: 16.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.08495, allocations: 239.9 kB / 429.4 MB, free: 16.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.08496, allocations: 0 / 429.4 MB, free: 16.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.08497, allocations: 0 / 429.4 MB, free: 16.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.08498, allocations: 4 kB / 429.4 MB, free: 16.64 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.0006406/0.08563, allocations: 0.5177 MB / 430 MB, free: 16.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.08567, allocations: 15.89 kB / 430 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.534e-05/0.08573, allocations: 12.84 kB / 430 MB, free: 16.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.08596, allocations: 224.6 kB / 430.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/0.08601, allocations: 34.27 kB / 430.2 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.08604, allocations: 12.38 kB / 430.3 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.08627, allocations: 133.7 kB / 430.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.08629, allocations: 0 / 430.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.08631, allocations: 8 kB / 430.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.08632, allocations: 0 / 430.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.08648, allocations: 87.94 kB / 430.5 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003996/0.08689, allocations: 368.5 kB / 430.8 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.08712, allocations: 138.6 kB / 431 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.08725, allocations: 100.8 kB / 431.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.08727, allocations: 0 / 431.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.08753, allocations: 246.4 kB / 431.3 MB, free: 14.58 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.323e-06/0.08754, allocations: 0 / 431.3 MB, free: 14.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006128/0.08816, allocations: 448.8 kB / 431.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.08821, allocations: 114.8 kB / 431.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.08833, allocations: 183.3 kB / 432 MB, free: 13.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.08836, allocations: 33.7 kB / 432.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.152e-05/0.0884, allocations: 116.5 kB / 432.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/0.08845, allocations: 55.28 kB / 432.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/0.08852, allocations: 49.7 kB / 432.3 MB, free: 13.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.071e-05/0.08857, allocations: 330.8 kB / 432.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.0887, allocations: 88.12 kB / 432.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.08883, allocations: 88.42 kB / 432.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.08907, allocations: 285.7 kB / 433.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.08909, allocations: 0 / 433.1 MB, free: 12.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003815/0.08947, allocations: 392.9 kB / 433.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.08952, allocations: 63.39 kB / 433.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.08953, allocations: 3.938 kB / 433.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.08955, allocations: 4 kB / 433.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.08966, allocations: 23.92 kB / 433.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.08967, allocations: 0 / 433.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.08979, allocations: 19.89 kB / 433.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.08982, allocations: 8 kB / 433.6 MB, free: 12.19 MB / 318.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.0001181/0.08994, allocations: 218.9 kB / 433.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.08998, allocations: 19.81 kB / 433.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.09002, allocations: 17.86 kB / 433.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.09002, allocations: 0 / 433.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.09003, allocations: 0 / 433.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.09004, allocations: 4 kB / 433.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.09018, allocations: 257.3 kB / 434.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.09019, allocations: 0 / 434.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.909e-05/0.09024, allocations: 11.94 kB / 434.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.09025, allocations: 3.984 kB / 434.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.09028, allocations: 19.98 kB / 434.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.09028, allocations: 4 kB / 434.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.09029, allocations: 0 / 434.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.09075, allocations: 444 kB / 434.5 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.714e-05/0.09079, allocations: 92.86 kB / 434.6 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.274e-05/0.09084, allocations: 15.98 kB / 434.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.09095, allocations: 11.98 kB / 434.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.09101, allocations: 19.98 kB / 434.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.09104, allocations: 12 kB / 434.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.886e-05/0.09112, allocations: 135.2 kB / 434.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09112, allocations: 3.938 kB / 434.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002775/0.09141, allocations: 83.98 kB / 434.9 MB, free: 10.71 MB / 318.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.0001921/0.0916, allocations: 151.9 kB / 435.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004154/0.09203, allocations: 402.9 kB / 435.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.09204, allocations: 0 / 435.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.09225, allocations: 282.6 kB / 435.7 MB, free: 9.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.09248, allocations: 24.3 kB / 435.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004807/0.09297, allocations: 372.7 kB / 436.1 MB, free: 9.414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.09311, allocations: 0.7278 MB / 436.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.09315, allocations: 23.36 kB / 436.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09315, allocations: 0 / 436.9 MB, free: 8.637 MB / 318.1 MB Notification: Performance of Templates: time 0.003565/0.09672, allocations: 2.449 MB / 439.3 MB, free: 6.184 MB / 318.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)