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.001078/0.001078, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001214/0.001215, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.898/1.898, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01171/0.01171, allocations: 1.924 MB / 272.3 MB, free: 3.391 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.0005951/0.0005952, allocations: 16 kB / 330.9 MB, free: 33.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1147, allocations: 48.11 MB / 379 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.00187/0.1166, allocations: 1.218 MB / 380.2 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.1178, allocations: 0.692 MB / 380.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.29e-05/0.1179, allocations: 4 kB / 380.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.118, allocations: 55.84 kB / 381 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.1181, allocations: 63.78 kB / 381 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004902/0.1186, allocations: 115.8 kB / 381.1 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.1188, allocations: 131.6 kB / 381.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1189, allocations: 11.98 kB / 381.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.1191, allocations: 71.81 kB / 381.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.1192, allocations: 83.75 kB / 381.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.1192, allocations: 8 kB / 381.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.1195, allocations: 139.8 kB / 381.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.877e-05/0.1196, allocations: 27.91 kB / 381.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.09e-05/0.1196, allocations: 49.64 kB / 381.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.1199, allocations: 156 kB / 381.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1199, allocations: 0 / 381.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1199, allocations: 4 kB / 381.8 MB, free: 14.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.1199, allocations: 0 / 381.8 MB, free: 14.35 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.0007378/0.1206, allocations: 0.4981 MB / 382.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1207, allocations: 8.031 kB / 382.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.778e-05/0.1208, allocations: 19.81 kB / 382.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.121, allocations: 207.5 kB / 382.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.232e-05/0.1211, allocations: 41.66 kB / 382.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.1211, allocations: 8 kB / 382.6 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002619/0.1214, allocations: 133.6 kB / 382.7 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1214, allocations: 0 / 382.7 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.1214, allocations: 0 / 382.7 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.1214, allocations: 4 kB / 382.7 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001939/0.1216, allocations: 95.88 kB / 382.8 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.1222, allocations: 372.6 kB / 383.2 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.1225, allocations: 154.5 kB / 383.3 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.1227, allocations: 100.8 kB / 383.4 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.1227, allocations: 4.031 kB / 383.4 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003732/0.1231, allocations: 229.1 kB / 383.7 MB, free: 12.31 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 3.256e-06/0.1231, allocations: 3.984 kB / 383.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007498/0.1238, allocations: 460.9 kB / 384.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.1239, allocations: 122.7 kB / 384.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.1242, allocations: 187.2 kB / 384.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.1242, allocations: 33.7 kB / 384.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.864e-05/0.1243, allocations: 104.6 kB / 384.5 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.688e-05/0.1244, allocations: 55.28 kB / 384.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-06/0.1244, allocations: 4 kB / 384.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1245, allocations: 334.8 kB / 384.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.1247, allocations: 88.11 kB / 385 MB, free: 10.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.1248, allocations: 88.42 kB / 385.1 MB, free: 10.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.125, allocations: 137.5 kB / 385.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.125, allocations: 3.984 kB / 385.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004862/0.1255, allocations: 389 kB / 385.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.364e-05/0.1256, allocations: 67.39 kB / 385.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1256, allocations: 0 / 385.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1257, allocations: 0 / 385.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.1258, allocations: 23.92 kB / 385.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1258, allocations: 3.953 kB / 385.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.1259, allocations: 23.89 kB / 385.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.1259, allocations: 8 kB / 385.7 MB, free: 10.11 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 ($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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001992/0.1261, allocations: 211 kB / 385.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.908e-05/0.1262, allocations: 23.75 kB / 386 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.168e-05/0.1262, allocations: 25.86 kB / 386 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1262, allocations: 0 / 386 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.1262, allocations: 0 / 386 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1263, allocations: 3.953 kB / 386 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.1265, allocations: 257.3 kB / 386.3 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1265, allocations: 0 / 386.3 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.388e-05/0.1266, allocations: 16 kB / 386.3 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1266, allocations: 0 / 386.3 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.1266, allocations: 7.984 kB / 386.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1266, allocations: 0 / 386.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1266, allocations: 4 kB / 386.3 MB, free: 9.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005988/0.1272, allocations: 456.4 kB / 386.7 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.078e-05/0.1273, allocations: 96.91 kB / 386.8 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.822e-05/0.1273, allocations: 8 kB / 386.8 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1275, allocations: 23.92 kB / 386.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/0.1275, allocations: 15.98 kB / 386.9 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.1276, allocations: 15.92 kB / 386.9 MB, free: 8.844 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.1277, allocations: 139.2 kB / 387 MB, free: 8.707 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1277, allocations: 0 / 387 MB, free: 8.707 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.1281, allocations: 79.94 kB / 387.1 MB, free: 8.629 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 (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.0002366/0.1283, allocations: 155.1 kB / 387.2 MB, free: 8.469 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005457/0.1289, allocations: 401.3 kB / 387.6 MB, free: 8.055 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1289, allocations: 0 / 387.6 MB, free: 8.055 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.1292, allocations: 282.8 kB / 387.9 MB, free: 7.754 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.1295, allocations: 19.95 kB / 387.9 MB, free: 7.734 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007337/0.1302, allocations: 378 kB / 388.3 MB, free: 7.34 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.1308, allocations: 0.7163 MB / 389 MB, free: 6.598 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.553e-05/0.1309, allocations: 12.55 kB / 389 MB, free: 6.586 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.777e-05/0.1309, allocations: 11.44 kB / 389 MB, free: 6.574 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1309, allocations: 4 kB / 389 MB, free: 6.57 MB / 286.1 MB Notification: Performance of Templates: time 0.005677/0.1366, allocations: 2.337 MB / 391.4 MB, free: 4.23 MB / 286.1 MB make -j1 -f MEV_MEV.Test.TestPatientController1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: