Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.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.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",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.00496/0.00496, allocations: 102.2 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.001342/0.001342, allocations: 191.4 kB / 16.67 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.372/1.372, 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.008924/0.008924, allocations: 1.935 MB / 271.8 MB, free: 3.246 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.003403/0.003403, allocations: 71.84 kB / 377.8 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1097, allocations: 47.12 MB / 424.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002802/0.1125, allocations: 1.529 MB / 426.4 MB, free: 148 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1733/0.2859, allocations: 0.7371 MB / 427.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.02e-05/0.286, allocations: 1.188 kB / 427.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.2862, allocations: 62.75 kB / 427.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.2863, allocations: 71.05 kB / 427.3 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.2869, allocations: 168.2 kB / 427.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002122/0.2871, allocations: 174.2 kB / 427.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.2872, allocations: 15.39 kB / 427.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.2874, allocations: 83.22 kB / 427.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.2875, allocations: 107.5 kB / 427.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.2876, allocations: 13.83 kB / 427.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002218/0.2878, allocations: 162.8 kB / 428 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.776e-05/0.2879, allocations: 36.39 kB / 428 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.376e-05/0.288, allocations: 65.55 kB / 428.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003174/0.2883, allocations: 234.9 kB / 428.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2883, allocations: 0.6562 kB / 428.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2883, allocations: 0 / 428.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2883, allocations: 1.156 kB / 428.3 MB, free: 10.36 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.0007011/0.289, allocations: 0.5346 MB / 428.9 MB, free: 9.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2891, allocations: 12.98 kB / 428.9 MB, free: 9.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.342e-05/0.2891, allocations: 41.27 kB / 428.9 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.985e-05/0.2892, allocations: 18.78 kB / 428.9 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.2894, allocations: 238.1 kB / 429.2 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.028e-05/0.2895, allocations: 34.67 kB / 429.2 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.61e-05/0.2895, allocations: 13.77 kB / 429.2 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.2898, allocations: 135.4 kB / 429.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.2898, allocations: 1.531 kB / 429.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.2898, allocations: 4.141 kB / 429.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2899, allocations: 2.203 kB / 429.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.2901, allocations: 94.02 kB / 429.4 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004897/0.2906, allocations: 373.5 kB / 429.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.2908, allocations: 143.6 kB / 429.9 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.291, allocations: 106.8 kB / 430.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.291, allocations: 1.75 kB / 430.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003223/0.2913, allocations: 249.9 kB / 430.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.2913, allocations: 0 / 430.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007637/0.2921, allocations: 472.9 kB / 430.8 MB, free: 8.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.2922, allocations: 115.5 kB / 430.9 MB, free: 8.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.2923, allocations: 194.5 kB / 431.1 MB, free: 8.754 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.2924, allocations: 33.17 kB / 431.1 MB, free: 8.723 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.613e-05/0.2924, allocations: 110.4 kB / 431.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.2925, allocations: 56.86 kB / 431.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.916e-05/0.2926, allocations: 49.47 kB / 431.3 MB, free: 8.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.28e-05/0.2926, allocations: 339.3 kB / 431.6 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.2928, allocations: 88.33 kB / 431.7 MB, free: 8.266 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.2929, allocations: 90.25 kB / 431.8 MB, free: 8.266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.2932, allocations: 296.1 kB / 432.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2933, allocations: 1.062 kB / 432.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004994/0.2938, allocations: 395 kB / 432.5 MB, free: 7.895 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/0.2938, allocations: 70.92 kB / 432.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2938, allocations: 0 / 432.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.2939, allocations: 1.5 kB / 432.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.294, allocations: 23.08 kB / 432.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.294, allocations: 1.844 kB / 432.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001417/0.2941, allocations: 21.69 kB / 432.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.2942, allocations: 10.69 kB / 432.6 MB, free: 7.809 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.0001389/0.2943, allocations: 220.7 kB / 432.8 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.2943, allocations: 22.73 kB / 432.9 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.2944, allocations: 22.08 kB / 432.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.2944, allocations: 1.781 kB / 432.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.2944, allocations: 5.688 kB / 432.9 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2944, allocations: 0.6562 kB / 432.9 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001842/0.2946, allocations: 262.8 kB / 433.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2946, allocations: 2.625 kB / 433.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.184e-05/0.2947, allocations: 9.328 kB / 433.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.2947, allocations: 1.859 kB / 433.2 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.2947, allocations: 10.94 kB / 433.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2947, allocations: 1.094 kB / 433.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2947, allocations: 0.5156 kB / 433.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005485/0.2953, allocations: 472.9 kB / 433.6 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.2953, allocations: 93.77 kB / 433.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.2954, allocations: 11.09 kB / 433.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.2955, allocations: 12.08 kB / 433.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.003e-05/0.2956, allocations: 24.75 kB / 433.8 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.2956, allocations: 16.25 kB / 433.8 MB, free: 6.988 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.411e-05/0.2957, allocations: 148.7 kB / 433.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2957, allocations: 0 / 433.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.296, allocations: 85.84 kB / 434 MB, free: 6.879 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.0008357/0.2969, allocations: 1.041 MB / 435 MB, free: 6.113 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005014/0.2974, allocations: 405 kB / 435.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2974, allocations: 0 / 435.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.2977, allocations: 288.9 kB / 435.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.2979, allocations: 20.17 kB / 435.7 MB, free: 5.684 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.3006, allocations: 2.511 MB / 438.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.3008, allocations: 0.7358 MB / 439 MB, free: 3.348 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.094e-05/0.3008, allocations: 11.16 kB / 439 MB, free: 3.344 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.56e-05/0.3009, allocations: 45.91 kB / 439 MB, free: 3.309 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3009, allocations: 5.094 kB / 439.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.3274, allocations: 4.51 MB / 443.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.853/9.18, allocations: 5.25 kB / 443.6 MB, free: 2.609 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController2_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1)