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.001351/0.001351, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.0016/0.0016, allocations: 214.8 kB / 22.25 MB, free: 5.082 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.482/1.482, allocations: 207.6 MB / 233 MB, free: 10 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.009947/0.009947, allocations: 1.977 MB / 287.3 MB, free: 3.961 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="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.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.002164/0.002164, allocations: 73.2 kB / 401.8 MB, free: 50.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07341/0.07557, allocations: 49.7 MB / 451.5 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001823/0.0774, allocations: 1.287 MB / 452.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001368/0.07753, allocations: 31.89 kB / 452.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.705e-05/0.07756, allocations: 0 / 452.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.779e-05/0.07759, allocations: 0 / 452.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.947e-05/0.07762, allocations: 7.875 kB / 452.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001276/0.07774, allocations: 15.98 kB / 452.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.105e-05/0.07781, allocations: 23.97 kB / 452.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.293e-05/0.07785, allocations: 4.406 kB / 452.8 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.233e-05/0.07788, allocations: 11.98 kB / 452.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.31e-05/0.07793, allocations: 19.92 kB / 452.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.07795, allocations: 0 / 452.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.268e-06/0.07796, allocations: 4 kB / 452.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.841e-05/0.07798, allocations: 7.984 kB / 452.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.518e-05/0.07801, allocations: 15.92 kB / 452.9 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 5.847e-05/0.07807, allocations: 15.91 kB / 452.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.07807, allocations: 4 kB / 452.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.07807, allocations: 0 / 452.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.07808, allocations: 0 / 452.9 MB, free: 4.855 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.0004357/0.07851, allocations: 274.4 kB / 453.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.07855, allocations: 11.98 kB / 453.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.07859, allocations: 42.62 kB / 453.2 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.655e-05/0.07862, allocations: 4.938 kB / 453.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.399e-05/0.07866, allocations: 106.5 kB / 453.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.07872, allocations: 59.97 kB / 453.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-06/0.07873, allocations: 4.375 kB / 453.4 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.07884, allocations: 53.98 kB / 453.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.07885, allocations: 0 / 453.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.07885, allocations: 3.984 kB / 453.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.07886, allocations: 3.938 kB / 453.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.5e-05/0.07892, allocations: 19.98 kB / 453.5 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002658/0.07919, allocations: 239.9 kB / 453.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.432e-05/0.07928, allocations: 38.55 kB / 453.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.722e-05/0.07932, allocations: 12.86 kB / 453.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.07933, allocations: 3.984 kB / 453.8 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001471/0.07948, allocations: 79.45 kB / 453.8 MB, free: 3.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.07948, allocations: 3.938 kB / 453.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002201/0.0797, allocations: 105.8 kB / 454 MB, free: 3.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.07973, allocations: 55.41 kB / 454 MB, free: 3.586 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.307e-05/0.07977, allocations: 97.86 kB / 454.1 MB, free: 3.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.07978, allocations: 25.7 kB / 454.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.843e-05/0.0798, allocations: 96.14 kB / 454.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.064e-05/0.07981, allocations: 15.91 kB / 454.2 MB, free: 3.336 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.07984, allocations: 29.66 kB / 454.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.995e-05/0.07988, allocations: 318.8 kB / 454.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.019e-05/0.07993, allocations: 19.98 kB / 454.6 MB, free: 2.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.073e-05/0.07998, allocations: 38.5 kB / 454.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.784e-05/0.08007, allocations: 62.55 kB / 454.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.08007, allocations: 0 / 454.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001341/0.08021, allocations: 89.56 kB / 454.8 MB, free: 2.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.08022, allocations: 4 kB / 454.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.08022, allocations: 4 kB / 454.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.08024, allocations: 0 / 454.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.36e-05/0.08031, allocations: 19.98 kB / 454.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.363e-06/0.08032, allocations: 0 / 454.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.276e-05/0.08038, allocations: 4 kB / 454.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.08039, allocations: 4 kB / 454.8 MB, free: 2.715 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 6.163e-05/0.08045, allocations: 121.8 kB / 454.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-06/0.08046, allocations: 3.953 kB / 454.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.278e-05/0.08048, allocations: 8.062 kB / 454.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.08049, allocations: 4 kB / 455 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.08049, allocations: 8 kB / 455 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.08049, allocations: 0 / 455 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.651e-05/0.08057, allocations: 140.6 kB / 455.1 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.08057, allocations: 0 / 455.1 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.542e-05/0.0806, allocations: 7.875 kB / 455.1 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.0806, allocations: 4 kB / 455.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.08061, allocations: 0 / 455.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.08061, allocations: 0 / 455.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.08061, allocations: 0 / 455.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001491/0.08076, allocations: 117 kB / 455.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.985e-06/0.08077, allocations: 11.95 kB / 455.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.08078, allocations: 0 / 455.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.893e-05/0.08083, allocations: 7.984 kB / 455.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.08088, allocations: 7.984 kB / 455.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.08088, allocations: 4 kB / 455.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.347e-05/0.0809, allocations: 79.28 kB / 455.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.0809, allocations: 4.094 kB / 455.3 MB, free: 2.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001851/0.08109, allocations: 8 kB / 455.3 MB, free: 2.109 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.0003619/0.08145, allocations: 0.6633 MB / 456 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.0816, allocations: 64.02 kB / 456.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.0816, allocations: 0 / 456.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.062e-05/0.08166, allocations: 23.98 kB / 456.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.08179, allocations: 0 / 456.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008184/0.08261, allocations: 1.239 MB / 457.3 MB, free: 0 / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.08295, allocations: 0.6807 MB / 458 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.694e-05/0.08298, allocations: 3.984 kB / 458 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.022e-05/0.08302, allocations: 15.44 kB / 458 MB, free: 15.27 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.08302, allocations: 0 / 458 MB, free: 15.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02665/0.1097, allocations: 1.699 MB / 459.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.08, allocations: 4 kB / 459.7 MB, free: 13.53 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.631823051022366] Failed to read output from testmodel.py, exit status != 0: 11.177980320993811 11.206015594 11.122605526 Calling exit ...