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: "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007105/0.007105, allocations: 95.36 kB / 15.73 MB, free: 6.039 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.001836/0.001837, allocations: 198.5 kB / 16.68 MB, free: 5.969 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.526/1.526, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008657/0.008657, allocations: 1.931 MB / 271.8 MB, free: 3.258 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.002078/0.002078, allocations: 71.88 kB / 377.7 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09842, allocations: 47.13 MB / 424.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002695/0.1012, allocations: 1.525 MB / 426.4 MB, free: 168 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1858/0.287, allocations: 0.7321 MB / 427.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.145e-05/0.2871, allocations: 1 kB / 427.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.2873, allocations: 55.3 kB / 427.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.2874, allocations: 60.97 kB / 427.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005278/0.2879, allocations: 171.6 kB / 427.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.2881, allocations: 174.3 kB / 427.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.541e-05/0.2882, allocations: 12.73 kB / 427.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.2883, allocations: 73.5 kB / 427.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.2885, allocations: 102.9 kB / 427.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.2885, allocations: 10.06 kB / 427.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.2888, allocations: 157.3 kB / 427.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.993e-05/0.2888, allocations: 37.88 kB / 428 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.204e-05/0.2889, allocations: 67 kB / 428 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003079/0.2892, allocations: 223 kB / 428.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2892, allocations: 0.9844 kB / 428.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2892, allocations: 0 / 428.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2893, allocations: 0 / 428.3 MB, free: 10.37 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.0006309/0.2899, allocations: 0.5287 MB / 428.8 MB, free: 9.895 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.2899, allocations: 13.8 kB / 428.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.561e-05/0.29, allocations: 47.59 kB / 428.8 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.66e-05/0.29, allocations: 19.11 kB / 428.9 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.2903, allocations: 219.3 kB / 429.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.602e-05/0.2903, allocations: 36.52 kB / 429.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.2903, allocations: 10.81 kB / 429.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002453/0.2906, allocations: 136.8 kB / 429.3 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.2906, allocations: 3.938 kB / 429.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.2906, allocations: 5.828 kB / 429.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.2906, allocations: 1.734 kB / 429.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.2908, allocations: 90.77 kB / 429.4 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004221/0.2913, allocations: 368.8 kB / 429.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.2915, allocations: 142.6 kB / 429.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.2917, allocations: 99.38 kB / 430 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.2917, allocations: 1.312 kB / 430 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.292, allocations: 240.7 kB / 430.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.292, allocations: 0 / 430.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006847/0.2927, allocations: 456.1 kB / 430.6 MB, free: 9.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.2927, allocations: 120.1 kB / 430.8 MB, free: 8.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.2929, allocations: 182.4 kB / 430.9 MB, free: 8.773 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.2929, allocations: 33.8 kB / 431 MB, free: 8.742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.003e-05/0.2929, allocations: 108.5 kB / 431.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.345e-05/0.293, allocations: 55 kB / 431.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/0.2931, allocations: 50.59 kB / 431.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.833e-05/0.2931, allocations: 331.5 kB / 431.5 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.2933, allocations: 88.47 kB / 431.6 MB, free: 8.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.2934, allocations: 83.05 kB / 431.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.2937, allocations: 291.1 kB / 432 MB, free: 8.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2937, allocations: 0 / 432 MB, free: 8.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004584/0.2942, allocations: 379.9 kB / 432.3 MB, free: 7.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.2942, allocations: 73.94 kB / 432.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2942, allocations: 6.188 kB / 432.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2942, allocations: 1.812 kB / 432.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.2944, allocations: 16.44 kB / 432.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2944, allocations: 1.062 kB / 432.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.2945, allocations: 20.64 kB / 432.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.2945, allocations: 13.22 kB / 432.5 MB, free: 7.863 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.0001282/0.2946, allocations: 223.2 kB / 432.7 MB, free: 7.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.2947, allocations: 19.16 kB / 432.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.2947, allocations: 21.61 kB / 432.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.2947, allocations: 2.156 kB / 432.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.2947, allocations: 1.031 kB / 432.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2948, allocations: 0 / 432.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.2949, allocations: 252 kB / 433 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2949, allocations: 0 / 433 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-05/0.295, allocations: 14.88 kB / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.295, allocations: 5.219 kB / 433 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.295, allocations: 6.562 kB / 433 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.295, allocations: 6.109 kB / 433 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.295, allocations: 0 / 433 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005303/0.2956, allocations: 466.6 kB / 433.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.2956, allocations: 90.3 kB / 433.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.2956, allocations: 9.656 kB / 433.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.2958, allocations: 11.64 kB / 433.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.774e-05/0.2958, allocations: 26.08 kB / 433.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.2959, allocations: 8.469 kB / 433.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.213e-05/0.2959, allocations: 138.1 kB / 433.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.296, allocations: 0 / 433.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.2963, allocations: 87 kB / 433.8 MB, free: 6.941 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.0008273/0.2971, allocations: 1.034 MB / 434.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004678/0.2976, allocations: 402.6 kB / 435.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2976, allocations: 0 / 435.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.2978, allocations: 280.3 kB / 435.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.2981, allocations: 17.02 kB / 435.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.3004, allocations: 2.423 MB / 437.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.3006, allocations: 0.7235 MB / 438.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.317e-05/0.3006, allocations: 7.641 kB / 438.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.914e-05/0.3007, allocations: 42.55 kB / 438.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3007, allocations: 3.938 kB / 438.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.3276, allocations: 4.415 MB / 443.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.301, allocations: 9.188 kB / 443.1 MB, free: 2.703 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientController1_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1)