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/Complex 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) 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 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.007431/0.007431, allocations: 171.2 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.01722/0.01722, allocations: 1.934 MB / 17.79 MB, free: 4.168 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.706/1.706, allocations: 205.4 MB / 224.4 MB, free: 11.99 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001015/0.001015, allocations: 94.14 kB / 273.3 MB, free: 11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003264/0.0003264, allocations: 12.22 kB / 331.9 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0969/0.09725, allocations: 48.09 MB / 380 MB, free: 10.62 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.308/0.4054, allocations: 76.27 MB / 456.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.4057, allocations: 67.97 kB / 456.4 MB, free: 11.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01646/0.4221, allocations: 5.671 MB / 462 MB, free: 5.484 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.129e-06/0.4222, allocations: 0 / 462 MB, free: 5.484 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.4222, allocations: 3.938 kB / 462 MB, free: 5.48 MB / 330.7 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.0007438/0.4229, allocations: 0.5261 MB / 462.6 MB, free: 4.895 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.423, allocations: 12.03 kB / 462.6 MB, free: 4.883 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.155e-05/0.4231, allocations: 46.55 kB / 462.6 MB, free: 4.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.4231, allocations: 15.81 kB / 462.6 MB, free: 4.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.4234, allocations: 238.6 kB / 462.9 MB, free: 4.539 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.791e-05/0.4235, allocations: 37.66 kB / 462.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.4235, allocations: 12 kB / 462.9 MB, free: 4.484 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.4239, allocations: 153.6 kB / 463.1 MB, free: 4.328 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.4239, allocations: 0 / 463.1 MB, free: 4.328 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.4239, allocations: 4 kB / 463.1 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4239, allocations: 0 / 463.1 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002318/0.4241, allocations: 123.9 kB / 463.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006254/0.4248, allocations: 392.6 kB / 463.6 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.4251, allocations: 166.5 kB / 463.7 MB, free: 3.598 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.4251, allocations: 0 / 463.7 MB, free: 3.598 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003696/0.4255, allocations: 254.7 kB / 464 MB, free: 3.324 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.4255, allocations: 0 / 464 MB, free: 3.324 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.001099/0.4266, allocations: 0.6959 MB / 464.7 MB, free: 2.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.4267, allocations: 118.9 kB / 464.8 MB, free: 2.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.4269, allocations: 185.7 kB / 465 MB, free: 2.238 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.817e-05/0.427, allocations: 33.7 kB / 465 MB, free: 2.199 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.82e-05/0.4271, allocations: 116.4 kB / 465.1 MB, free: 2.082 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.102e-05/0.4272, allocations: 51.34 kB / 465.2 MB, free: 2.031 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.564e-05/0.4272, allocations: 8 kB / 465.2 MB, free: 2.023 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.4274, allocations: 330.8 kB / 465.5 MB, free: 1.691 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.4276, allocations: 104.2 kB / 465.6 MB, free: 1.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.4278, allocations: 108.4 kB / 465.7 MB, free: 1.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.428, allocations: 164.4 kB / 465.9 MB, free: 1.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.428, allocations: 0 / 465.9 MB, free: 1.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006679/0.4287, allocations: 443 kB / 466.3 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.4288, allocations: 63.39 kB / 466.4 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4288, allocations: 3.938 kB / 466.4 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.4288, allocations: 4 kB / 466.4 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.4289, allocations: 19.94 kB / 466.4 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.4289, allocations: 7.984 kB / 466.4 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.4291, allocations: 19.86 kB / 466.4 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.893e-05/0.4291, allocations: 15.98 kB / 466.4 MB, free: 0.7148 MB / 330.7 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.000231/0.4294, allocations: 215 kB / 466.6 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.809e-05/0.4294, allocations: 19.81 kB / 466.7 MB, free: 476 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.449e-05/0.4295, allocations: 25.86 kB / 466.7 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4295, allocations: 0 / 466.7 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4295, allocations: 0 / 466.7 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.4295, allocations: 0 / 466.7 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.4298, allocations: 265.3 kB / 467 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.4298, allocations: 4 kB / 467 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.76e-05/0.4298, allocations: 23.86 kB / 467 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.4299, allocations: 0 / 467 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.4299, allocations: 12 kB / 467 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4299, allocations: 0 / 467 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4299, allocations: 0 / 467 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007946/0.4307, allocations: 0.5124 MB / 467.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.4308, allocations: 96.86 kB / 467.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.4308, allocations: 15.98 kB / 467.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.431, allocations: 15.98 kB / 467.6 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.387e-05/0.4311, allocations: 11.98 kB / 467.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.934e-05/0.4311, allocations: 23.98 kB / 467.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001206/0.4312, allocations: 148.3 kB / 467.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.983e-06/0.4312, allocations: 0 / 467.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003876/0.4316, allocations: 91.92 kB / 467.9 MB, free: 15.13 MB / 346.7 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.001207/0.4328, allocations: 1.053 MB / 468.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006157/0.4335, allocations: 417.3 kB / 469.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4335, allocations: 0 / 469.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.4338, allocations: 286.7 kB / 469.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.434, allocations: 12.19 kB / 469.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.436, allocations: 1.31 MB / 471 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/0.4364, allocations: 0.728 MB / 471.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.871e-05/0.4364, allocations: 12.48 kB / 471.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.314e-05/0.4365, allocations: 47.42 kB / 471.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of SimCode: time 3e-07/0.4365, allocations: 0 / 471.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.4536, allocations: 4.055 MB / 475.8 MB, free: 7.074 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.4539, allocations: 141.2 kB / 475.9 MB, free: 6.836 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/2.283, allocations: 0 / 475.9 MB, free: 6.836 MB / 346.7 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)