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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 99.66 kB / 18.94 MB, free: 2.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 220.3 kB / 22.24 MB, free: 5.109 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 207.7 MB / 233.1 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008735/0.008735, allocations: 1.958 MB / 287.3 MB, free: 3.789 MB / 222.1 MB " [Timeout remaining time 180] Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 78.61 kB / 401.8 MB, free: 50.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07841/0.08054, allocations: 49.7 MB / 451.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002141/0.08268, allocations: 1.506 MB / 453 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000946/0.08363, allocations: 0.6879 MB / 453.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.727e-05/0.08369, allocations: 0 / 453.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.08382, allocations: 63.78 kB / 453.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.835e-05/0.08391, allocations: 63.78 kB / 453.8 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004924/0.0844, allocations: 163.6 kB / 453.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001649/0.08457, allocations: 163.6 kB / 454.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.938e-05/0.08466, allocations: 11.94 kB / 454.1 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.043e-05/0.08475, allocations: 83.8 kB / 454.2 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.0849, allocations: 115.6 kB / 454.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.08492, allocations: 8 kB / 454.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.08508, allocations: 147.8 kB / 454.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.815e-05/0.08514, allocations: 27.92 kB / 454.5 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.319e-05/0.0852, allocations: 51.72 kB / 454.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.08544, allocations: 227.3 kB / 454.8 MB, free: 2.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.08544, allocations: 4 kB / 454.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.08544, allocations: 0 / 454.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.08545, allocations: 0 / 454.8 MB, free: 2.785 MB / 318.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.0006733/0.08613, allocations: 464.7 kB / 455.2 MB, free: 2.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.08616, allocations: 11.98 kB / 455.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.359e-05/0.0862, allocations: 42.73 kB / 455.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.08624, allocations: 24.78 kB / 455.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.08646, allocations: 156.6 kB / 455.5 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.947e-05/0.08652, allocations: 63.95 kB / 455.5 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.08654, allocations: 12.38 kB / 455.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.08678, allocations: 197 kB / 455.7 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.08679, allocations: 0 / 455.7 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.08681, allocations: 7.938 kB / 455.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.08682, allocations: 0 / 455.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.08698, allocations: 151.3 kB / 455.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004107/0.0874, allocations: 323.7 kB / 456.2 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.08764, allocations: 173.9 kB / 456.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.08777, allocations: 148.2 kB / 456.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.08779, allocations: 0 / 456.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000294/0.08808, allocations: 309.9 kB / 456.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.422e-06/0.08808, allocations: 0 / 456.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006872/0.08877, allocations: 0.574 MB / 457.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.71e-05/0.08886, allocations: 118.8 kB / 457.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.08905, allocations: 187.3 kB / 457.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.08908, allocations: 33.7 kB / 457.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.08916, allocations: 108.5 kB / 457.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.08928, allocations: 59.52 kB / 457.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.448e-05/0.08935, allocations: 45.7 kB / 457.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.08952, allocations: 334.8 kB / 458.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.08973, allocations: 151.6 kB / 458.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.08994, allocations: 147.8 kB / 458.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.09039, allocations: 297.7 kB / 458.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.0904, allocations: 0 / 458.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006165/0.09101, allocations: 468.5 kB / 459.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.451e-05/0.09108, allocations: 71.33 kB / 459.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.09108, allocations: 0 / 459.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.0911, allocations: 7.984 kB / 459.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.0912, allocations: 15.98 kB / 459.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.09121, allocations: 0 / 459.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.09134, allocations: 31.88 kB / 459.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.09136, allocations: 8 kB / 459.4 MB, free: 13.7 MB / 334.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 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002115/0.09157, allocations: 218.8 kB / 459.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.407e-05/0.09161, allocations: 23.89 kB / 459.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.241e-05/0.09165, allocations: 17.97 kB / 459.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.09166, allocations: 4 kB / 459.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.09166, allocations: 0 / 459.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.09167, allocations: 0 / 459.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.09188, allocations: 204.5 kB / 459.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.09188, allocations: 0 / 459.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.316e-05/0.09193, allocations: 12 kB / 459.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.09194, allocations: 4 kB / 459.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.09196, allocations: 7.984 kB / 459.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.09196, allocations: 4 kB / 459.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.09196, allocations: 0 / 459.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006978/0.09266, allocations: 0.515 MB / 460.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.407e-05/0.09268, allocations: 15.84 kB / 460.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.09273, allocations: 11.98 kB / 460.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.09283, allocations: 8 kB / 460.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-05/0.0929, allocations: 19.97 kB / 460.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-05/0.09294, allocations: 15.98 kB / 460.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.09305, allocations: 131.2 kB / 460.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09305, allocations: 4 kB / 460.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002888/0.09334, allocations: 83.81 kB / 460.7 MB, free: 12.29 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001278/0.09462, allocations: 1.115 MB / 461.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006743/0.09529, allocations: 461.5 kB / 462.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.0953, allocations: 4 kB / 462.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003418/0.09564, allocations: 294.1 kB / 462.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.09587, allocations: 20 kB / 462.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/0.09925, allocations: 2.752 MB / 465.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.09937, allocations: 110.4 kB / 465.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.657e-05/0.09941, allocations: 12.48 kB / 465.5 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.134e-05/0.09949, allocations: 39.42 kB / 465.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09949, allocations: 0 / 465.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.1334, allocations: 5.141 MB / 470.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.09, allocations: 11.91 kB / 470.6 MB, free: 1.969 MB / 334.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientController1_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.656968590803444] Failed to read output from testmodel.py, exit status != 0: 11.19393553165719 11.218817646 11.129036555 Calling exit ...