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.0009201/0.0009201, allocations: 84.44 kB / 19.18 MB, free: 0.7383 MB / 13.93 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.0009099/0.0009099, allocations: 173.9 kB / 22.46 MB, free: 2.102 MB / 18.57 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 0.783/0.783, allocations: 158.6 MB / 184.2 MB, free: 3.051 MB / 170.7 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.005781/0.005781, allocations: 1.431 MB / 237.9 MB, free: 13.92 MB / 234.7 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: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Controls.PatientController,fileNamePrefix="MEV_MEV_Controls_PatientController",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.023e-06/2.023e-06, allocations: 0 / 354 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.406e-05, allocations: 6.219 kB / 354 MB, free: 15.06 MB / 282.7 MB Notification: Performance of NFInst.instantiate(MEV.Controls.PatientController): time 0.001241/0.001255, allocations: 1.279 MB / 355.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001316/0.001387, allocations: 28.38 kB / 355.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.359e-05/0.00141, allocations: 0 / 355.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.45e-05/0.001435, allocations: 3.938 kB / 355.3 MB, free: 13.73 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.575e-05/0.001461, allocations: 0 / 355.3 MB, free: 13.73 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001307/0.001591, allocations: 15.97 kB / 355.3 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.616e-05/0.001657, allocations: 27.91 kB / 355.4 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.945e-05/0.001697, allocations: 0 / 355.4 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.883e-05/0.001746, allocations: 15.98 kB / 355.4 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.955e-05/0.001795, allocations: 23.95 kB / 355.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.001812, allocations: 0 / 355.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.977e-06/0.001821, allocations: 4 kB / 355.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.001841, allocations: 4 kB / 355.4 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.001883, allocations: 15.92 kB / 355.4 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 6.554e-05/0.001949, allocations: 23.89 kB / 355.5 MB, free: 13.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.442e-06/0.00195, allocations: 0 / 355.5 MB, free: 13.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.001951, allocations: 0 / 355.5 MB, free: 13.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.001955, allocations: 0 / 355.5 MB, free: 13.61 MB / 282.7 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.0003481/0.002303, allocations: 278.4 kB / 355.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.002336, allocations: 15.97 kB / 355.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.002382, allocations: 42.7 kB / 355.8 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.002406, allocations: 0.9375 kB / 355.8 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.624e-05/0.002442, allocations: 109.7 kB / 355.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.594e-05/0.002488, allocations: 59.95 kB / 355.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.002497, allocations: 384 / 355.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.216e-05/0.002589, allocations: 54.23 kB / 356 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.002595, allocations: 192 / 356 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.002602, allocations: 384 / 356 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.002607, allocations: 11.94 kB / 356 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.207e-05/0.002649, allocations: 11.98 kB / 356 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002304/0.002879, allocations: 224 kB / 356.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.07e-05/0.00295, allocations: 38.56 kB / 356.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.588e-05/0.002976, allocations: 16.94 kB / 356.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-06/0.002982, allocations: 7.938 kB / 356.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.003083, allocations: 87.31 kB / 356.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.003084, allocations: 0 / 356.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001636/0.003248, allocations: 101.6 kB / 356.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.003269, allocations: 55.41 kB / 356.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.633e-05/0.003306, allocations: 97.84 kB / 356.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.915e-06/0.003313, allocations: 29.7 kB / 356.7 MB, free: 12.2 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.477e-05/0.003328, allocations: 95.97 kB / 356.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.265e-06/0.003336, allocations: 11.91 kB / 356.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.423e-05/0.003361, allocations: 33.64 kB / 356.8 MB, free: 12.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 2.561e-05/0.003386, allocations: 315 kB / 357.1 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.102e-05/0.003417, allocations: 19.98 kB / 357.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.433e-05/0.003452, allocations: 38.56 kB / 357.2 MB, free: 11.67 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.667e-05/0.003508, allocations: 54.5 kB / 357.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.00351, allocations: 4 kB / 357.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.873e-05/0.003589, allocations: 93.48 kB / 357.3 MB, free: 11.51 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.003599, allocations: 12.06 kB / 357.3 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.003603, allocations: 0 / 357.3 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.003613, allocations: 0 / 357.3 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.673e-05/0.00366, allocations: 15.92 kB / 357.3 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.003664, allocations: 0 / 357.3 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.198e-05/0.003696, allocations: 15.98 kB / 357.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-06/0.003702, allocations: 0 / 357.4 MB, free: 11.46 MB / 282.7 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 3.84e-05/0.00374, allocations: 117.8 kB / 357.5 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.583e-06/0.003747, allocations: 11.89 kB / 357.5 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.339e-05/0.00376, allocations: 4.125 kB / 357.5 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.003761, allocations: 4 kB / 357.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.003764, allocations: 0 / 357.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.003767, allocations: 0 / 357.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.305e-05/0.00381, allocations: 132.8 kB / 357.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.003811, allocations: 3.938 kB / 357.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.14e-05/0.003822, allocations: 7.984 kB / 357.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.003823, allocations: 0 / 357.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.003829, allocations: 0 / 357.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.003829, allocations: 0 / 357.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.00383, allocations: 4 kB / 357.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.988e-05/0.00391, allocations: 121 kB / 357.8 MB, free: 11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.047e-06/0.003914, allocations: 7.891 kB / 357.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.019e-05/0.003924, allocations: 4 kB / 357.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.228e-05/0.003946, allocations: 7.984 kB / 357.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.003984, allocations: 7.984 kB / 357.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.003988, allocations: 4 kB / 357.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.06e-05/0.003999, allocations: 79.28 kB / 357.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003999, allocations: 192 / 357.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001209/0.00412, allocations: 8 kB / 357.9 MB, free: 10.88 MB / 282.7 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.0001954/0.004315, allocations: 0.6714 MB / 358.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.127e-05/0.004407, allocations: 51.98 kB / 358.6 MB, free: 10.13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-06/0.004408, allocations: 0 / 358.6 MB, free: 10.13 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.499e-05/0.004443, allocations: 28.12 kB / 358.6 MB, free: 10.11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.462e-05/0.004537, allocations: 4 kB / 358.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00065/0.005187, allocations: 1.254 MB / 359.9 MB, free: 8.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.427e-05/0.005211, allocations: 63.34 kB / 359.9 MB, free: 8.668 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.118e-05/0.005233, allocations: 7.984 kB / 360 MB, free: 8.66 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.005264, allocations: 12.5 kB / 360 MB, free: 8.648 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.005264, allocations: 0 / 360 MB, free: 8.648 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06668/0.07195, allocations: 2.297 MB / 362.3 MB, free: 6.316 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.897/6.969, allocations: 7.922 kB / 362.3 MB, free: 6.309 MB / 282.7 MB " [Timeout remaining time 653] (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 & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_MEV_MEV_Controls_PatientController_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --mode=me --timeout=240 --tolerance=1e-06 ../MEV_MEV_Controls_PatientController.fmu) > MEV_MEV.Controls.PatientController.pipe 2>&1) [Timeout 252.0] (rm -f MEV_MEV.Controls.PatientController_OMSimulator-cs-cvode.pipe ; mkfifo MEV_MEV.Controls.PatientController_OMSimulator-cs-cvode.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController_OMSimulator-cs-cvode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/MEV_MEV.Controls.PatientController_OMSimulator-cs-cvode.sim & (cd run_OMSimulator-cs-cvode && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_MEV_MEV_Controls_PatientController_OMSimulator-cs-cvode_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --mode=cs --timeout=240 --tolerance=1e-06 ../MEV_MEV_Controls_PatientController_OMSimulator-cs-cvode.fmu) > MEV_MEV.Controls.PatientController_OMSimulator-cs-cvode.pipe 2>&1) [Timeout 252.0] (rm -f MEV_MEV.Controls.PatientController_OMSimulator-cs-euler.pipe ; mkfifo MEV_MEV.Controls.PatientController_OMSimulator-cs-euler.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController_OMSimulator-cs-euler.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/MEV_MEV.Controls.PatientController_OMSimulator-cs-euler.sim & (cd run_OMSimulator-cs-euler && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_MEV_MEV_Controls_PatientController_OMSimulator-cs-euler_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --mode=cs --timeout=240 --tolerance=1e-06 ../MEV_MEV_Controls_PatientController_OMSimulator-cs-euler.fmu) > MEV_MEV.Controls.PatientController_OMSimulator-cs-euler.pipe 2>&1) [Timeout 252.0] (rm -f MEV_MEV.Controls.PatientController_fmpy.pipe ; mkfifo MEV_MEV.Controls.PatientController_fmpy.pipe ; head -c 1048576 < MEV_MEV.Controls.PatientController_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/MEV_MEV.Controls.PatientController_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../MEV_MEV.Controls.PatientController_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 240 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ../MEV_MEV_Controls_PatientController.fmu) > MEV_MEV.Controls.PatientController_fmpy.pipe 2>&1) [Timeout 252.0] [Calling sys.exit(0), Time elapsed: 9.238102866336703]