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.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.001795/0.001795, allocations: 104.3 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.001968/0.001968, 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.532/1.532, allocations: 207.6 MB / 229.8 MB, free: 4.25 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.01407/0.01407, allocations: 1.954 MB / 283.6 MB, free: 14.51 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.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",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.002114/0.002114, allocations: 67.91 kB / 396.5 MB, free: 8.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2578, allocations: 49.65 MB / 446.2 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.002192/0.2599, allocations: 1.286 MB / 447.5 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001491/0.2601, allocations: 29.52 kB / 447.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.523e-05/0.2601, allocations: 4 kB / 447.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.722e-05/0.2601, allocations: 0.75 kB / 447.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.566e-05/0.2602, allocations: 11.86 kB / 447.5 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001268/0.2603, allocations: 12.44 kB / 447.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.158e-05/0.2604, allocations: 23.73 kB / 447.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.172e-05/0.2604, allocations: 2.078 kB / 447.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.448e-05/0.2604, allocations: 14.02 kB / 447.6 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.793e-05/0.2605, allocations: 18.25 kB / 447.6 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.2605, allocations: 1.375 kB / 447.6 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.297e-06/0.2605, allocations: 2.75 kB / 447.6 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.2606, allocations: 8.141 kB / 447.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.881e-05/0.2606, allocations: 13.73 kB / 447.6 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.903e-05/0.2607, allocations: 24.88 kB / 447.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2607, allocations: 0 / 447.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2607, allocations: 1.375 kB / 447.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2607, allocations: 0 / 447.6 MB, free: 7.504 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.0004802/0.2611, allocations: 342.5 kB / 448 MB, free: 7.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2612, allocations: 17.48 kB / 448 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.986e-05/0.2612, allocations: 41.39 kB / 448 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.898e-05/0.2613, allocations: 8.328 kB / 448 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.754e-05/0.2613, allocations: 166.4 kB / 448.2 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.103e-05/0.2614, allocations: 30.42 kB / 448.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.2614, allocations: 3.875 kB / 448.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.2615, allocations: 52.61 kB / 448.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.2615, allocations: 1.75 kB / 448.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.2615, allocations: 4.562 kB / 448.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2615, allocations: 9.219 kB / 448.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.118e-05/0.2616, allocations: 15.8 kB / 448.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002958/0.2619, allocations: 259.9 kB / 448.6 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.686e-05/0.262, allocations: 37.52 kB / 448.6 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.993e-05/0.262, allocations: 14.39 kB / 448.6 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.262, allocations: 4.797 kB / 448.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001927/0.2622, allocations: 79.52 kB / 448.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.2622, allocations: 1.188 kB / 448.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000244/0.2625, allocations: 100.1 kB / 448.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.2625, allocations: 54.75 kB / 448.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.899e-05/0.2626, allocations: 106.1 kB / 449 MB, free: 6.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.2626, allocations: 26.8 kB / 449 MB, free: 6.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.051e-05/0.2626, allocations: 91.05 kB / 449.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.227e-05/0.2626, allocations: 16.44 kB / 449.1 MB, free: 6.082 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.2626, allocations: 26.25 kB / 449.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.865e-05/0.2627, allocations: 317.5 kB / 449.4 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.443e-05/0.2627, allocations: 18.39 kB / 449.4 MB, free: 5.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.783e-05/0.2628, allocations: 48.2 kB / 449.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.949e-05/0.2629, allocations: 50.75 kB / 449.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2629, allocations: 1.438 kB / 449.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001465/0.263, allocations: 92.52 kB / 449.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.263, allocations: 8.656 kB / 449.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.263, allocations: 1.797 kB / 449.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2631, allocations: 1.219 kB / 449.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.442e-05/0.2631, allocations: 12.61 kB / 449.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.2631, allocations: 1.875 kB / 449.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.567e-05/0.2632, allocations: 7.812 kB / 449.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.2632, allocations: 10.47 kB / 449.7 MB, free: 5.598 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,active,$PRE.active,t_off,$PRE.t_off,t_on,$PRE.t_on,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 4.991e-05/0.2633, allocations: 115.2 kB / 449.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.179e-05/0.2633, allocations: 14.09 kB / 449.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.966e-05/0.2633, allocations: 7.953 kB / 449.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.2633, allocations: 1.906 kB / 449.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2633, allocations: 0 / 449.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2633, allocations: 1.188 kB / 449.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.016e-05/0.2634, allocations: 162.3 kB / 450 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2634, allocations: 0.8438 kB / 450 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.68e-05/0.2634, allocations: 7.969 kB / 450 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2634, allocations: 5.062 kB / 450 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.2634, allocations: 4.984 kB / 450 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2634, allocations: 5.094 kB / 450 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.2634, allocations: 0.8438 kB / 450 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.2636, allocations: 111.4 kB / 450.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.632e-05/0.2636, allocations: 83.05 kB / 450.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.2636, allocations: 1.625 kB / 450.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.05e-05/0.2636, allocations: 6.406 kB / 450.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.315e-05/0.2637, allocations: 12.23 kB / 450.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.2637, allocations: 6.5 kB / 450.2 MB, free: 5.059 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.652e-05/0.2637, allocations: 77.11 kB / 450.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2637, allocations: 3.938 kB / 450.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001868/0.2639, allocations: 10.22 kB / 450.3 MB, free: 4.98 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,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 (7): * Single equations (assignments): 4 * 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.0003563/0.2643, allocations: 0.6643 MB / 451 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.2644, allocations: 57.92 kB / 451 MB, free: 4.344 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2644, allocations: 0 / 451 MB, free: 4.344 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.353e-05/0.2645, allocations: 26.95 kB / 451 MB, free: 4.336 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.2646, allocations: 11.17 kB / 451.1 MB, free: 4.328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008558/0.2655, allocations: 1.237 MB / 452.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.264e-05/0.2656, allocations: 0.6797 MB / 453 MB, free: 2.457 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.89e-05/0.2656, allocations: 4.75 kB / 453 MB, free: 2.457 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.406e-05/0.2656, allocations: 14.88 kB / 453 MB, free: 2.445 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2656, allocations: 4 kB / 453 MB, free: 2.441 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.2891, allocations: 1.516 MB / 454.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.151/8.44, allocations: 10.27 kB / 454.5 MB, free: 1.949 MB / 318.1 MB " [Timeout remaining time 651] (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: 10.878372446633875] Failed to read output from testmodel.py, exit status != 0: 8.506895164959133 8.528980586 8.264057235 Calling exit ...