Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr MEV_MEV.Controls.PatientController.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.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") translateModel(MEV.Controls.PatientController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="MEV_MEV.Controls.PatientController") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, 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.009413/0.009413, 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.342/1.342, 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.0007481/0.0007481, allocations: 93.38 kB / 296.8 MB, free: 10.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002845/0.0002845, allocations: 8 kB / 358.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2428, allocations: 50.92 MB / 409.3 MB, free: 50.29 MB / 330.7 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001174/0.244, allocations: 1.008 MB / 410.3 MB, free: 50.14 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001288/0.2442, allocations: 32.02 kB / 410.4 MB, free: 50.13 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.139e-05/0.2442, allocations: 0 / 410.4 MB, free: 50.13 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.415e-05/0.2442, allocations: 1.547 kB / 410.4 MB, free: 50.13 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 3.034e-05/0.2443, allocations: 0 / 410.4 MB, free: 50.13 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001213/0.2444, allocations: 13.98 kB / 410.4 MB, free: 50.13 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 6.047e-05/0.2445, allocations: 21.23 kB / 410.4 MB, free: 50.13 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.705e-05/0.2445, allocations: 6.172 kB / 410.4 MB, free: 50.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.078e-05/0.2445, allocations: 18.69 kB / 410.4 MB, free: 50.12 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.13e-05/0.2446, allocations: 13.3 kB / 410.4 MB, free: 50.12 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.068e-05/0.2446, allocations: 1.25 kB / 410.4 MB, free: 50.12 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.032e-05/0.2446, allocations: 4.719 kB / 410.4 MB, free: 50.12 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.13e-05/0.2447, allocations: 9.078 kB / 410.4 MB, free: 50.12 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.401e-05/0.2447, allocations: 41.78 kB / 410.5 MB, free: 50.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 5.444e-05/0.2448, allocations: 17.81 kB / 410.5 MB, free: 50.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2448, allocations: 1.531 kB / 410.5 MB, free: 50.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2448, allocations: 0 / 410.5 MB, free: 50.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.2448, allocations: 2.281 kB / 410.5 MB, free: 50.08 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004502/0.2453, allocations: 344.8 kB / 410.8 MB, free: 49.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.2453, allocations: 13.25 kB / 410.9 MB, free: 49.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.2453, allocations: 6.906 kB / 410.9 MB, free: 49.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.65e-05/0.2454, allocations: 166.8 kB / 411 MB, free: 49.53 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.471e-05/0.2455, allocations: 30.23 kB / 411.1 MB, free: 49.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.2455, allocations: 9.5 kB / 411.1 MB, free: 49.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.2456, allocations: 50.75 kB / 411.1 MB, free: 49.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.2456, allocations: 4.844 kB / 411.1 MB, free: 49.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.2457, allocations: 0 / 411.1 MB, free: 49.46 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.2457, allocations: 3.453 kB / 411.1 MB, free: 49.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.873e-05/0.2458, allocations: 23.94 kB / 411.1 MB, free: 49.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.2459, allocations: 164.2 kB / 411.3 MB, free: 49.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.246, allocations: 41.22 kB / 411.3 MB, free: 49.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.878e-05/0.2461, allocations: 17.72 kB / 411.4 MB, free: 49.24 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.2461, allocations: 1.375 kB / 411.4 MB, free: 49.24 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.2463, allocations: 86.75 kB / 411.4 MB, free: 49.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2463, allocations: 0 / 411.4 MB, free: 49.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002587/0.2466, allocations: 102.6 kB / 411.5 MB, free: 49.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.2466, allocations: 54.8 kB / 411.6 MB, free: 49.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.951e-05/0.2467, allocations: 108.2 kB / 411.7 MB, free: 48.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.2467, allocations: 26.7 kB / 411.7 MB, free: 48.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.501e-05/0.2467, allocations: 85.83 kB / 411.8 MB, free: 48.87 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.2467, allocations: 18.92 kB / 411.8 MB, free: 48.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.2467, allocations: 0 / 411.8 MB, free: 48.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.958e-05/0.2468, allocations: 313.1 kB / 412.1 MB, free: 48.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.024e-05/0.2469, allocations: 19.84 kB / 412.2 MB, free: 48.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.011e-05/0.2469, allocations: 54.42 kB / 412.2 MB, free: 48.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.2471, allocations: 59.06 kB / 412.3 MB, free: 48.49 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2471, allocations: 3.938 kB / 412.3 MB, free: 48.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001578/0.2472, allocations: 96.09 kB / 412.4 MB, free: 48.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2472, allocations: 12.28 kB / 412.4 MB, free: 48.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.2473, allocations: 0.9688 kB / 412.4 MB, free: 48.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.2473, allocations: 1.031 kB / 412.4 MB, free: 48.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.878e-05/0.2474, allocations: 11.75 kB / 412.4 MB, free: 48.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.2474, allocations: 4.094 kB / 412.4 MB, free: 48.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.673e-05/0.2474, allocations: 9.875 kB / 412.4 MB, free: 48.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.2475, allocations: 2.406 kB / 412.4 MB, free: 48.44 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.t_on,t_on,$PRE.t_off,t_off,$PRE.active,active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 5.378e-05/0.2475, allocations: 114.6 kB / 412.5 MB, free: 48.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.2475, allocations: 11.69 kB / 412.5 MB, free: 48.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.237e-05/0.2476, allocations: 9.094 kB / 412.5 MB, free: 48.31 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.2476, allocations: 1.094 kB / 412.5 MB, free: 48.31 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2476, allocations: 3 kB / 412.5 MB, free: 48.31 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2476, allocations: 3.141 kB / 412.6 MB, free: 48.31 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.911e-05/0.2477, allocations: 159.6 kB / 412.7 MB, free: 48.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2477, allocations: 0.8125 kB / 412.7 MB, free: 48.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.287e-05/0.2477, allocations: 10.11 kB / 412.7 MB, free: 48.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2477, allocations: 4.969 kB / 412.7 MB, free: 48.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.2478, allocations: 5.062 kB / 412.7 MB, free: 48.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.2478, allocations: 2.453 kB / 412.7 MB, free: 48.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2478, allocations: 1.094 kB / 412.7 MB, free: 48.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.2479, allocations: 112.8 kB / 412.8 MB, free: 48.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.6e-05/0.248, allocations: 87.09 kB / 412.9 MB, free: 47.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.248, allocations: 1.688 kB / 412.9 MB, free: 47.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.528e-05/0.248, allocations: 10.27 kB / 412.9 MB, free: 47.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.2481, allocations: 9.656 kB / 412.9 MB, free: 47.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-06/0.2481, allocations: 2.156 kB / 412.9 MB, free: 47.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 1.75e-05/0.2481, allocations: 78.44 kB / 413 MB, free: 47.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2481, allocations: 0 / 413 MB, free: 47.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001729/0.2483, allocations: 10.97 kB / 413 MB, free: 47.88 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: 6 ($whenCondition2,$whenCondition3,$whenCondition1,t_on,t_off,active) * Number of discrete states: 2 (active,t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 7.592e-05/0.2484, allocations: 110.6 kB / 413.1 MB, free: 47.78 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001689/0.2486, allocations: 54.78 kB / 413.2 MB, free: 47.78 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2486, allocations: 0.5938 kB / 413.2 MB, free: 47.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.868e-05/0.2487, allocations: 35.25 kB / 413.2 MB, free: 47.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.2488, allocations: 15.09 kB / 413.2 MB, free: 47.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002622/0.2491, allocations: 139 kB / 413.4 MB, free: 47.64 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.472e-05/0.2492, allocations: 0.6826 MB / 414.1 MB, free: 46.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.147e-05/0.2492, allocations: 6.5 kB / 414.1 MB, free: 46.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.2492, allocations: 9.5 kB / 414.1 MB, free: 46.93 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2492, allocations: 0 / 414.1 MB, free: 46.93 MB / 330.7 MB Notification: Performance of Templates: time 0.002139/0.2514, allocations: 0.5238 MB / 414.6 MB, free: 46.9 MB / 330.7 MB make -j1 -f MEV_MEV.Controls.PatientController.makefile (rm -f MEV_MEV.Controls.PatientController.pipe ; mkfifo MEV_MEV.Controls.PatientController.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController.pipe >> ../files/MEV_MEV.Controls.PatientController.sim & ./MEV_MEV.Controls.PatientController -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Controls.PatientController.pipe 2>&1)