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.001036/0.001036, allocations: 99.86 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.0009471/0.0009472, allocations: 177.3 kB / 15.94 MB, free: 220 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.838/1.838, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.0113/0.0113, allocations: 1.92 MB / 272.3 MB, free: 3.379 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.0004688/0.0004688, allocations: 16.16 kB / 331 MB, free: 33.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09034/0.09082, allocations: 48.1 MB / 379.1 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.00161/0.09247, allocations: 1.207 MB / 380.3 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.09353, allocations: 0.6921 MB / 381 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.368e-05/0.09361, allocations: 4 kB / 381 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.09375, allocations: 55.84 kB / 381 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.09386, allocations: 55.91 kB / 381.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000475/0.09434, allocations: 111.7 kB / 381.2 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.09451, allocations: 99.8 kB / 381.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.87e-05/0.09461, allocations: 8 kB / 381.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.09475, allocations: 75.8 kB / 381.4 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.09491, allocations: 75.78 kB / 381.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.09494, allocations: 4 kB / 381.4 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.09515, allocations: 127.9 kB / 381.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.09522, allocations: 31.91 kB / 381.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.29e-05/0.0953, allocations: 49.58 kB / 381.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.09551, allocations: 156 kB / 381.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.09552, allocations: 4 kB / 381.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09553, allocations: 3.938 kB / 381.8 MB, free: 14.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.09554, allocations: 0 / 381.8 MB, free: 14.36 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.0007704/0.09632, allocations: 0.502 MB / 382.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.09637, allocations: 8.031 kB / 382.3 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.682e-05/0.09643, allocations: 38.56 kB / 382.3 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.8e-05/0.09649, allocations: 27.8 kB / 382.4 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.09675, allocations: 211.5 kB / 382.6 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.284e-05/0.09682, allocations: 37.64 kB / 382.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.09685, allocations: 8 kB / 382.6 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.09712, allocations: 137.6 kB / 382.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.09714, allocations: 0 / 382.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.09716, allocations: 0 / 382.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.09717, allocations: 7.984 kB / 382.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.09736, allocations: 91.95 kB / 382.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.09787, allocations: 364.6 kB / 383.2 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.09815, allocations: 150.5 kB / 383.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.09817, allocations: 0 / 383.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003675/0.09854, allocations: 233.3 kB / 383.6 MB, free: 12.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.09855, allocations: 0 / 383.6 MB, free: 12.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008298/0.09938, allocations: 0.6084 MB / 384.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/0.09947, allocations: 118.8 kB / 384.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.09965, allocations: 187.2 kB / 384.5 MB, free: 11.37 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.09968, allocations: 33.7 kB / 384.5 MB, free: 11.33 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.044e-05/0.09976, allocations: 108.6 kB / 384.6 MB, free: 11.22 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.067e-05/0.09983, allocations: 59.19 kB / 384.7 MB, free: 11.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.521e-05/0.09985, allocations: 4 kB / 384.7 MB, free: 11.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.09999, allocations: 330.8 kB / 385 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.1001, allocations: 88.19 kB / 385.1 MB, free: 10.74 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.1003, allocations: 88.42 kB / 385.2 MB, free: 10.65 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.1005, allocations: 133.5 kB / 385.3 MB, free: 10.51 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1005, allocations: 0 / 385.3 MB, free: 10.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004951/0.101, allocations: 389 kB / 385.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/0.1011, allocations: 71.38 kB / 385.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.1011, allocations: 3.984 kB / 385.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.1011, allocations: 4 kB / 385.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.1012, allocations: 12 kB / 385.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1012, allocations: 3.953 kB / 385.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.1014, allocations: 27.89 kB / 385.8 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.1014, allocations: 8 kB / 385.8 MB, free: 9.973 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.0001774/0.1016, allocations: 222.9 kB / 386 MB, free: 9.73 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.1016, allocations: 27.69 kB / 386.1 MB, free: 9.703 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.6e-05/0.1016, allocations: 17.88 kB / 386.1 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1017, allocations: 0 / 386.1 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1017, allocations: 0 / 386.1 MB, free: 9.688 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1017, allocations: 7.938 kB / 386.1 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.1019, allocations: 253.4 kB / 386.3 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1019, allocations: 0 / 386.3 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.345e-05/0.102, allocations: 11.98 kB / 386.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.102, allocations: 4 kB / 386.4 MB, free: 9.367 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.102, allocations: 12 kB / 386.4 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.102, allocations: 0 / 386.4 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.102, allocations: 0 / 386.4 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005569/0.1026, allocations: 464.3 kB / 386.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.795e-05/0.1026, allocations: 92.86 kB / 386.9 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.909e-05/0.1027, allocations: 12 kB / 386.9 MB, free: 8.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.1028, allocations: 15.98 kB / 386.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.468e-05/0.1029, allocations: 23.95 kB / 387 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.1029, allocations: 8 kB / 387 MB, free: 8.703 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.1031, allocations: 135.2 kB / 387.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1031, allocations: 0 / 387.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003092/0.1034, allocations: 83.98 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.0009378/0.1043, allocations: 1.029 MB / 388.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004869/0.1048, allocations: 413.2 kB / 388.6 MB, free: 6.992 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1048, allocations: 0 / 388.6 MB, free: 6.992 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.1051, allocations: 282.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.0001821/0.1053, allocations: 12 kB / 388.9 MB, free: 6.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.1071, allocations: 1.225 MB / 390.1 MB, free: 5.406 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.1074, allocations: 0.7313 MB / 390.9 MB, free: 4.648 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.406e-05/0.1074, allocations: 8.547 kB / 390.9 MB, free: 4.641 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.817e-05/0.1075, allocations: 39.42 kB / 390.9 MB, free: 4.602 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1075, allocations: 4 kB / 390.9 MB, free: 4.598 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01412/0.1216, allocations: 3.955 MB / 394.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/0.1219, allocations: 147.9 kB / 395 MB, free: 412 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.975/2.097, allocations: 0 / 395 MB, free: 412 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: