Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientController2.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.00131/0.00131, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001651/0.001651, allocations: 218.7 kB / 23.03 MB, free: 4.949 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.793 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.009032/0.009032, allocations: 1.958 MB / 288.1 MB, free: 3.672 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.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",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.002072/0.002072, allocations: 75.42 kB / 402.6 MB, free: 50.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07371, allocations: 49.7 MB / 452.3 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.002127/0.07584, allocations: 1.506 MB / 453.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008738/0.07671, allocations: 0.6979 MB / 454.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.471e-05/0.07678, allocations: 4 kB / 454.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.0769, allocations: 71.77 kB / 454.5 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.322e-05/0.07699, allocations: 63.78 kB / 454.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004769/0.07747, allocations: 171.5 kB / 454.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.07763, allocations: 159.6 kB / 454.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.016e-05/0.07771, allocations: 15.92 kB / 454.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.502e-05/0.07779, allocations: 79.8 kB / 455 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.07794, allocations: 123.7 kB / 455.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.07797, allocations: 8 kB / 455.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.07813, allocations: 163.8 kB / 455.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.861e-05/0.07818, allocations: 35.84 kB / 455.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.978e-05/0.07825, allocations: 51.72 kB / 455.4 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.07848, allocations: 235.2 kB / 455.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.07849, allocations: 0 / 455.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.07849, allocations: 3.938 kB / 455.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.07849, allocations: 8 kB / 455.6 MB, free: 2.688 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.000626/0.07912, allocations: 472.6 kB / 456.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.07915, allocations: 15.98 kB / 456.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.503e-05/0.07917, allocations: 192 / 456.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.466e-05/0.07919, allocations: 38.75 kB / 456.1 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.07924, allocations: 20.84 kB / 456.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.07941, allocations: 170.2 kB / 456.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.044e-05/0.07946, allocations: 59.97 kB / 456.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.07949, allocations: 16.12 kB / 456.4 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.07972, allocations: 197 kB / 456.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.07973, allocations: 0 / 456.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.07975, allocations: 8 kB / 456.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.07975, allocations: 3.938 kB / 456.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.07993, allocations: 159.3 kB / 456.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00037/0.0803, allocations: 315.8 kB / 457.1 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.08052, allocations: 185.9 kB / 457.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.08065, allocations: 148.2 kB / 457.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.08066, allocations: 0 / 457.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002742/0.08094, allocations: 309.9 kB / 457.7 MB, free: 388 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.08094, allocations: 0 / 457.7 MB, free: 388 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007134/0.08165, allocations: 0.5896 MB / 458.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.861e-05/0.08174, allocations: 118.8 kB / 458.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.08192, allocations: 206.7 kB / 458.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.08195, allocations: 29.7 kB / 458.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.114e-05/0.08202, allocations: 112.6 kB / 458.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/0.08208, allocations: 55.53 kB / 458.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.75e-05/0.08216, allocations: 45.7 kB / 458.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.08231, allocations: 338.8 kB / 459.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.08252, allocations: 151.6 kB / 459.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.08271, allocations: 157.5 kB / 459.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00036/0.08307, allocations: 300.8 kB / 459.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.08307, allocations: 4 kB / 459.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005916/0.08366, allocations: 485.8 kB / 460.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.923e-05/0.08373, allocations: 71.39 kB / 460.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.08374, allocations: 0 / 460.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.08375, allocations: 0 / 460.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.08385, allocations: 19.98 kB / 460.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.08386, allocations: 0 / 460.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.08398, allocations: 19.94 kB / 460.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.084, allocations: 15.88 kB / 460.4 MB, free: 13.5 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.0001961/0.0842, allocations: 222.9 kB / 460.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.778e-05/0.08424, allocations: 23.89 kB / 460.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.075e-05/0.08428, allocations: 21.95 kB / 460.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.08428, allocations: 0 / 460.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.08428, allocations: 0 / 460.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.08429, allocations: 0 / 460.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.08449, allocations: 212.5 kB / 460.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.08449, allocations: 0 / 460.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.069e-05/0.08454, allocations: 8 kB / 460.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.08454, allocations: 7.922 kB / 460.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.08457, allocations: 16 kB / 460.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.08457, allocations: 0 / 460.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.08457, allocations: 0 / 460.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006736/0.08524, allocations: 0.5267 MB / 461.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.663e-05/0.08527, allocations: 19.8 kB / 461.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.08532, allocations: 12 kB / 461.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.08542, allocations: 11.98 kB / 461.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/0.08548, allocations: 15.97 kB / 461.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.08552, allocations: 12 kB / 461.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001201/0.08564, allocations: 152.2 kB / 461.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.08564, allocations: 0 / 461.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002843/0.08592, allocations: 79.92 kB / 461.7 MB, free: 12.06 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.001097/0.08702, allocations: 1.115 MB / 462.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005879/0.08761, allocations: 473.9 kB / 463.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.08761, allocations: 0 / 463.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.08792, allocations: 302.1 kB / 463.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.08814, allocations: 23.92 kB / 463.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003121/0.09126, allocations: 2.847 MB / 466.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.09137, allocations: 118.4 kB / 466.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.051e-05/0.09141, allocations: 8.5 kB / 466.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.462e-05/0.09149, allocations: 47.41 kB / 466.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.09149, allocations: 3.938 kB / 466.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.1151, allocations: 4.924 MB / 471.5 MB, free: 1.836 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.06, allocations: 3.953 kB / 471.5 MB, free: 1.832 MB / 334.1 MB " [Timeout remaining time 649] (rm -f MEV_MEV.Test.TestPatientController2.pipe ; mkfifo MEV_MEV.Test.TestPatientController2.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientController2.pipe >> ../files/MEV_MEV.Test.TestPatientController2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientController2_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.572053269017488] Failed to read output from testmodel.py, exit status != 0: 11.222975027980283 11.238230491 11.156734081 Calling exit ...