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.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.001748/0.001748, allocations: 105.4 kB / 16.45 MB, free: 6.445 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.001929/0.001929, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.394/1.394, allocations: 207.6 MB / 229.8 MB, free: 4.254 MB / 174.1 MB " [Timeout remaining time 179] 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.008913/0.008913, allocations: 1.954 MB / 283.6 MB, free: 14.52 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.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.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.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.00319/0.00319, allocations: 79.88 kB / 396.6 MB, free: 8.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2619, allocations: 49.66 MB / 446.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002633/0.2646, allocations: 1.524 MB / 447.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.2659, allocations: 0.7586 MB / 448.5 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.292e-05/0.266, allocations: 1.438 kB / 448.5 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.2661, allocations: 63.75 kB / 448.6 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.2663, allocations: 69.78 kB / 448.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007124/0.267, allocations: 170.7 kB / 448.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.2673, allocations: 165.1 kB / 449 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.2674, allocations: 17.73 kB / 449 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.2675, allocations: 80.59 kB / 449 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.2678, allocations: 120 kB / 449.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.2678, allocations: 10.84 kB / 449.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002276/0.268, allocations: 161.9 kB / 449.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.984e-05/0.2681, allocations: 38.33 kB / 449.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.774e-05/0.2682, allocations: 62.55 kB / 449.4 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003417/0.2685, allocations: 225 kB / 449.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2685, allocations: 1.031 kB / 449.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2685, allocations: 9.562 kB / 449.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.2685, allocations: 0 / 449.7 MB, free: 6.484 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.0007763/0.2693, allocations: 0.5322 MB / 450.2 MB, free: 5.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.2693, allocations: 13.33 kB / 450.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.883e-05/0.2694, allocations: 44.67 kB / 450.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.522e-05/0.2694, allocations: 19.64 kB / 450.3 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.2697, allocations: 229.6 kB / 450.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.112e-05/0.2698, allocations: 37.33 kB / 450.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.2698, allocations: 7.375 kB / 450.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.2701, allocations: 138.5 kB / 450.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2701, allocations: 3.938 kB / 450.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.2701, allocations: 5.984 kB / 450.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.2701, allocations: 1.375 kB / 450.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.2703, allocations: 93.23 kB / 450.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.2709, allocations: 379.3 kB / 451.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.2712, allocations: 121.2 kB / 451.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.2713, allocations: 81.62 kB / 451.3 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.2713, allocations: 1.344 kB / 451.3 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003671/0.2717, allocations: 251.7 kB / 451.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.884e-06/0.2717, allocations: 0 / 451.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007981/0.2725, allocations: 479 kB / 452.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.2726, allocations: 115.3 kB / 452.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.2727, allocations: 197.2 kB / 452.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.2728, allocations: 32.45 kB / 452.4 MB, free: 4.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.977e-05/0.2728, allocations: 114.8 kB / 452.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.682e-05/0.2729, allocations: 57.34 kB / 452.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.859e-05/0.273, allocations: 44.42 kB / 452.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.471e-05/0.2731, allocations: 335.3 kB / 452.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.2732, allocations: 93.16 kB / 453 MB, free: 3.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.2734, allocations: 90.62 kB / 453.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/0.2738, allocations: 305.2 kB / 453.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2738, allocations: 0 / 453.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005224/0.2743, allocations: 395.2 kB / 453.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.2743, allocations: 70.41 kB / 453.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2743, allocations: 0 / 453.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.2744, allocations: 1.344 kB / 453.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.2745, allocations: 21.31 kB / 453.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.2745, allocations: 0 / 453.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.2746, allocations: 25.5 kB / 453.9 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.2746, allocations: 11.3 kB / 453.9 MB, free: 3.5 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.0001702/0.2748, allocations: 221.4 kB / 454.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.608e-05/0.2748, allocations: 19.84 kB / 454.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.352e-05/0.2749, allocations: 22.14 kB / 454.2 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2749, allocations: 5.875 kB / 454.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.2749, allocations: 1.125 kB / 454.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2749, allocations: 0.5625 kB / 454.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.2751, allocations: 260 kB / 454.4 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2751, allocations: 4 kB / 454.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.144e-05/0.2752, allocations: 10.91 kB / 454.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2752, allocations: 1.594 kB / 454.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.2752, allocations: 9.594 kB / 454.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2752, allocations: 1.375 kB / 454.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2752, allocations: 0.7969 kB / 454.5 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006005/0.2758, allocations: 468 kB / 454.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.122e-05/0.2758, allocations: 98.59 kB / 455 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/0.2759, allocations: 11.39 kB / 455 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.276, allocations: 10.98 kB / 455 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.919e-05/0.2761, allocations: 25.03 kB / 455.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.2761, allocations: 9.141 kB / 455.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.2762, allocations: 149.5 kB / 455.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2762, allocations: 0 / 455.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003699/0.2766, allocations: 85 kB / 455.3 MB, free: 2.57 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.0008553/0.2774, allocations: 1.051 MB / 456.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004736/0.2779, allocations: 344.7 kB / 456.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2779, allocations: 3.938 kB / 456.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.2781, allocations: 224.1 kB / 456.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.2784, allocations: 19.88 kB / 456.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.2812, allocations: 2.507 MB / 459.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.2816, allocations: 0.7276 MB / 460.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.64e-05/0.2816, allocations: 12.52 kB / 460.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.702e-05/0.2817, allocations: 46.39 kB / 460.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2817, allocations: 0 / 460.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.3095, allocations: 4.525 MB / 464.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.438/8.747, allocations: 13.17 kB / 464.8 MB, free: 12.79 MB / 334.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController2_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.975125533062965] Failed to read output from testmodel.py, exit status != 0: 8.816874386742711 8.831391367 8.559761782 Calling exit ...