Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009195/0.0009195, allocations: 177 kB / 15.43 MB, free: 6.199 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.007208/0.007209, 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.281/1.281, allocations: 225.7 MB / 245.1 MB, free: 13.83 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.0007178/0.0007176, allocations: 90.25 kB / 296.8 MB, free: 10.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.0003169, allocations: 16 kB / 358.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2544, allocations: 50.9 MB / 409.3 MB, free: 50.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001383/0.2558, allocations: 1.229 MB / 410.5 MB, free: 50.1 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.257, allocations: 1.018 MB / 411.6 MB, free: 49.55 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.627e-05/0.257, allocations: 1.062 kB / 411.6 MB, free: 49.55 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.2572, allocations: 51.5 kB / 411.6 MB, free: 49.54 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.2573, allocations: 62.64 kB / 411.7 MB, free: 49.53 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.2577, allocations: 128.5 kB / 411.8 MB, free: 49.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001612/0.2579, allocations: 143 kB / 411.9 MB, free: 49.49 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.647e-05/0.258, allocations: 14.14 kB / 412 MB, free: 49.49 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.2581, allocations: 66.06 kB / 412 MB, free: 49.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.2583, allocations: 98.16 kB / 412.1 MB, free: 49.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.2583, allocations: 7.938 kB / 412.1 MB, free: 49.46 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.2585, allocations: 134.3 kB / 412.3 MB, free: 49.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.869e-05/0.2586, allocations: 31.64 kB / 412.3 MB, free: 49.46 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.488e-05/0.2587, allocations: 94.42 kB / 412.4 MB, free: 49.4 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.259, allocations: 218 kB / 412.6 MB, free: 49.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.259, allocations: 0.625 kB / 412.6 MB, free: 49.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.259, allocations: 0 / 412.6 MB, free: 49.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.259, allocations: 3.906 kB / 412.6 MB, free: 49.36 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.0006689/0.2597, allocations: 0.4913 MB / 413.1 MB, free: 48.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2598, allocations: 13.66 kB / 413.1 MB, free: 48.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.411e-05/0.2598, allocations: 19.95 kB / 413.1 MB, free: 48.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.26, allocations: 215.9 kB / 413.3 MB, free: 48.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.324e-05/0.2601, allocations: 40.12 kB / 413.4 MB, free: 48.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.2601, allocations: 10.56 kB / 413.4 MB, free: 48.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.2604, allocations: 142.5 kB / 413.5 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2604, allocations: 1.062 kB / 413.5 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.2604, allocations: 3.984 kB / 413.5 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.2605, allocations: 2.781 kB / 413.5 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.2607, allocations: 93.17 kB / 413.6 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005033/0.2612, allocations: 369.6 kB / 414 MB, free: 48.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.2615, allocations: 143 kB / 414.1 MB, free: 48.29 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.2617, allocations: 105.9 kB / 414.2 MB, free: 48.28 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.2617, allocations: 1.656 kB / 414.2 MB, free: 48.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003825/0.2621, allocations: 238.2 kB / 414.5 MB, free: 48.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.164e-06/0.2621, allocations: 0.6875 kB / 414.5 MB, free: 48.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.000766/0.2629, allocations: 458.4 kB / 414.9 MB, free: 48.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.2629, allocations: 116.1 kB / 415 MB, free: 47.93 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.2631, allocations: 185.6 kB / 415.2 MB, free: 47.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.2631, allocations: 32.02 kB / 415.2 MB, free: 47.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.2631, allocations: 108.4 kB / 415.3 MB, free: 47.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/0.2632, allocations: 59.97 kB / 415.4 MB, free: 47.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.2632, allocations: 2.438 kB / 415.4 MB, free: 47.67 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.672e-05/0.2633, allocations: 337.7 kB / 415.7 MB, free: 47.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.2635, allocations: 86.19 kB / 415.8 MB, free: 47.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.2636, allocations: 89.5 kB / 415.9 MB, free: 47.35 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.264, allocations: 293.8 kB / 416.2 MB, free: 47.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.264, allocations: 0 / 416.2 MB, free: 47.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000544/0.2646, allocations: 384.6 kB / 416.6 MB, free: 47.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.081e-05/0.2646, allocations: 69.14 kB / 416.6 MB, free: 47.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2646, allocations: 2.531 kB / 416.6 MB, free: 47.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2647, allocations: 1.094 kB / 416.6 MB, free: 47.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.2648, allocations: 19.12 kB / 416.7 MB, free: 47.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.2648, allocations: 3.938 kB / 416.7 MB, free: 47.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.265, allocations: 27.8 kB / 416.7 MB, free: 47.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.265, allocations: 9.469 kB / 416.7 MB, free: 47.03 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.0001488/0.2651, allocations: 214.3 kB / 416.9 MB, free: 46.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.2652, allocations: 22.62 kB / 416.9 MB, free: 46.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.2652, allocations: 19.92 kB / 416.9 MB, free: 46.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2652, allocations: 2.031 kB / 416.9 MB, free: 46.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.2653, allocations: 1.688 kB / 416.9 MB, free: 46.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2653, allocations: 0.9375 kB / 416.9 MB, free: 46.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.2655, allocations: 252.4 kB / 417.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2655, allocations: 1.031 kB / 417.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.05e-05/0.2656, allocations: 11.47 kB / 417.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2656, allocations: 1.688 kB / 417.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.2656, allocations: 9.578 kB / 417.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2656, allocations: 8.125 kB / 417.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2656, allocations: 2.281 kB / 417.2 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007045/0.2664, allocations: 463.5 kB / 417.7 MB, free: 46.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.2664, allocations: 97.19 kB / 417.8 MB, free: 46.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.2665, allocations: 9.125 kB / 417.8 MB, free: 46.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.2666, allocations: 16.28 kB / 417.8 MB, free: 46.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.2667, allocations: 17.14 kB / 417.8 MB, free: 46.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.2667, allocations: 11.83 kB / 417.8 MB, free: 46.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.2669, allocations: 135.7 kB / 418 MB, free: 46.31 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2669, allocations: 4.281 kB / 418 MB, free: 46.31 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003774/0.2672, allocations: 76.14 kB / 418 MB, free: 46.3 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.0002391/0.2675, allocations: 179.2 kB / 418.2 MB, free: 46.19 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005344/0.268, allocations: 395.7 kB / 418.6 MB, free: 45.97 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2681, allocations: 4 kB / 418.6 MB, free: 45.97 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002642/0.2683, allocations: 287.5 kB / 418.9 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.0002201/0.2685, allocations: 23.12 kB / 418.9 MB, free: 45.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005902/0.2691, allocations: 379.1 kB / 419.3 MB, free: 45.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2693, allocations: 0.724 MB / 420 MB, free: 44.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.857e-05/0.2694, allocations: 12.45 kB / 420 MB, free: 44.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.2694, allocations: 12.3 kB / 420 MB, free: 44.83 MB / 330.7 MB Notification: Performance of SimCode: time 2e-07/0.2694, allocations: 5.375 kB / 420 MB, free: 44.82 MB / 330.7 MB Notification: Performance of Templates: time 0.006324/0.2757, allocations: 2.397 MB / 422.4 MB, free: 44.66 MB / 330.7 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)