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-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.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.0006876/0.0006876, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0007347/0.0007347, allocations: 168.7 kB / 15.95 MB, free: 204 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.204/1.204, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007607/0.007607, allocations: 1.916 MB / 272.3 MB, free: 3.395 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.0004378/0.0004378, allocations: 12 kB / 331 MB, free: 33.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06588/0.06632, allocations: 48.09 MB / 379.1 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.001322/0.06768, allocations: 1.222 MB / 380.3 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009033/0.06859, allocations: 0.6959 MB / 381 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.17e-05/0.06866, allocations: 3.938 kB / 381 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.06877, allocations: 63.91 kB / 381.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.548e-05/0.06887, allocations: 67.78 kB / 381.1 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.06929, allocations: 127.7 kB / 381.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.06944, allocations: 131.6 kB / 381.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.877e-05/0.06951, allocations: 15.97 kB / 381.4 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.389e-05/0.06961, allocations: 67.81 kB / 381.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.06975, allocations: 95.75 kB / 381.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.06978, allocations: 4 kB / 381.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.06996, allocations: 143.8 kB / 381.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.569e-05/0.07002, allocations: 27.91 kB / 381.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.58e-05/0.07008, allocations: 57.56 kB / 381.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.07026, allocations: 156 kB / 381.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.07028, allocations: 4 kB / 381.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.07028, allocations: 0 / 381.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.377e-06/0.07029, allocations: 0 / 381.9 MB, free: 14.21 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.0006175/0.07091, allocations: 0.5059 MB / 382.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.07096, allocations: 8.031 kB / 382.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.289e-05/0.07102, allocations: 38.56 kB / 382.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.712e-05/0.07107, allocations: 27.72 kB / 382.5 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.07127, allocations: 218.8 kB / 382.7 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/0.07132, allocations: 33.7 kB / 382.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.07135, allocations: 8 kB / 382.8 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.07159, allocations: 137.5 kB / 382.9 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.0716, allocations: 4 kB / 382.9 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.07162, allocations: 3.984 kB / 382.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.07163, allocations: 0 / 382.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.0718, allocations: 99.95 kB / 383 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004363/0.07225, allocations: 376.5 kB / 383.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.07249, allocations: 146.5 kB / 383.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.07265, allocations: 108.8 kB / 383.6 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.168e-06/0.07267, allocations: 0 / 383.6 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00031/0.07298, allocations: 233.1 kB / 383.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.07299, allocations: 4 kB / 383.9 MB, free: 12.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006447/0.07364, allocations: 484.8 kB / 384.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.07372, allocations: 110.8 kB / 384.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.07388, allocations: 206.5 kB / 384.7 MB, free: 11.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.07391, allocations: 29.7 kB / 384.7 MB, free: 11.21 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/0.07397, allocations: 112.6 kB / 384.8 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.07402, allocations: 55.27 kB / 384.8 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/0.07404, allocations: 4 kB / 384.8 MB, free: 11.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.07416, allocations: 334.8 kB / 385.2 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.07429, allocations: 84.2 kB / 385.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.07443, allocations: 96.36 kB / 385.4 MB, free: 10.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.07459, allocations: 148.5 kB / 385.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.07461, allocations: 4 kB / 385.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004422/0.07505, allocations: 390.4 kB / 385.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.07511, allocations: 74.34 kB / 386 MB, free: 9.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.07512, allocations: 0 / 386 MB, free: 9.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.07514, allocations: 4 kB / 386 MB, free: 9.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.07524, allocations: 15.98 kB / 386 MB, free: 9.863 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.07526, allocations: 7.938 kB / 386 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.07537, allocations: 27.84 kB / 386 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.0754, allocations: 15.92 kB / 386 MB, free: 9.812 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.0001471/0.07555, allocations: 222.9 kB / 386.2 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.07559, allocations: 19.81 kB / 386.3 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.543e-05/0.07563, allocations: 21.86 kB / 386.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.07564, allocations: 0 / 386.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.07565, allocations: 0 / 386.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.07565, allocations: 3.953 kB / 386.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.07586, allocations: 257.4 kB / 386.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.07587, allocations: 0 / 386.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.847e-05/0.07592, allocations: 8 kB / 386.5 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.07594, allocations: 4 kB / 386.5 MB, free: 9.215 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.07597, allocations: 11.98 kB / 386.6 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.07597, allocations: 0 / 386.6 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.07598, allocations: 0 / 386.6 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.0765, allocations: 480.3 kB / 387 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.07655, allocations: 96.86 kB / 387.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.0766, allocations: 4 kB / 387.1 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.07671, allocations: 23.98 kB / 387.2 MB, free: 8.562 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.613e-05/0.07677, allocations: 19.97 kB / 387.2 MB, free: 8.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.0768, allocations: 8 kB / 387.2 MB, free: 8.535 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.563e-05/0.0769, allocations: 148.3 kB / 387.3 MB, free: 8.391 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07691, allocations: 4 kB / 387.3 MB, free: 8.387 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002547/0.07717, allocations: 76 kB / 387.4 MB, free: 8.312 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.0008481/0.07802, allocations: 1.046 MB / 388.4 MB, free: 7.227 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004398/0.07848, allocations: 418.5 kB / 388.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.07849, allocations: 0 / 388.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002461/0.07874, allocations: 290.8 kB / 389.1 MB, free: 6.484 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002063/0.07896, allocations: 24.06 kB / 389.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.08055, allocations: 1.306 MB / 390.5 MB, free: 5.113 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.0808, allocations: 0.728 MB / 391.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.14e-05/0.08085, allocations: 20.48 kB / 391.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.456e-05/0.08091, allocations: 43.42 kB / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.08091, allocations: 0 / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01367/0.09459, allocations: 4.071 MB / 395.3 MB, free: 232 kB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.0948, allocations: 156 kB / 395.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.483/1.578, allocations: 0 / 395.5 MB, free: 15.98 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/linux/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) Environment - environmentSimulation: