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-master/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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.0007464/0.0007464, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0007722/0.0007722, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.194/1.194, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007577/0.007577, allocations: 1.924 MB / 272.3 MB, free: 3.398 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.0004655/0.0004655, allocations: 16 kB / 331 MB, free: 33.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06925/0.06973, allocations: 48.08 MB / 379.1 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001369/0.07114, allocations: 1.218 MB / 380.3 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009293/0.07208, allocations: 0.6998 MB / 381 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.07215, allocations: 4 kB / 381 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.07228, allocations: 51.86 kB / 381.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.896e-05/0.07238, allocations: 55.84 kB / 381.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.07279, allocations: 119.7 kB / 381.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000148/0.07295, allocations: 127.7 kB / 381.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.708e-05/0.07303, allocations: 16 kB / 381.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.056e-05/0.07313, allocations: 71.73 kB / 381.4 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.07327, allocations: 83.77 kB / 381.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.0733, allocations: 8 kB / 381.5 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001691/0.07348, allocations: 135.8 kB / 381.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.281e-05/0.07354, allocations: 31.84 kB / 381.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.559e-05/0.0736, allocations: 49.64 kB / 381.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.0738, allocations: 152 kB / 381.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.07382, allocations: 4 kB / 381.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.07382, allocations: 0 / 381.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.07383, allocations: 4 kB / 381.9 MB, free: 14.26 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.0006775/0.07452, allocations: 0.4903 MB / 382.4 MB, free: 13.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.07457, allocations: 12.02 kB / 382.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.07462, allocations: 42.56 kB / 382.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.296e-05/0.07467, allocations: 19.81 kB / 382.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.07489, allocations: 227.3 kB / 382.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.412e-05/0.07494, allocations: 29.7 kB / 382.7 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.07497, allocations: 12 kB / 382.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.07521, allocations: 133.5 kB / 382.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.07523, allocations: 4 kB / 382.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.07525, allocations: 0 / 382.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.07526, allocations: 0 / 382.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.07544, allocations: 99.94 kB / 383 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004546/0.0759, allocations: 368.6 kB / 383.3 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.07616, allocations: 146.6 kB / 383.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.07631, allocations: 100.8 kB / 383.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.07633, allocations: 4 kB / 383.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003786/0.07671, allocations: 233.2 kB / 383.8 MB, free: 12.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.492e-06/0.07673, allocations: 4 kB / 383.8 MB, free: 12.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006734/0.07741, allocations: 464.7 kB / 384.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.07749, allocations: 114.8 kB / 384.4 MB, free: 11.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.07764, allocations: 191.2 kB / 384.5 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.07767, allocations: 25.7 kB / 384.6 MB, free: 11.32 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.763e-05/0.07774, allocations: 108.6 kB / 384.7 MB, free: 11.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.834e-05/0.0778, allocations: 63.19 kB / 384.7 MB, free: 11.15 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.883e-05/0.07782, allocations: 8 kB / 384.7 MB, free: 11.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.07794, allocations: 330.8 kB / 385.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.07808, allocations: 80.2 kB / 385.1 MB, free: 10.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.07822, allocations: 92.36 kB / 385.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.07838, allocations: 145.5 kB / 385.4 MB, free: 10.49 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.07839, allocations: 4 kB / 385.4 MB, free: 10.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004846/0.07888, allocations: 376 kB / 385.7 MB, free: 10.1 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.832e-05/0.07894, allocations: 71.39 kB / 385.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.07895, allocations: 0 / 385.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.07897, allocations: 3.938 kB / 385.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.906e-05/0.07908, allocations: 23.98 kB / 385.8 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.07909, allocations: 7.891 kB / 385.9 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.07921, allocations: 23.89 kB / 385.9 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.07924, allocations: 12 kB / 385.9 MB, free: 9.949 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 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,$PRE.patientController.t_on,patientController.t_on,$PRE.patientController.t_off,patientController.t_off,$PRE.patientController.active,patientController.active,RR.a,RR.b,RR.last,$PRE.RR.nextEvent,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,$PRE.dutyCycle.nextEvent,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.0794, allocations: 207.6 kB / 386.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.07944, allocations: 19.81 kB / 386.1 MB, free: 9.703 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.319e-05/0.07948, allocations: 17.86 kB / 386.1 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.07949, allocations: 4 kB / 386.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.0795, allocations: 0 / 386.1 MB, free: 9.684 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.0795, allocations: 3.953 kB / 386.1 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.07969, allocations: 257.4 kB / 386.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.0797, allocations: 0 / 386.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.032e-05/0.07976, allocations: 11.94 kB / 386.4 MB, free: 9.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.07977, allocations: 4 kB / 386.4 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.07979, allocations: 11.98 kB / 386.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.0798, allocations: 3.938 kB / 386.4 MB, free: 9.348 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.07981, allocations: 0 / 386.4 MB, free: 9.348 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.08035, allocations: 460.4 kB / 386.9 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.08041, allocations: 96.84 kB / 387 MB, free: 8.754 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.08045, allocations: 12 kB / 387 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.825e-05/0.08056, allocations: 15.98 kB / 387 MB, free: 8.727 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.763e-05/0.08063, allocations: 15.98 kB / 387 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-05/0.08066, allocations: 15.98 kB / 387 MB, free: 8.695 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.816e-05/0.08076, allocations: 135.2 kB / 387.2 MB, free: 8.562 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08077, allocations: 4 kB / 387.2 MB, free: 8.559 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.08104, allocations: 72 kB / 387.2 MB, free: 8.488 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009904/0.08203, allocations: 1.037 MB / 388.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004711/0.08252, allocations: 398.5 kB / 388.7 MB, free: 6.996 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.08253, allocations: 0 / 388.7 MB, free: 6.996 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.08284, allocations: 286.8 kB / 388.9 MB, free: 6.691 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.08308, allocations: 23.89 kB / 389 MB, free: 6.668 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.08484, allocations: 1.241 MB / 390.2 MB, free: 5.379 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.08513, allocations: 0.7274 MB / 390.9 MB, free: 4.625 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.745e-05/0.08519, allocations: 12.55 kB / 390.9 MB, free: 4.613 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.558e-05/0.08526, allocations: 43.36 kB / 391 MB, free: 4.57 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.08527, allocations: 0 / 391 MB, free: 4.57 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01402/0.09929, allocations: 3.962 MB / 394.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003292/0.09966, allocations: 160.1 kB / 395.1 MB, free: 368 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/1.648, allocations: 4 kB / 395.1 MB, free: 364 kB / 286.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/linux/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) Environment - environmentSimulation: