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.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.001249/0.001249, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001406/0.001406, allocations: 215.7 kB / 22.25 MB, free: 5.254 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.391/1.391, allocations: 207.7 MB / 233.1 MB, free: 9.793 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.009136/0.009136, allocations: 1.954 MB / 287.3 MB, free: 3.672 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.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"}) [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.002134/0.002134, allocations: 82.34 kB / 401.8 MB, free: 50.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07715/0.07928, allocations: 49.7 MB / 451.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.00217/0.08145, allocations: 1.503 MB / 453 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009268/0.08238, allocations: 0.6958 MB / 453.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.211e-05/0.08244, allocations: 3.938 kB / 453.7 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.08257, allocations: 63.84 kB / 453.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.078e-05/0.08266, allocations: 67.72 kB / 453.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004902/0.08315, allocations: 175.5 kB / 454 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000162/0.08331, allocations: 159.7 kB / 454.1 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.067e-05/0.0834, allocations: 11.92 kB / 454.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.254e-05/0.08349, allocations: 87.73 kB / 454.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.08365, allocations: 115.7 kB / 454.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.08367, allocations: 12 kB / 454.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.08384, allocations: 147.8 kB / 454.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.334e-05/0.0839, allocations: 31.91 kB / 454.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.242e-05/0.08397, allocations: 63.59 kB / 454.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.0842, allocations: 235.2 kB / 454.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.0842, allocations: 0 / 454.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.0842, allocations: 0 / 454.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.08421, allocations: 0 / 454.8 MB, free: 2.719 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.0006286/0.08484, allocations: 484.6 kB / 455.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.08488, allocations: 15.98 kB / 455.3 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.813e-05/0.08491, allocations: 38.75 kB / 455.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.08495, allocations: 20.84 kB / 455.4 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.08516, allocations: 162.2 kB / 455.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.336e-05/0.08522, allocations: 63.97 kB / 455.6 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.08524, allocations: 4.375 kB / 455.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.08547, allocations: 204.9 kB / 455.8 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.08548, allocations: 3.984 kB / 455.8 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.0855, allocations: 4 kB / 455.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.0855, allocations: 0 / 455.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.08567, allocations: 155.3 kB / 456 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003969/0.08606, allocations: 327.6 kB / 456.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002291/0.08629, allocations: 182 kB / 456.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.08642, allocations: 148.2 kB / 456.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.08643, allocations: 0 / 456.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.0867, allocations: 314 kB / 456.9 MB, free: 412 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.312e-06/0.0867, allocations: 0 / 456.9 MB, free: 412 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007122/0.08741, allocations: 0.5935 MB / 457.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.11e-05/0.08749, allocations: 114.8 kB / 457.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.08769, allocations: 198.7 kB / 457.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.08772, allocations: 33.7 kB / 457.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.401e-05/0.0878, allocations: 108.6 kB / 458 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.224e-05/0.08786, allocations: 59.53 kB / 458 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.13e-05/0.08793, allocations: 41.7 kB / 458.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.08812, allocations: 338.8 kB / 458.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.08832, allocations: 155.5 kB / 458.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.08852, allocations: 157.5 kB / 458.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.08889, allocations: 304.8 kB / 459 MB, free: 14.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.0889, allocations: 0 / 459 MB, free: 14.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006119/0.08951, allocations: 477.9 kB / 459.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/0.08959, allocations: 71.39 kB / 459.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.08959, allocations: 0 / 459.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.08961, allocations: 0 / 459.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.08972, allocations: 23.92 kB / 459.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.08973, allocations: 0 / 459.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.08985, allocations: 31.88 kB / 459.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.08987, allocations: 11.94 kB / 459.6 MB, free: 13.52 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.0002098/0.09008, allocations: 218.9 kB / 459.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.09012, allocations: 23.89 kB / 459.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.209e-05/0.09016, allocations: 21.97 kB / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.09016, allocations: 0 / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.09017, allocations: 0 / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.09017, allocations: 0 / 459.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/0.09038, allocations: 212.5 kB / 460.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.09038, allocations: 4 kB / 460.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.685e-05/0.09044, allocations: 15.94 kB / 460.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.004e-06/0.09045, allocations: 7.984 kB / 460.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.09046, allocations: 4 kB / 460.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.09047, allocations: 0 / 460.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.09047, allocations: 0 / 460.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007023/0.09117, allocations: 0.5229 MB / 460.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.745e-05/0.0912, allocations: 19.8 kB / 460.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.319e-05/0.09124, allocations: 12 kB / 460.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.09134, allocations: 15.98 kB / 460.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.745e-05/0.09141, allocations: 19.97 kB / 460.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.09144, allocations: 8 kB / 460.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001276/0.09156, allocations: 143.2 kB / 460.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09156, allocations: 3.938 kB / 460.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002903/0.09186, allocations: 83.86 kB / 460.9 MB, free: 12.09 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.001113/0.09297, allocations: 1.121 MB / 462 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005841/0.09355, allocations: 481.4 kB / 462.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.09355, allocations: 0 / 462.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.09386, allocations: 294.1 kB / 462.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.09408, allocations: 19.98 kB / 462.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003175/0.09725, allocations: 2.85 MB / 465.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.09737, allocations: 114.4 kB / 465.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.219e-05/0.09741, allocations: 4.5 kB / 465.8 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.226e-05/0.09749, allocations: 51.41 kB / 465.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.09749, allocations: 3.938 kB / 465.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.1273, allocations: 5.241 MB / 471.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/10.93, allocations: 15.95 kB / 471.1 MB, free: 1.52 MB / 334.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file MEV_MEV.Test.TestPatientController2_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_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.480528300162405] Failed to read output from testmodel.py, exit status != 0: 11.040038179140538 11.070468085 10.980953293 Calling exit ...