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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 114.2 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 188.9 kB / 22.23 MB, free: 5.137 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.386/1.386, allocations: 207.6 MB / 233 MB, free: 10.07 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.01092/0.01092, allocations: 1.966 MB / 287.2 MB, free: 3.93 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.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"}) [Timeout 660] "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.002168/0.002168, allocations: 71.66 kB / 401.7 MB, free: 50.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.08284, allocations: 49.69 MB / 451.4 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002426/0.08527, allocations: 1.538 MB / 453 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.08633, allocations: 0.7579 MB / 453.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.312e-05/0.08641, allocations: 4 kB / 453.7 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.08653, allocations: 51.8 kB / 453.8 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.08664, allocations: 67.78 kB / 453.8 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.08717, allocations: 163.6 kB / 454 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.08735, allocations: 159.7 kB / 454.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.505e-05/0.08744, allocations: 15.92 kB / 454.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.454e-05/0.08753, allocations: 79.75 kB / 454.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.08769, allocations: 111.7 kB / 454.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/0.08772, allocations: 16 kB / 454.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.0879, allocations: 155.8 kB / 454.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.913e-05/0.08796, allocations: 39.84 kB / 454.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.633e-05/0.08802, allocations: 55.67 kB / 454.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.08827, allocations: 231.2 kB / 454.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.08828, allocations: 0 / 454.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.08828, allocations: 0 / 454.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.08828, allocations: 0 / 454.8 MB, free: 2.906 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.0007107/0.089, allocations: 0.5292 MB / 455.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.08904, allocations: 15.98 kB / 455.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.183e-05/0.08907, allocations: 34.75 kB / 455.4 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.939e-05/0.08912, allocations: 20.84 kB / 455.4 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.08937, allocations: 218.4 kB / 455.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.08943, allocations: 34.27 kB / 455.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.08945, allocations: 8.375 kB / 455.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.08969, allocations: 145.5 kB / 455.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.0897, allocations: 0 / 455.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.08971, allocations: 0 / 455.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.08972, allocations: 4 kB / 455.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.08988, allocations: 99.86 kB / 455.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004325/0.09031, allocations: 364.6 kB / 456.3 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.09056, allocations: 122.6 kB / 456.4 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.09067, allocations: 72.83 kB / 456.5 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.09068, allocations: 4 kB / 456.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/0.09097, allocations: 242.6 kB / 456.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.09097, allocations: 0 / 456.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006102/0.09158, allocations: 468.8 kB / 457.2 MB, free: 348 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.09163, allocations: 110.8 kB / 457.3 MB, free: 212 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.09174, allocations: 183.3 kB / 457.5 MB, free: 20 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.887e-05/0.09178, allocations: 33.7 kB / 457.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.156e-05/0.09188, allocations: 116.5 kB / 457.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.383e-05/0.09194, allocations: 55.53 kB / 457.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.11e-05/0.09202, allocations: 45.7 kB / 457.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.09219, allocations: 338.8 kB / 458.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.09235, allocations: 80.2 kB / 458.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.0925, allocations: 88.42 kB / 458.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003718/0.09287, allocations: 285.7 kB / 458.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.09288, allocations: 4 kB / 458.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005442/0.09342, allocations: 385.1 kB / 458.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.002e-05/0.09349, allocations: 63.39 kB / 458.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.0935, allocations: 0 / 458.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.09352, allocations: 8 kB / 458.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.09364, allocations: 23.92 kB / 459 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.09364, allocations: 0 / 459 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.09377, allocations: 19.94 kB / 459 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.09379, allocations: 8 kB / 459 MB, free: 14.42 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.0002235/0.09401, allocations: 218.9 kB / 459.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.047e-05/0.09405, allocations: 23.89 kB / 459.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.0941, allocations: 21.97 kB / 459.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.0941, allocations: 3.938 kB / 459.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.09411, allocations: 0 / 459.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.09411, allocations: 4 kB / 459.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003586/0.09447, allocations: 249.4 kB / 459.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.09447, allocations: 0 / 459.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.516e-05/0.09453, allocations: 11.98 kB / 459.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.09453, allocations: 0 / 459.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.09455, allocations: 15.98 kB / 459.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.09455, allocations: 0 / 459.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.09456, allocations: 4 kB / 459.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008026/0.09536, allocations: 456 kB / 460 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.09543, allocations: 92.95 kB / 460.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.381e-05/0.09548, allocations: 11.98 kB / 460.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.09558, allocations: 11.98 kB / 460.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.745e-05/0.09566, allocations: 27.91 kB / 460.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.09569, allocations: 11.94 kB / 460.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001253/0.09581, allocations: 143.2 kB / 460.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09581, allocations: 0 / 460.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.09615, allocations: 79.83 kB / 460.4 MB, free: 12.93 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.001152/0.0973, allocations: 1.041 MB / 461.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005333/0.09783, allocations: 338.6 kB / 461.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.09783, allocations: 0 / 461.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004068/0.09824, allocations: 226.7 kB / 461.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.09848, allocations: 16.62 kB / 462 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.1021, allocations: 2.404 MB / 464.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.1025, allocations: 0.7278 MB / 465.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.309e-05/0.1025, allocations: 4.5 kB / 465.1 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.042e-05/0.1026, allocations: 43.42 kB / 465.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of SimCode: time 1.183e-06/0.1026, allocations: 0 / 465.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.1334, allocations: 4.574 MB / 469.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.298/8.431, allocations: 4 kB / 469.7 MB, free: 3.309 MB / 334.1 MB " [Timeout remaining time 651] (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: 10.963160225888714] Failed to read output from testmodel.py, exit status != 0: 8.504834944847971 8.5361006 8.442226563 Calling exit ...