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.001279/0.001279, allocations: 110.2 kB / 16.46 MB, free: 6.508 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.001382/0.001382, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.409/1.409, allocations: 207.6 MB / 229.8 MB, free: 4.211 MB / 174.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.008496/0.008496, allocations: 1.954 MB / 283.6 MB, free: 14.49 MB / 238.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.002051/0.002051, allocations: 75.89 kB / 396.6 MB, free: 8.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.273, allocations: 49.66 MB / 446.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002375/0.2754, allocations: 1.521 MB / 447.8 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.2765, allocations: 0.7542 MB / 448.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.258e-05/0.2765, allocations: 5.312 kB / 448.5 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.2767, allocations: 46.73 kB / 448.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.2768, allocations: 66.75 kB / 448.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005728/0.2773, allocations: 176.4 kB / 448.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002088/0.2775, allocations: 157.1 kB / 449 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.137e-05/0.2776, allocations: 15.31 kB / 449 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.2777, allocations: 77.86 kB / 449.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.2779, allocations: 107.9 kB / 449.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.2779, allocations: 10.12 kB / 449.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.2782, allocations: 154.6 kB / 449.3 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.758e-05/0.2782, allocations: 38.45 kB / 449.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.49e-05/0.2783, allocations: 69.91 kB / 449.4 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.2786, allocations: 224.3 kB / 449.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2786, allocations: 0 / 449.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2786, allocations: 0 / 449.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.2786, allocations: 0 / 449.6 MB, free: 6.473 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.0007207/0.2793, allocations: 0.5252 MB / 450.2 MB, free: 5.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2794, allocations: 13.48 kB / 450.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.727e-05/0.2794, allocations: 41.08 kB / 450.2 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.756e-05/0.2795, allocations: 22.98 kB / 450.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/0.2797, allocations: 221 kB / 450.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.996e-05/0.2798, allocations: 36.94 kB / 450.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.2798, allocations: 7.656 kB / 450.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003206/0.2801, allocations: 139 kB / 450.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.2801, allocations: 0 / 450.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.2801, allocations: 2.156 kB / 450.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.2801, allocations: 2.094 kB / 450.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.2804, allocations: 92.91 kB / 450.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004963/0.2809, allocations: 377.2 kB / 451.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.2812, allocations: 113 kB / 451.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.2813, allocations: 86.3 kB / 451.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.2813, allocations: 1.062 kB / 451.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/0.2817, allocations: 240.7 kB / 451.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.2817, allocations: 0 / 451.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007054/0.2824, allocations: 452.6 kB / 452 MB, free: 4.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.2824, allocations: 119.9 kB / 452.1 MB, free: 4.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.2826, allocations: 182.6 kB / 452.3 MB, free: 4.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.2826, allocations: 34.28 kB / 452.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.507e-05/0.2826, allocations: 109.4 kB / 452.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/0.2827, allocations: 56.38 kB / 452.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.139e-05/0.2828, allocations: 53.41 kB / 452.5 MB, free: 4.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.407e-05/0.2828, allocations: 332.5 kB / 452.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.283, allocations: 87.36 kB / 452.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.2831, allocations: 91.34 kB / 453 MB, free: 3.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.2834, allocations: 287.1 kB / 453.3 MB, free: 3.793 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2834, allocations: 0 / 453.3 MB, free: 3.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000457/0.2839, allocations: 379.6 kB / 453.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/0.2839, allocations: 73.61 kB / 453.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2839, allocations: 0 / 453.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.2839, allocations: 2.594 kB / 453.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.284, allocations: 19.7 kB / 453.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.284, allocations: 1.375 kB / 453.8 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.2842, allocations: 33.64 kB / 453.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2842, allocations: 6.875 kB / 453.8 MB, free: 3.523 MB / 318.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.0001351/0.2843, allocations: 213.2 kB / 454 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.408e-05/0.2844, allocations: 23.55 kB / 454 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.463e-05/0.2844, allocations: 21.44 kB / 454.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2844, allocations: 2.75 kB / 454.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2844, allocations: 0 / 454.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2844, allocations: 8.5 kB / 454.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.2846, allocations: 254.3 kB / 454.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2846, allocations: 0 / 454.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.284e-05/0.2846, allocations: 13.61 kB / 454.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2846, allocations: 2.172 kB / 454.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.2847, allocations: 6.469 kB / 454.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2847, allocations: 0 / 454.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2847, allocations: 1.984 kB / 454.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005518/0.2852, allocations: 465.3 kB / 454.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.2852, allocations: 90.78 kB / 454.9 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/0.2853, allocations: 6 kB / 454.9 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.2854, allocations: 16.25 kB / 454.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.919e-05/0.2855, allocations: 24.7 kB / 454.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.2855, allocations: 9.547 kB / 454.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.03e-05/0.2856, allocations: 140.9 kB / 455.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2856, allocations: 0 / 455.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.2859, allocations: 91.47 kB / 455.2 MB, free: 2.59 MB / 318.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.0008586/0.2868, allocations: 1.031 MB / 456.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004402/0.2872, allocations: 332.8 kB / 456.5 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2872, allocations: 4 kB / 456.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002205/0.2874, allocations: 225.1 kB / 456.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.2877, allocations: 16.62 kB / 456.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002511/0.2902, allocations: 2.42 MB / 459.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.2905, allocations: 0.7192 MB / 459.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.762e-05/0.2906, allocations: 11.78 kB / 459.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.337e-05/0.2907, allocations: 41.39 kB / 460 MB, free: 15.14 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2907, allocations: 0 / 460 MB, free: 15.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.3188, allocations: 4.415 MB / 464.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.094/8.413, allocations: 12.86 kB / 464.4 MB, free: 12.96 MB / 334.1 MB " [Timeout remaining time 652] (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.799285403001704] Failed to read output from testmodel.py, exit status != 0: 8.500425080012064 8.521230945 8.238722582 Calling exit ...