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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 175.2 kB / 15.15 MB, free: 1.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.01574/0.01574, allocations: 1.922 MB / 17.81 MB, free: 5.402 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.512/1.512, allocations: 205.4 MB / 224.5 MB, free: 3.816 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008075/0.0008072, allocations: 103.1 kB / 273.3 MB, free: 2.938 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.0004934/0.0004934, allocations: 12 kB / 332 MB, free: 33.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07751/0.07801, allocations: 48.09 MB / 380.1 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001579/0.07964, allocations: 1.226 MB / 381.3 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.08077, allocations: 0.6958 MB / 382 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.673e-05/0.08086, allocations: 4 kB / 382 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.08098, allocations: 47.86 kB / 382 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.0811, allocations: 63.78 kB / 382.1 MB, free: 15 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.08161, allocations: 119.8 kB / 382.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.08179, allocations: 127.6 kB / 382.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.093e-05/0.08188, allocations: 15.98 kB / 382.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.082, allocations: 71.8 kB / 382.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.08217, allocations: 83.77 kB / 382.5 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.08221, allocations: 8 kB / 382.5 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.08241, allocations: 135.8 kB / 382.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.347e-05/0.08248, allocations: 31.91 kB / 382.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.032e-05/0.08257, allocations: 49.64 kB / 382.7 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002864/0.08286, allocations: 152 kB / 382.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.48e-05/0.08289, allocations: 4 kB / 382.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.0829, allocations: 0 / 382.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.08291, allocations: 0 / 382.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.0008505/0.08377, allocations: 0.4981 MB / 383.4 MB, free: 13.65 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.08382, allocations: 12.02 kB / 383.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.08387, allocations: 42.5 kB / 383.4 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.831e-05/0.08394, allocations: 19.81 kB / 383.5 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.08418, allocations: 211.5 kB / 383.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.08425, allocations: 37.64 kB / 383.7 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.08429, allocations: 12 kB / 383.7 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.08456, allocations: 133.6 kB / 383.8 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.08458, allocations: 3.938 kB / 383.8 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.0846, allocations: 0 / 383.8 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.08461, allocations: 4 kB / 383.9 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.08481, allocations: 91.94 kB / 383.9 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.08535, allocations: 372.6 kB / 384.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002563/0.08562, allocations: 146.5 kB / 384.4 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.08578, allocations: 100.8 kB / 384.5 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.0858, allocations: 4 kB / 384.6 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003558/0.08616, allocations: 233.2 kB / 384.8 MB, free: 12.11 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.08618, allocations: 0 / 384.8 MB, free: 12.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007163/0.0869, allocations: 468.8 kB / 385.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.08699, allocations: 114.8 kB / 385.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.08718, allocations: 187.2 kB / 385.5 MB, free: 11.3 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.08722, allocations: 33.7 kB / 385.6 MB, free: 11.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.103e-05/0.08729, allocations: 104.6 kB / 385.7 MB, free: 11.16 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.038e-05/0.08736, allocations: 59.19 kB / 385.7 MB, free: 11.1 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.233e-05/0.08738, allocations: 4 kB / 385.7 MB, free: 11.1 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.08751, allocations: 330.8 kB / 386.1 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.08768, allocations: 88.2 kB / 386.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.08784, allocations: 88.42 kB / 386.2 MB, free: 10.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.08801, allocations: 141.5 kB / 386.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.08802, allocations: 0 / 386.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000474/0.0885, allocations: 381 kB / 386.7 MB, free: 10.05 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.348e-05/0.08857, allocations: 75.39 kB / 386.8 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.08858, allocations: 0 / 386.8 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.0886, allocations: 0 / 386.8 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.08871, allocations: 19.98 kB / 386.8 MB, free: 9.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.08872, allocations: 3.953 kB / 386.8 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.08885, allocations: 23.83 kB / 386.9 MB, free: 9.922 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.08888, allocations: 12 kB / 386.9 MB, free: 9.91 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.0001656/0.08905, allocations: 218.9 kB / 387.1 MB, free: 9.672 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/0.08909, allocations: 19.81 kB / 387.1 MB, free: 9.652 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.643e-05/0.08913, allocations: 21.86 kB / 387.1 MB, free: 9.633 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.08914, allocations: 4 kB / 387.1 MB, free: 9.629 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.08915, allocations: 0 / 387.1 MB, free: 9.629 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.08916, allocations: 3.953 kB / 387.1 MB, free: 9.625 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.08936, allocations: 249.4 kB / 387.4 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.08937, allocations: 3.938 kB / 387.4 MB, free: 9.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.937e-05/0.08943, allocations: 16 kB / 387.4 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.08945, allocations: 4 kB / 387.4 MB, free: 9.309 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.08947, allocations: 11.98 kB / 387.4 MB, free: 9.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.08948, allocations: 0 / 387.4 MB, free: 9.297 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.08949, allocations: 4 kB / 387.4 MB, free: 9.293 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005601/0.09005, allocations: 456.4 kB / 387.9 MB, free: 8.816 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.784e-05/0.09012, allocations: 100.8 kB / 388 MB, free: 8.699 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.472e-05/0.09017, allocations: 8 kB / 388 MB, free: 8.691 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.09028, allocations: 19.98 kB / 388 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.09035, allocations: 11.98 kB / 388 MB, free: 8.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.09039, allocations: 15.98 kB / 388 MB, free: 8.645 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.09049, allocations: 135.2 kB / 388.1 MB, free: 8.512 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0905, allocations: 0 / 388.1 MB, free: 8.512 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002975/0.0908, allocations: 72 kB / 388.2 MB, free: 8.441 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.000998/0.09181, allocations: 1.045 MB / 389.3 MB, free: 7.355 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004703/0.09229, allocations: 398.6 kB / 389.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.09231, allocations: 4 kB / 389.7 MB, free: 6.938 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.09257, allocations: 282.7 kB / 389.9 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.09279, allocations: 23.89 kB / 389.9 MB, free: 6.613 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.09447, allocations: 1.234 MB / 391.2 MB, free: 5.332 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.09473, allocations: 0.7274 MB / 391.9 MB, free: 4.578 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.577e-05/0.09478, allocations: 8.547 kB / 391.9 MB, free: 4.57 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.09484, allocations: 35.42 kB / 392 MB, free: 4.535 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09485, allocations: 4 kB / 392 MB, free: 4.531 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01535/0.1102, allocations: 3.972 MB / 395.9 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002734/0.1105, allocations: 156 kB / 396.1 MB, free: 320 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/1.813, allocations: 0 / 396.1 MB, free: 320 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)