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.003205/0.003205, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002736/0.002737, allocations: 193.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.328/3.328, allocations: 205.1 MB / 222.4 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.02474/0.02474, allocations: 1.928 MB / 271.7 MB, free: 3.359 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.002806/0.002806, allocations: 71.89 kB / 329.9 MB, free: 32.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2565, allocations: 47.13 MB / 377.1 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.008609/0.2653, allocations: 1.531 MB / 378.6 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003497/0.2689, allocations: 0.7381 MB / 379.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002769/0.2693, allocations: 3.938 kB / 379.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003361/0.2697, allocations: 67.77 kB / 379.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001719/0.2699, allocations: 63.78 kB / 379.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.2718, allocations: 163.6 kB / 379.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000682/0.2725, allocations: 179.6 kB / 379.8 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/0.2729, allocations: 15.98 kB / 379.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.273, allocations: 75.81 kB / 379.9 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.2733, allocations: 115.7 kB / 380 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.2734, allocations: 11.94 kB / 380 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003977/0.2738, allocations: 151.9 kB / 380.2 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002323/0.2741, allocations: 35.91 kB / 380.2 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.2744, allocations: 75.56 kB / 380.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.2754, allocations: 231.6 kB / 380.5 MB, free: 14.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.631e-05/0.2755, allocations: 0 / 380.5 MB, free: 14.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.789e-06/0.2755, allocations: 0 / 380.5 MB, free: 14.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.2756, allocations: 0 / 380.5 MB, free: 14.07 MB / 286.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.001674/0.2772, allocations: 0.5332 MB / 381 MB, free: 13.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001487/0.2774, allocations: 11.89 kB / 381.1 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001579/0.2776, allocations: 42.69 kB / 381.1 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.2778, allocations: 16.75 kB / 381.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008438/0.2787, allocations: 224 kB / 381.3 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.2789, allocations: 30.27 kB / 381.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.2791, allocations: 12.38 kB / 381.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005678/0.2797, allocations: 137.5 kB / 381.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.2797, allocations: 3.938 kB / 381.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.2798, allocations: 8 kB / 381.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2798, allocations: 0 / 381.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.28, allocations: 95.94 kB / 381.6 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.2811, allocations: 376.5 kB / 382 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008211/0.282, allocations: 146.5 kB / 382.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000445/0.2825, allocations: 105 kB / 382.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/0.2826, allocations: 0 / 382.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009451/0.2836, allocations: 234.6 kB / 382.5 MB, free: 11.92 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.254e-06/0.2836, allocations: 4 kB / 382.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001697/0.2853, allocations: 482.8 kB / 382.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002871/0.2857, allocations: 110.8 kB / 383 MB, free: 11.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.2863, allocations: 194.7 kB / 383.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001151/0.2864, allocations: 33.7 kB / 383.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.2867, allocations: 116.5 kB / 383.4 MB, free: 10.94 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.2869, allocations: 51.34 kB / 383.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.2871, allocations: 49.64 kB / 383.5 MB, free: 10.83 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002538/0.2873, allocations: 330.8 kB / 383.8 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.2876, allocations: 96.19 kB / 383.9 MB, free: 10.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.2877, allocations: 84.42 kB / 384 MB, free: 10.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007843/0.2885, allocations: 301.9 kB / 384.3 MB, free: 10 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/0.2886, allocations: 0 / 384.3 MB, free: 10 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001312/0.2899, allocations: 394.3 kB / 384.7 MB, free: 9.602 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002431/0.2902, allocations: 76 kB / 384.7 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.983e-05/0.2903, allocations: 3.938 kB / 384.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.071e-05/0.2904, allocations: 4 kB / 384.7 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/0.2907, allocations: 12 kB / 384.7 MB, free: 9.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.243e-05/0.2907, allocations: 4 kB / 384.7 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.2909, allocations: 19.83 kB / 384.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.2909, allocations: 15.98 kB / 384.8 MB, free: 9.457 MB / 286.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.0003152/0.2912, allocations: 218.8 kB / 385 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.356e-05/0.2913, allocations: 19.81 kB / 385 MB, free: 9.199 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.924e-05/0.2914, allocations: 25.86 kB / 385 MB, free: 9.176 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2914, allocations: 4 kB / 385 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2914, allocations: 0 / 385 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.2914, allocations: 3.984 kB / 385.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.2917, allocations: 257.4 kB / 385.3 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2917, allocations: 0 / 385.3 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.775e-05/0.2918, allocations: 8 kB / 385.3 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.2919, allocations: 0 / 385.3 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.786e-05/0.292, allocations: 7.984 kB / 385.3 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.28e-05/0.292, allocations: 4 kB / 385.3 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.292, allocations: 0 / 385.3 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.2937, allocations: 476.3 kB / 385.8 MB, free: 8.352 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.2939, allocations: 96.86 kB / 385.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.2941, allocations: 8 kB / 385.9 MB, free: 8.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.2944, allocations: 11.98 kB / 385.9 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.2945, allocations: 15.98 kB / 385.9 MB, free: 8.203 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/0.2946, allocations: 19.98 kB / 385.9 MB, free: 8.184 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001886/0.2948, allocations: 152.3 kB / 386.1 MB, free: 8.035 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2948, allocations: 3.938 kB / 386.1 MB, free: 8.031 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000419/0.2952, allocations: 87.92 kB / 386.2 MB, free: 7.945 MB / 286.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.002728/0.298, allocations: 1.037 MB / 387.2 MB, free: 6.867 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007396/0.2987, allocations: 417.8 kB / 387.6 MB, free: 6.438 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2987, allocations: 0 / 387.6 MB, free: 6.438 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007262/0.2995, allocations: 290.7 kB / 387.9 MB, free: 6.129 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000638/0.3002, allocations: 19.98 kB / 387.9 MB, free: 6.109 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005894/0.3061, allocations: 2.487 MB / 390.4 MB, free: 3.523 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.3072, allocations: 0.7317 MB / 391.1 MB, free: 2.766 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.3074, allocations: 8.562 kB / 391.1 MB, free: 2.758 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.3076, allocations: 43.42 kB / 391.2 MB, free: 2.715 MB / 286.1 MB Notification: Performance of SimCode: time 1.593e-06/0.3077, allocations: 0 / 391.2 MB, free: 2.715 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05885/0.3665, allocations: 4.477 MB / 395.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.05, allocations: 3.859 kB / 395.7 MB, free: 14.17 MB / 302.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)