Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package MEV with version 1.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/MEV 1.1.1/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 180.9 kB / 15.43 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007425/0.007425, allocations: 1.938 MB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 225.7 MB / 245.1 MB, free: 13.84 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009879/0.0009879, allocations: 106.8 kB / 296.8 MB, free: 10.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004064/0.0004069, allocations: 8 kB / 358.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.256, allocations: 50.91 MB / 409.3 MB, free: 50.4 MB / 330.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001485/0.2576, allocations: 1.233 MB / 410.5 MB, free: 50.17 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.2587, allocations: 1.021 MB / 411.6 MB, free: 49.62 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.033e-05/0.2588, allocations: 2.438 kB / 411.6 MB, free: 49.62 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.2589, allocations: 63.31 kB / 411.6 MB, free: 49.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.2591, allocations: 70.3 kB / 411.7 MB, free: 49.59 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.2596, allocations: 122.5 kB / 411.8 MB, free: 49.57 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.2598, allocations: 149.5 kB / 412 MB, free: 49.56 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.26, allocations: 15.95 kB / 412 MB, free: 49.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.2601, allocations: 71.62 kB / 412.1 MB, free: 49.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.2603, allocations: 105.8 kB / 412.2 MB, free: 49.53 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.764e-05/0.2603, allocations: 9.484 kB / 412.2 MB, free: 49.53 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002448/0.2606, allocations: 131.8 kB / 412.3 MB, free: 49.53 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.463e-05/0.2607, allocations: 37.03 kB / 412.3 MB, free: 49.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.2608, allocations: 88.66 kB / 412.4 MB, free: 49.46 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.2611, allocations: 228.7 kB / 412.6 MB, free: 49.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2611, allocations: 0 / 412.6 MB, free: 49.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2611, allocations: 0 / 412.6 MB, free: 49.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.2612, allocations: 4.25 kB / 412.6 MB, free: 49.42 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.0006769/0.2618, allocations: 0.505 MB / 413.1 MB, free: 48.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.2619, allocations: 12.78 kB / 413.2 MB, free: 48.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.2619, allocations: 20.38 kB / 413.2 MB, free: 48.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001918/0.2621, allocations: 215.3 kB / 413.4 MB, free: 48.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.683e-05/0.2622, allocations: 42.16 kB / 413.4 MB, free: 48.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.2622, allocations: 6.781 kB / 413.4 MB, free: 48.69 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.2625, allocations: 149.8 kB / 413.6 MB, free: 48.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2625, allocations: 6 kB / 413.6 MB, free: 48.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.2626, allocations: 1.094 kB / 413.6 MB, free: 48.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2626, allocations: 2.031 kB / 413.6 MB, free: 48.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.2628, allocations: 99.97 kB / 413.7 MB, free: 48.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005222/0.2633, allocations: 370.1 kB / 414.1 MB, free: 48.37 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.2636, allocations: 150.3 kB / 414.2 MB, free: 48.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.2638, allocations: 106.7 kB / 414.3 MB, free: 48.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.2638, allocations: 0.9375 kB / 414.3 MB, free: 48.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004015/0.2642, allocations: 240.5 kB / 414.5 MB, free: 48.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.2643, allocations: 1.156 kB / 414.5 MB, free: 48.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008231/0.2651, allocations: 482.5 kB / 415 MB, free: 48.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.2651, allocations: 116 kB / 415.1 MB, free: 47.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.2653, allocations: 197.7 kB / 415.3 MB, free: 47.88 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.2654, allocations: 33.45 kB / 415.4 MB, free: 47.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.2654, allocations: 110.6 kB / 415.5 MB, free: 47.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.893e-05/0.2655, allocations: 53.64 kB / 415.5 MB, free: 47.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.2655, allocations: 6.812 kB / 415.5 MB, free: 47.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.14e-05/0.2656, allocations: 337.8 kB / 415.8 MB, free: 47.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.2657, allocations: 89.77 kB / 415.9 MB, free: 47.4 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.2659, allocations: 91.42 kB / 416 MB, free: 47.4 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.2663, allocations: 306.7 kB / 416.3 MB, free: 47.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2663, allocations: 0 / 416.3 MB, free: 47.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000548/0.2668, allocations: 395.6 kB / 416.7 MB, free: 47.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.2669, allocations: 69.97 kB / 416.8 MB, free: 47.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2669, allocations: 0 / 416.8 MB, free: 47.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2669, allocations: 1.125 kB / 416.8 MB, free: 47.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.267, allocations: 25.44 kB / 416.8 MB, free: 47.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.2671, allocations: 2.297 kB / 416.8 MB, free: 47.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.2672, allocations: 26.39 kB / 416.8 MB, free: 47.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.2672, allocations: 7.875 kB / 416.8 MB, free: 47.08 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 () * 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.0001708/0.2674, allocations: 222.1 kB / 417.1 MB, free: 46.9 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.2674, allocations: 20.3 kB / 417.1 MB, free: 46.89 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.89e-05/0.2675, allocations: 24.27 kB / 417.1 MB, free: 46.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2675, allocations: 4.969 kB / 417.1 MB, free: 46.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.2675, allocations: 3.406 kB / 417.1 MB, free: 46.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.2675, allocations: 1.266 kB / 417.1 MB, free: 46.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.2678, allocations: 250.9 kB / 417.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2678, allocations: 1.031 kB / 417.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.035e-05/0.2678, allocations: 15.91 kB / 417.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.2679, allocations: 3.438 kB / 417.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.2679, allocations: 10.09 kB / 417.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.2679, allocations: 0.75 kB / 417.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.2679, allocations: 1.281 kB / 417.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006769/0.2686, allocations: 477.8 kB / 417.9 MB, free: 46.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.277e-05/0.2686, allocations: 96.17 kB / 417.9 MB, free: 46.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.696e-05/0.2687, allocations: 12.98 kB / 418 MB, free: 46.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.2688, allocations: 13.62 kB / 418 MB, free: 46.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.601e-05/0.2689, allocations: 19.69 kB / 418 MB, free: 46.42 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.2689, allocations: 12.39 kB / 418 MB, free: 46.42 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.798e-05/0.269, allocations: 147.4 kB / 418.1 MB, free: 46.33 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.269, allocations: 0 / 418.1 MB, free: 46.33 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002847/0.2693, allocations: 81.64 kB / 418.2 MB, free: 46.32 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) * 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.0002095/0.2696, allocations: 175.2 kB / 418.4 MB, free: 46.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005141/0.2701, allocations: 407.1 kB / 418.8 MB, free: 45.97 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2701, allocations: 0 / 418.8 MB, free: 45.97 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.2704, allocations: 293.7 kB / 419.1 MB, free: 45.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.2706, allocations: 19.19 kB / 419.1 MB, free: 45.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005862/0.2712, allocations: 408.4 kB / 419.5 MB, free: 45.52 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.2714, allocations: 0.7314 MB / 420.2 MB, free: 44.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.015e-05/0.2714, allocations: 7.734 kB / 420.2 MB, free: 44.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.786e-05/0.2715, allocations: 13.31 kB / 420.3 MB, free: 44.81 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2715, allocations: 0 / 420.3 MB, free: 44.81 MB / 330.7 MB Notification: Performance of Templates: time 0.005407/0.2769, allocations: 2.402 MB / 422.7 MB, free: 44.65 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)