Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Controls.PatientController.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.001486/0.001486, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001437/0.001437, allocations: 220.4 kB / 23.03 MB, free: 4.945 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.342/1.342, allocations: 207.7 MB / 233.9 MB, free: 9.781 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.009019/0.009019, allocations: 1.958 MB / 288.1 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.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="cs",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.002996/0.002996, allocations: 66.52 kB / 402.5 MB, free: 50.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.08312, allocations: 49.69 MB / 452.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001855/0.08498, allocations: 1.294 MB / 453.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001511/0.08513, allocations: 27.83 kB / 453.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.767e-05/0.08515, allocations: 0 / 453.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.929e-05/0.08518, allocations: 0 / 453.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.65e-05/0.08521, allocations: 4 kB / 453.6 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001447/0.08535, allocations: 15.97 kB / 453.6 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.713e-05/0.08542, allocations: 35.86 kB / 453.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.395e-05/0.08547, allocations: 416 / 453.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.975e-05/0.0855, allocations: 15.98 kB / 453.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.384e-05/0.08555, allocations: 19.91 kB / 453.6 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.08557, allocations: 0 / 453.6 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.076e-05/0.08558, allocations: 4 kB / 453.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.079e-05/0.0856, allocations: 3.984 kB / 453.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.24e-05/0.08564, allocations: 11.98 kB / 453.7 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.526e-05/0.08571, allocations: 23.84 kB / 453.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.08571, allocations: 4 kB / 453.7 MB, free: 4.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.08571, allocations: 4 kB / 453.7 MB, free: 4.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.08572, allocations: 0 / 453.7 MB, free: 4.645 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004459/0.08616, allocations: 266.4 kB / 453.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.0862, allocations: 15.98 kB / 454 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.814e-05/0.08624, allocations: 4.188 kB / 454 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.08627, allocations: 34.7 kB / 454 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.616e-05/0.08629, allocations: 4.938 kB / 454 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.044e-05/0.08633, allocations: 110.5 kB / 454.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.848e-05/0.08639, allocations: 63.91 kB / 454.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.08641, allocations: 4.375 kB / 454.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.08653, allocations: 53.8 kB / 454.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.08653, allocations: 0 / 454.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.08654, allocations: 7.984 kB / 454.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.08655, allocations: 0 / 454.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.217e-05/0.08662, allocations: 23.92 kB / 454.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002093/0.08683, allocations: 224 kB / 454.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.08695, allocations: 54.56 kB / 454.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.473e-05/0.08699, allocations: 16.84 kB / 454.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.087, allocations: 4.125 kB / 454.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001425/0.08715, allocations: 87.3 kB / 454.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.08715, allocations: 0 / 454.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003866/0.08753, allocations: 169.3 kB / 454.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.08756, allocations: 59.41 kB / 454.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.911e-05/0.0876, allocations: 89.86 kB / 455 MB, free: 3.199 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.08761, allocations: 33.7 kB / 455 MB, free: 3.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.91e-05/0.08763, allocations: 84.09 kB / 455.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.08765, allocations: 27.78 kB / 455.1 MB, free: 3.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.08768, allocations: 25.72 kB / 455.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.311e-05/0.08773, allocations: 326.8 kB / 455.4 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.284e-05/0.08778, allocations: 23.98 kB / 455.5 MB, free: 2.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.67e-05/0.08784, allocations: 51.36 kB / 455.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.407e-05/0.08793, allocations: 76.14 kB / 455.6 MB, free: 2.516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.08793, allocations: 3.938 kB / 455.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001424/0.08807, allocations: 105.5 kB / 455.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.527e-06/0.08808, allocations: 4 kB / 455.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.08809, allocations: 4 kB / 455.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.0881, allocations: 8.031 kB / 455.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.978e-05/0.08818, allocations: 16 kB / 455.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.08819, allocations: 3.984 kB / 455.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.21e-05/0.08825, allocations: 4 kB / 455.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.08825, allocations: 8 kB / 455.7 MB, free: 2.355 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition3,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 6.36e-05/0.08832, allocations: 121.7 kB / 455.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.175e-05/0.08833, allocations: 11.94 kB / 455.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.165e-05/0.08835, allocations: 8.062 kB / 455.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.08835, allocations: 0 / 455.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.08836, allocations: 4 kB / 455.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.08836, allocations: 4 kB / 455.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.08865, allocations: 331.2 kB / 456.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.08865, allocations: 0 / 456.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.277e-05/0.08868, allocations: 8 kB / 456.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.08869, allocations: 7.984 kB / 456.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.0887, allocations: 4 kB / 456.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.0887, allocations: 3.938 kB / 456.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.0887, allocations: 7.938 kB / 456.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.08885, allocations: 209.2 kB / 456.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.382e-06/0.08885, allocations: 7.953 kB / 456.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.08887, allocations: 0 / 456.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.252e-05/0.08895, allocations: 15.86 kB / 456.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.575e-05/0.08898, allocations: 11.98 kB / 456.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.08899, allocations: 4 kB / 456.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.49e-05/0.08901, allocations: 79.28 kB / 456.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.08901, allocations: 0 / 456.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000218/0.08922, allocations: 12.19 kB / 456.6 MB, free: 1.426 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition3,$whenCondition1,t_on,t_off,active) * Number of discrete states: 2 (active,t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.000352/0.08958, allocations: 0.7727 MB / 457.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.08973, allocations: 63.78 kB / 457.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.08973, allocations: 4 kB / 457.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.419e-05/0.08979, allocations: 31.97 kB / 457.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002056/0.09, allocations: 8.312 kB / 457.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.09154, allocations: 1.382 MB / 458.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.298e-05/0.09162, allocations: 67.34 kB / 458.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.214e-05/0.09167, allocations: 15.94 kB / 458.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.09172, allocations: 15.44 kB / 458.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.09172, allocations: 0 / 458.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.1117, allocations: 1.897 MB / 460.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/10.95, allocations: 4.062 kB / 460.8 MB, free: 12.96 MB / 334.1 MB " [Timeout remaining time 649] (rm -f MEV_MEV.Controls.PatientController.pipe ; mkfifo MEV_MEV.Controls.PatientController.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController.pipe >> ../files/MEV_MEV.Controls.PatientController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Controls_PatientController_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 MEV_MEV_Controls_PatientController.fmu > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.384329273947515] Failed to read output from testmodel.py, exit status != 0: 11.109771624091081 11.138215669 11.047410556 Calling exit ...