Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController1.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.001395/0.001395, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001508/0.001508, allocations: 219.1 kB / 23.03 MB, free: 4.922 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.382/1.382, allocations: 207.7 MB / 233.9 MB, free: 9.77 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.009665/0.009665, allocations: 1.962 MB / 288.1 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.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",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.002156/0.002156, allocations: 76.08 kB / 402.5 MB, free: 50.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.08085, allocations: 49.7 MB / 452.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002185/0.08304, allocations: 1.502 MB / 453.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009383/0.08398, allocations: 0.6979 MB / 454.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.741e-05/0.08404, allocations: 0 / 454.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.08417, allocations: 51.8 kB / 454.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.065e-05/0.08426, allocations: 71.78 kB / 454.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.08475, allocations: 175.5 kB / 454.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.08491, allocations: 155.7 kB / 454.9 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.831e-05/0.085, allocations: 11.92 kB / 454.9 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.839e-05/0.08509, allocations: 79.75 kB / 455 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.08523, allocations: 119.7 kB / 455.1 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.08526, allocations: 8 kB / 455.1 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.08542, allocations: 151.9 kB / 455.3 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.969e-05/0.08548, allocations: 35.8 kB / 455.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.586e-05/0.08555, allocations: 55.72 kB / 455.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.0858, allocations: 223.3 kB / 455.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.08581, allocations: 0 / 455.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.08581, allocations: 0 / 455.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.08581, allocations: 4 kB / 455.6 MB, free: 2.742 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006321/0.08645, allocations: 464.8 kB / 456 MB, free: 2.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.08648, allocations: 11.98 kB / 456 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.432e-05/0.0865, allocations: 4.188 kB / 456 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.574e-05/0.08652, allocations: 42.73 kB / 456.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.577e-05/0.08657, allocations: 16.84 kB / 456.1 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.08677, allocations: 160.5 kB / 456.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.125e-05/0.08682, allocations: 63.95 kB / 456.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.08685, allocations: 16.12 kB / 456.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.0871, allocations: 197 kB / 456.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.08711, allocations: 0 / 456.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.08712, allocations: 7.984 kB / 456.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.08713, allocations: 0 / 456.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.08731, allocations: 155.3 kB / 456.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004056/0.08771, allocations: 319.8 kB / 457 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.08795, allocations: 178 kB / 457.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.08808, allocations: 144.2 kB / 457.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.0881, allocations: 4 kB / 457.3 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.08839, allocations: 310 kB / 457.6 MB, free: 472 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.08839, allocations: 0 / 457.6 MB, free: 472 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007221/0.08911, allocations: 0.5779 MB / 458.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.485e-05/0.0892, allocations: 110.8 kB / 458.3 MB, free: 15.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.08937, allocations: 183.3 kB / 458.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.08942, allocations: 41.64 kB / 458.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.296e-05/0.0895, allocations: 112.5 kB / 458.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.148e-05/0.08957, allocations: 55.53 kB / 458.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.504e-05/0.08965, allocations: 45.7 kB / 458.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.0898, allocations: 334.8 kB / 459.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.09001, allocations: 151.5 kB / 459.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.0902, allocations: 151.8 kB / 459.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.09057, allocations: 293.7 kB / 459.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.09057, allocations: 4 kB / 459.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000594/0.09117, allocations: 464.4 kB / 460.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.891e-05/0.09124, allocations: 71.39 kB / 460.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.09124, allocations: 0 / 460.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.09126, allocations: 0 / 460.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.09137, allocations: 27.92 kB / 460.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.09138, allocations: 0 / 460.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.0915, allocations: 15.94 kB / 460.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.09153, allocations: 15.94 kB / 460.2 MB, free: 13.65 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 23 (dutyCycle.nextEventScaled,dutyCycle.nextEvent,$PRE.dutyCycle.nextEvent,dutyCycle.last,dutyCycle.b,dutyCycle.a,RR.nextEventScaled,RR.nextEvent,$PRE.RR.nextEvent,RR.last,RR.b,RR.a,patientController.active,$PRE.patientController.active,patientController.t_off,$PRE.patientController.t_off,patientController.t_on,$PRE.patientController.t_on,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0002139/0.09175, allocations: 215 kB / 460.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.09178, allocations: 19.91 kB / 460.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.323e-05/0.09184, allocations: 25.91 kB / 460.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.09184, allocations: 0 / 460.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.09184, allocations: 0 / 460.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.09185, allocations: 0 / 460.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002109/0.09206, allocations: 208.5 kB / 460.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.09206, allocations: 0 / 460.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.095e-05/0.09211, allocations: 11.94 kB / 460.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.09211, allocations: 0 / 460.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.09214, allocations: 11.98 kB / 460.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.09214, allocations: 8 kB / 460.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.09214, allocations: 0 / 460.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006851/0.09283, allocations: 0.5072 MB / 461.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.621e-05/0.09285, allocations: 15.84 kB / 461.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.0929, allocations: 15.98 kB / 461.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.09301, allocations: 15.92 kB / 461.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.162e-05/0.09308, allocations: 11.98 kB / 461.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.09312, allocations: 15.98 kB / 461.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.09326, allocations: 139.2 kB / 461.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09327, allocations: 4 kB / 461.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003154/0.09358, allocations: 79.89 kB / 461.5 MB, free: 12.25 MB / 334.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: 18 ($whenCondition3,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition5,patientController.t_on,patientController.t_off,patientController.active,RR.a,RR.b,RR.last,RR.nextEvent,RR.nextEventScaled,dutyCycle.a,dutyCycle.b,dutyCycle.last,dutyCycle.nextEvent,dutyCycle.nextEventScaled) * Number of discrete states: 14 (dutyCycle.nextEvent,dutyCycle.last,dutyCycle.nextEventScaled,dutyCycle.b,dutyCycle.a,$whenCondition4,RR.nextEvent,RR.last,RR.nextEventScaled,RR.b,RR.a,$whenCondition5,patientController.active,patientController.t_on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.001163/0.09474, allocations: 1.103 MB / 462.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006252/0.09537, allocations: 473.4 kB / 463.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.09537, allocations: 0 / 463.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003209/0.09569, allocations: 294.1 kB / 463.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.09593, allocations: 19.94 kB / 463.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.09923, allocations: 2.756 MB / 466.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.09934, allocations: 106.4 kB / 466.2 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.787e-05/0.09938, allocations: 16.48 kB / 466.3 MB, free: 7.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.246e-05/0.09946, allocations: 43.36 kB / 466.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of SimCode: time 5.92e-07/0.09946, allocations: 0 / 466.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.1247, allocations: 4.797 MB / 471.1 MB, free: 2.281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.07, allocations: 12.02 kB / 471.1 MB, free: 2.27 MB / 334.1 MB " [Timeout remaining time 649] (rm -f MEV_MEV.Test.TestPatientController1.pipe ; mkfifo MEV_MEV.Test.TestPatientController1.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController1.pipe >> ../files/MEV_MEV.Test.TestPatientController1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController1_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.57249947998207] Failed to read output from testmodel.py, exit status != 0: 11.23181901697535 11.248396673 11.159412885 Calling exit ...