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.005559/0.005559, allocations: 97.38 kB / 15.73 MB, free: 6.066 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.001238/0.001238, allocations: 195.5 kB / 16.68 MB, free: 5.973 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.415/1.415, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.009399/0.009399, allocations: 1.928 MB / 271.8 MB, free: 3.273 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.00142/0.00142, allocations: 71.91 kB / 378.2 MB, free: 440 kB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 47.12 MB / 425.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.1865/0.2901, allocations: 1.52 MB / 426.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.2913, allocations: 0.737 MB / 427.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.409e-05/0.2914, allocations: 5.375 kB / 427.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.2916, allocations: 51.03 kB / 427.7 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.2917, allocations: 65.48 kB / 427.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005692/0.2923, allocations: 170 kB / 427.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002108/0.2925, allocations: 170.4 kB / 428.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.521e-05/0.2926, allocations: 8.766 kB / 428.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.2927, allocations: 84.2 kB / 428.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.2929, allocations: 101 kB / 428.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.2929, allocations: 9.375 kB / 428.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.2932, allocations: 157.2 kB / 428.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.2933, allocations: 36.48 kB / 428.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.144e-05/0.2934, allocations: 67.2 kB / 428.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.2937, allocations: 222.8 kB / 428.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2937, allocations: 3.938 kB / 428.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2938, allocations: 1.75 kB / 428.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.2938, allocations: 0.8438 kB / 428.8 MB, free: 10.56 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.0008063/0.2946, allocations: 0.5277 MB / 429.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.2946, allocations: 12.67 kB / 429.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.053e-05/0.2947, allocations: 19.11 kB / 429.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.295, allocations: 225.9 kB / 429.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.231e-05/0.2951, allocations: 32.83 kB / 429.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.2951, allocations: 11.62 kB / 429.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.2954, allocations: 133 kB / 429.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2954, allocations: 2.062 kB / 429.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.2954, allocations: 3.328 kB / 429.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.2954, allocations: 6.172 kB / 429.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.2956, allocations: 89.88 kB / 429.8 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004797/0.2961, allocations: 369.7 kB / 430.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002572/0.2964, allocations: 136.3 kB / 430.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.2966, allocations: 101.1 kB / 430.4 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.2966, allocations: 1.766 kB / 430.4 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003257/0.2969, allocations: 245.5 kB / 430.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.624e-06/0.2969, allocations: 0 / 430.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007756/0.2977, allocations: 452.5 kB / 431.1 MB, free: 9.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.2978, allocations: 120.2 kB / 431.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.2979, allocations: 182.6 kB / 431.4 MB, free: 8.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.2979, allocations: 30.64 kB / 431.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.784e-05/0.298, allocations: 117.2 kB / 431.5 MB, free: 8.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.262e-05/0.2981, allocations: 56 kB / 431.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-05/0.2981, allocations: 44.95 kB / 431.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.588e-05/0.2982, allocations: 334.2 kB / 431.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.2984, allocations: 85.33 kB / 432 MB, free: 8.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.2985, allocations: 93.16 kB / 432.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.2989, allocations: 291.6 kB / 432.4 MB, free: 8.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2989, allocations: 3.969 kB / 432.4 MB, free: 8.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004899/0.2994, allocations: 371.7 kB / 432.8 MB, free: 8.062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.646e-05/0.2994, allocations: 70.22 kB / 432.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2994, allocations: 2.422 kB / 432.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.2995, allocations: 1.719 kB / 432.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.2996, allocations: 23.81 kB / 432.9 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.2996, allocations: 5.156 kB / 432.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.2997, allocations: 24.72 kB / 432.9 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.2998, allocations: 10.72 kB / 432.9 MB, free: 7.973 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.0001468/0.2999, allocations: 217.6 kB / 433.1 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.3, allocations: 19.53 kB / 433.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.3, allocations: 22.45 kB / 433.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.3, allocations: 1.062 kB / 433.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.3, allocations: 4 kB / 433.2 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-06/0.3, allocations: 2.297 kB / 433.2 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.3002, allocations: 248.8 kB / 433.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3002, allocations: 0.7969 kB / 433.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.147e-05/0.3003, allocations: 13.92 kB / 433.4 MB, free: 7.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3003, allocations: 1.281 kB / 433.4 MB, free: 7.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.3003, allocations: 10.19 kB / 433.4 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3003, allocations: 2.031 kB / 433.4 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3003, allocations: 0 / 433.4 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005557/0.3009, allocations: 460.6 kB / 433.9 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.795e-05/0.3009, allocations: 93.83 kB / 434 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/0.301, allocations: 9.844 kB / 434 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.3011, allocations: 11.86 kB / 434 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.036e-05/0.3012, allocations: 26.14 kB / 434 MB, free: 7.164 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.3012, allocations: 7.766 kB / 434 MB, free: 7.164 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.782e-05/0.3013, allocations: 134 kB / 434.2 MB, free: 7.078 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3013, allocations: 4 kB / 434.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.3017, allocations: 80.3 kB / 434.2 MB, free: 7.062 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.0002141/0.3019, allocations: 166.4 kB / 434.4 MB, free: 6.945 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005138/0.3024, allocations: 398 kB / 434.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3024, allocations: 0 / 434.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.3027, allocations: 280.8 kB / 435.1 MB, free: 6.527 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.3029, allocations: 25.38 kB / 435.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.3035, allocations: 342.3 kB / 435.4 MB, free: 6.312 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.3037, allocations: 0.7235 MB / 436.2 MB, free: 5.613 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.715e-05/0.3037, allocations: 11.72 kB / 436.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.156e-05/0.3038, allocations: 17.92 kB / 436.2 MB, free: 5.598 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3038, allocations: 0 / 436.2 MB, free: 5.598 MB / 318.1 MB Notification: Performance of Templates: time 0.006804/0.3106, allocations: 2.643 MB / 438.8 MB, free: 5.383 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)