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.001181/0.001181, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001633/0.001632, allocations: 177.3 kB / 15.94 MB, free: 228 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.824/1.824, allocations: 205.4 MB / 222.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.009883/0.009883, allocations: 1.928 MB / 272.3 MB, free: 3.277 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.0005172/0.0005173, allocations: 12.22 kB / 331 MB, free: 33.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08338/0.08391, allocations: 48.09 MB / 379.1 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.00142/0.08537, allocations: 1.222 MB / 380.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009387/0.08633, allocations: 0.6882 MB / 381 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.962e-05/0.0864, allocations: 0 / 381 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.08651, allocations: 59.84 kB / 381 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.48e-05/0.08662, allocations: 67.88 kB / 381.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.08704, allocations: 119.7 kB / 381.2 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.08719, allocations: 95.8 kB / 381.3 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.993e-05/0.08728, allocations: 16 kB / 381.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.279e-05/0.08738, allocations: 67.8 kB / 381.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.08753, allocations: 87.77 kB / 381.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.08755, allocations: 4 kB / 381.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.08773, allocations: 135.8 kB / 381.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.72e-05/0.08779, allocations: 31.91 kB / 381.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.464e-05/0.08785, allocations: 49.64 kB / 381.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.08804, allocations: 160 kB / 381.8 MB, free: 14.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.08805, allocations: 4 kB / 381.8 MB, free: 14.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08806, allocations: 0 / 381.8 MB, free: 14.3 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.08807, allocations: 0 / 381.8 MB, free: 14.3 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.000664/0.08874, allocations: 0.4981 MB / 382.3 MB, free: 13.74 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.08878, allocations: 16.02 kB / 382.4 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.08883, allocations: 38.56 kB / 382.4 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.08888, allocations: 23.72 kB / 382.4 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.08911, allocations: 222.7 kB / 382.6 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-05/0.08917, allocations: 33.7 kB / 382.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.0892, allocations: 8 kB / 382.7 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.08947, allocations: 133.6 kB / 382.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.08949, allocations: 0 / 382.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.08951, allocations: 4 kB / 382.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.08952, allocations: 3.938 kB / 382.8 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.08971, allocations: 107.9 kB / 382.9 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005055/0.09023, allocations: 376.5 kB / 383.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002488/0.09049, allocations: 146.6 kB / 383.4 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.727e-06/0.09051, allocations: 0 / 383.4 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00034/0.09085, allocations: 237.2 kB / 383.7 MB, free: 12.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.532e-06/0.09086, allocations: 0 / 383.7 MB, free: 12.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007626/0.09163, allocations: 0.628 MB / 384.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.09171, allocations: 114.8 kB / 384.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.09189, allocations: 210.5 kB / 384.6 MB, free: 11.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.09192, allocations: 29.7 kB / 384.6 MB, free: 11.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.811e-05/0.09199, allocations: 112.6 kB / 384.7 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.003e-05/0.09205, allocations: 51.34 kB / 384.8 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.187e-05/0.09207, allocations: 4 kB / 384.8 MB, free: 11.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.09219, allocations: 330.8 kB / 385.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.09234, allocations: 96.09 kB / 385.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.09248, allocations: 92.42 kB / 385.3 MB, free: 10.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.09265, allocations: 148.5 kB / 385.4 MB, free: 10.36 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.09266, allocations: 0 / 385.4 MB, free: 10.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004583/0.09312, allocations: 390.5 kB / 385.8 MB, free: 9.961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.634e-05/0.09319, allocations: 74.34 kB / 385.9 MB, free: 9.879 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.0932, allocations: 4 kB / 385.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.09322, allocations: 0 / 385.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.09333, allocations: 19.94 kB / 385.9 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.09335, allocations: 7.953 kB / 385.9 MB, free: 9.848 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.0935, allocations: 31.81 kB / 386 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.09353, allocations: 4 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.000176/0.09371, allocations: 219 kB / 386.2 MB, free: 9.574 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.467e-05/0.09375, allocations: 23.75 kB / 386.2 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.0938, allocations: 25.86 kB / 386.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.09381, allocations: 0 / 386.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.09382, allocations: 0 / 386.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.09383, allocations: 7.953 kB / 386.2 MB, free: 9.52 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.09404, allocations: 249.4 kB / 386.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.09405, allocations: 0 / 386.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.494e-05/0.09412, allocations: 15.94 kB / 386.5 MB, free: 9.211 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.09413, allocations: 4 kB / 386.5 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.09415, allocations: 11.98 kB / 386.5 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.09416, allocations: 0 / 386.5 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.09417, allocations: 0 / 386.5 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005804/0.09476, allocations: 472.4 kB / 387 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.09483, allocations: 96.84 kB / 387.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.26e-05/0.09488, allocations: 12 kB / 387.1 MB, free: 8.578 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.09499, allocations: 15.98 kB / 387.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.09507, allocations: 15.98 kB / 387.1 MB, free: 8.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.09511, allocations: 15.98 kB / 387.1 MB, free: 8.531 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.09523, allocations: 148.2 kB / 387.3 MB, free: 8.387 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09523, allocations: 0 / 387.3 MB, free: 8.387 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.09556, allocations: 75.98 kB / 387.3 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.0009401/0.09651, allocations: 1.05 MB / 388.4 MB, free: 7.223 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004763/0.097, allocations: 414.4 kB / 388.8 MB, free: 6.793 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.09701, allocations: 4 kB / 388.8 MB, free: 6.789 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.09729, allocations: 294.7 kB / 389.1 MB, free: 6.477 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.0975, allocations: 12.19 kB / 389.1 MB, free: 6.465 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.09923, allocations: 1.283 MB / 390.4 MB, free: 5.141 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.09951, allocations: 0.7319 MB / 391.1 MB, free: 4.383 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.469e-05/0.09956, allocations: 8.547 kB / 391.1 MB, free: 4.375 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.878e-05/0.09963, allocations: 51.41 kB / 391.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of SimCode: time 5.51e-07/0.09963, allocations: 0 / 391.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01402/0.1137, allocations: 4.067 MB / 395.2 MB, free: 264 kB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.1139, allocations: 148 kB / 395.4 MB, free: 16 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.019, allocations: 0 / 395.4 MB, free: 16 kB / 286.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: