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.001863/0.001863, allocations: 108 kB / 15.61 MB, free: 152 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.002519/0.002519, allocations: 197 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.721/2.721, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.02248/0.02248, allocations: 1.926 MB / 271.7 MB, free: 3.34 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.002101/0.002101, allocations: 63.91 kB / 329.9 MB, free: 32.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1785, allocations: 47.13 MB / 377.1 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.00514/0.1838, allocations: 1.523 MB / 378.6 MB, free: 4 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.186, allocations: 0.7343 MB / 379.3 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.1862, allocations: 3.938 kB / 379.3 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.1864, allocations: 51.84 kB / 379.4 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001487/0.1866, allocations: 67.72 kB / 379.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.1879, allocations: 163.6 kB / 379.6 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003369/0.1882, allocations: 167.7 kB / 379.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.1884, allocations: 12 kB / 379.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.1886, allocations: 79.73 kB / 379.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.1889, allocations: 103.7 kB / 380 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.099e-05/0.1889, allocations: 11.94 kB / 380 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004646/0.1894, allocations: 159.8 kB / 380.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.1896, allocations: 31.91 kB / 380.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1897, allocations: 63.61 kB / 380.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.1901, allocations: 235.6 kB / 380.5 MB, free: 14.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.1901, allocations: 0 / 380.5 MB, free: 14.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1902, allocations: 0 / 380.5 MB, free: 14.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.1902, allocations: 0 / 380.5 MB, free: 14.13 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.001426/0.1916, allocations: 0.5177 MB / 381 MB, free: 13.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/0.1917, allocations: 11.89 kB / 381 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.057e-05/0.1918, allocations: 46.73 kB / 381 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.088e-05/0.1918, allocations: 20.75 kB / 381.1 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.1922, allocations: 205.9 kB / 381.3 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-05/0.1923, allocations: 46.19 kB / 381.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.1923, allocations: 8.375 kB / 381.3 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/0.1927, allocations: 133.5 kB / 381.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.1927, allocations: 0 / 381.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.1927, allocations: 7.938 kB / 381.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1928, allocations: 0 / 381.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002178/0.193, allocations: 91.95 kB / 381.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007516/0.1937, allocations: 368.6 kB / 381.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.1941, allocations: 142.5 kB / 382 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.1943, allocations: 100.8 kB / 382.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.1944, allocations: 0 / 382.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008747/0.1952, allocations: 238.8 kB / 382.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.1953, allocations: 0 / 382.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008828/0.1961, allocations: 454.8 kB / 382.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.1963, allocations: 122.8 kB / 382.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003988/0.1967, allocations: 183.3 kB / 383.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.3e-05/0.1968, allocations: 33.7 kB / 383.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.1969, allocations: 104.6 kB / 383.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.052e-05/0.197, allocations: 59.19 kB / 383.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.178e-05/0.1971, allocations: 45.7 kB / 383.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002325/0.1974, allocations: 330.8 kB / 383.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.1976, allocations: 88.12 kB / 383.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1978, allocations: 92.42 kB / 383.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.1982, allocations: 289.7 kB / 384.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1982, allocations: 0 / 384.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008389/0.199, allocations: 376.9 kB / 384.5 MB, free: 9.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001102/0.1992, allocations: 76 kB / 384.6 MB, free: 9.684 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.422e-05/0.1992, allocations: 3.938 kB / 384.6 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.1993, allocations: 0 / 384.6 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.1994, allocations: 19.94 kB / 384.6 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.1994, allocations: 8 kB / 384.6 MB, free: 9.652 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.1996, allocations: 11.98 kB / 384.6 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.1996, allocations: 11.98 kB / 384.6 MB, free: 9.629 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.0002481/0.1999, allocations: 214.9 kB / 384.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.142e-05/0.1999, allocations: 23.72 kB / 384.9 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.766e-05/0.2, allocations: 13.88 kB / 384.9 MB, free: 9.359 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.2, allocations: 7.984 kB / 384.9 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.2, allocations: 0 / 384.9 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.2, allocations: 4 kB / 384.9 MB, free: 9.348 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002897/0.2003, allocations: 249.4 kB / 385.1 MB, free: 9.055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2003, allocations: 0 / 385.1 MB, free: 9.055 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.022e-05/0.2004, allocations: 15.92 kB / 385.1 MB, free: 9.039 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.2004, allocations: 4 kB / 385.1 MB, free: 9.035 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.2004, allocations: 8 kB / 385.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.2004, allocations: 0 / 385.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.2004, allocations: 3.984 kB / 385.2 MB, free: 9.023 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000765/0.2012, allocations: 464.4 kB / 385.6 MB, free: 8.539 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.399e-05/0.2013, allocations: 100.8 kB / 385.7 MB, free: 8.422 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.79e-05/0.2014, allocations: 8 kB / 385.7 MB, free: 8.414 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.2015, allocations: 11.98 kB / 385.7 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.2016, allocations: 19.97 kB / 385.8 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.2016, allocations: 12 kB / 385.8 MB, free: 8.371 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001603/0.2018, allocations: 135.2 kB / 385.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2018, allocations: 0 / 385.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000356/0.2022, allocations: 79.94 kB / 386 MB, free: 8.16 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.001419/0.2036, allocations: 1.029 MB / 387 MB, free: 7.09 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.2043, allocations: 409.8 kB / 387.4 MB, free: 6.668 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2043, allocations: 8 kB / 387.4 MB, free: 6.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.2046, allocations: 290.7 kB / 387.7 MB, free: 6.352 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.2049, allocations: 16 kB / 387.7 MB, free: 6.336 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.2086, allocations: 2.411 MB / 390.1 MB, free: 3.828 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.2092, allocations: 0.7199 MB / 390.8 MB, free: 3.082 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.505e-05/0.2093, allocations: 16.55 kB / 390.9 MB, free: 3.066 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.751e-05/0.2094, allocations: 39.42 kB / 390.9 MB, free: 3.027 MB / 286.1 MB Notification: Performance of SimCode: time 1.203e-06/0.2094, allocations: 0 / 390.9 MB, free: 3.027 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03869/0.2481, allocations: 4.361 MB / 395.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.35/18.59, allocations: 7.922 kB / 395.3 MB, free: 14.59 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController1_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1)