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.001656/0.001656, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002285/0.002285, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.431/1.431, allocations: 207.7 MB / 233.1 MB, free: 9.773 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.01034/0.01034, allocations: 1.97 MB / 287.3 MB, free: 3.664 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.002137/0.002137, allocations: 70.23 kB / 401.8 MB, free: 50.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07929/0.08142, allocations: 49.71 MB / 451.5 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001818/0.08324, allocations: 1.272 MB / 452.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001541/0.0834, allocations: 27.89 kB / 452.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.645e-05/0.08342, allocations: 0 / 452.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.473e-05/0.08345, allocations: 3.938 kB / 452.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.24e-05/0.08348, allocations: 4 kB / 452.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001339/0.08361, allocations: 15.97 kB / 452.8 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.538e-05/0.08368, allocations: 23.98 kB / 452.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.638e-05/0.08373, allocations: 4.406 kB / 452.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.433e-05/0.08376, allocations: 11.98 kB / 452.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.623e-05/0.08382, allocations: 23.89 kB / 452.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.08383, allocations: 0 / 452.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.08384, allocations: 4 kB / 452.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.912e-05/0.08386, allocations: 7.938 kB / 452.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.0839, allocations: 11.92 kB / 452.9 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.139e-05/0.08396, allocations: 19.91 kB / 452.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.08397, allocations: 0 / 452.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.08397, allocations: 4 kB / 452.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.08397, allocations: 4 kB / 452.9 MB, free: 4.527 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.0004363/0.08441, allocations: 270.4 kB / 453.2 MB, free: 4.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.08444, allocations: 11.98 kB / 453.2 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.08448, allocations: 42.64 kB / 453.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.08451, allocations: 0.9375 kB / 453.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.346e-05/0.08455, allocations: 110.5 kB / 453.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.272e-05/0.0846, allocations: 63.97 kB / 453.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.08461, allocations: 8.375 kB / 453.4 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.08473, allocations: 49.98 kB / 453.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.08473, allocations: 0 / 453.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.08474, allocations: 4 kB / 453.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.08475, allocations: 3.938 kB / 453.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.615e-05/0.08481, allocations: 27.91 kB / 453.5 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002723/0.08509, allocations: 228 kB / 453.7 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.418e-05/0.08518, allocations: 34.56 kB / 453.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.898e-05/0.08522, allocations: 20.94 kB / 453.8 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.08523, allocations: 0 / 453.8 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001519/0.08538, allocations: 87.28 kB / 453.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.08538, allocations: 0 / 453.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002305/0.08561, allocations: 97.61 kB / 453.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.08564, allocations: 55.41 kB / 454 MB, free: 3.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.177e-05/0.08568, allocations: 93.86 kB / 454.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.08569, allocations: 33.83 kB / 454.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.973e-05/0.08571, allocations: 88.03 kB / 454.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.274e-05/0.08572, allocations: 23.88 kB / 454.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.08576, allocations: 21.72 kB / 454.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.591e-05/0.0858, allocations: 326.7 kB / 454.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.868e-05/0.08585, allocations: 16 kB / 454.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.263e-05/0.0859, allocations: 42.55 kB / 454.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.456e-05/0.08599, allocations: 62.8 kB / 454.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.08599, allocations: 4 kB / 454.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001248/0.08611, allocations: 89.56 kB / 454.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.08612, allocations: 4 kB / 454.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.08613, allocations: 0 / 454.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.08614, allocations: 0 / 454.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.442e-05/0.08621, allocations: 8 kB / 454.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.08621, allocations: 0 / 454.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.922e-05/0.08627, allocations: 11.98 kB / 454.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.08628, allocations: 4.062 kB / 454.8 MB, free: 2.395 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 5.598e-05/0.08633, allocations: 118 kB / 454.9 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-06/0.08634, allocations: 11.89 kB / 454.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.108e-05/0.08636, allocations: 15.98 kB / 454.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.08637, allocations: 0 / 454.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.08637, allocations: 0 / 454.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.08637, allocations: 0 / 454.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.987e-05/0.08643, allocations: 140.6 kB / 455.1 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.08643, allocations: 0 / 455.1 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.439e-05/0.08646, allocations: 7.938 kB / 455.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.08646, allocations: 4 kB / 455.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.08647, allocations: 0 / 455.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.08647, allocations: 8 kB / 455.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.08647, allocations: 0 / 455.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.0866, allocations: 109 kB / 455.2 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.141e-06/0.08661, allocations: 7.953 kB / 455.2 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.08662, allocations: 4 kB / 455.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.559e-05/0.08667, allocations: 7.984 kB / 455.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.08671, allocations: 11.92 kB / 455.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.08672, allocations: 8 kB / 455.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.989e-05/0.08674, allocations: 79.28 kB / 455.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of sort global known variables: time 5e-08/0.08674, allocations: 0 / 455.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001812/0.08692, allocations: 8 kB / 455.3 MB, free: 1.785 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.0003642/0.08728, allocations: 0.6632 MB / 456 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001465/0.08743, allocations: 51.91 kB / 456 MB, free: 1.043 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.08743, allocations: 0 / 456 MB, free: 1.043 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.931e-05/0.08749, allocations: 32.2 kB / 456.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.08762, allocations: 4 kB / 456.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.08863, allocations: 1.238 MB / 457.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.799e-05/0.0887, allocations: 63.3 kB / 457.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.98e-05/0.08873, allocations: 7.984 kB / 457.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.569e-05/0.08878, allocations: 15.44 kB / 457.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.08878, allocations: 0 / 457.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.114, allocations: 2.067 MB / 459.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.68, allocations: 7.938 kB / 459.5 MB, free: 13.45 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.221541163977236] Failed to read output from testmodel.py, exit status != 0: 10.787836205214262 10.811987091 10.72385862 Calling exit ...