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.001795/0.001795, 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.001617/0.001617, allocations: 212.5 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.367/1.367, allocations: 207.7 MB / 233.1 MB, free: 9.781 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.008809/0.008809, allocations: 1.962 MB / 287.3 MB, free: 3.676 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController1,fileNamePrefix="MEV_MEV_Test_TestPatientController1",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.002236/0.002236, allocations: 68.97 kB / 401.8 MB, free: 50.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.0807, allocations: 49.71 MB / 451.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002256/0.08295, allocations: 1.502 MB / 453 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000947/0.0839, allocations: 0.6957 MB / 453.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.134e-05/0.08396, allocations: 0 / 453.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.08409, allocations: 55.8 kB / 453.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.527e-05/0.08418, allocations: 67.78 kB / 453.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004846/0.08466, allocations: 159.6 kB / 453.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.08482, allocations: 159.6 kB / 454.1 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.623e-05/0.0849, allocations: 19.92 kB / 454.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.01e-05/0.08499, allocations: 83.75 kB / 454.2 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.08513, allocations: 107.7 kB / 454.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.08516, allocations: 8 kB / 454.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.08531, allocations: 143.9 kB / 454.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.411e-05/0.08536, allocations: 35.84 kB / 454.5 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.859e-05/0.08542, allocations: 51.72 kB / 454.5 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.08564, allocations: 227.3 kB / 454.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.08564, allocations: 3.938 kB / 454.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.08564, allocations: 4 kB / 454.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.08565, allocations: 0 / 454.8 MB, free: 2.766 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.0006077/0.08626, allocations: 460.8 kB / 455.2 MB, free: 2.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.08629, allocations: 15.98 kB / 455.2 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.786e-05/0.08632, allocations: 34.75 kB / 455.3 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.437e-05/0.08636, allocations: 20.84 kB / 455.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.08656, allocations: 168.6 kB / 455.5 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.08661, allocations: 59.97 kB / 455.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.08664, allocations: 12.38 kB / 455.5 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.08686, allocations: 193 kB / 455.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.08688, allocations: 0 / 455.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.08689, allocations: 4 kB / 455.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.08689, allocations: 3.984 kB / 455.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.08706, allocations: 155.3 kB / 455.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003878/0.08745, allocations: 323.6 kB / 456.2 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.08769, allocations: 178 kB / 456.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.08782, allocations: 144.2 kB / 456.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.08783, allocations: 0 / 456.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002812/0.08811, allocations: 317.9 kB / 456.8 MB, free: 500 kB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.08811, allocations: 0 / 456.8 MB, free: 500 kB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006847/0.0888, allocations: 0.5739 MB / 457.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/0.08889, allocations: 114.8 kB / 457.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.08908, allocations: 187.3 kB / 457.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.08911, allocations: 29.7 kB / 457.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.095e-05/0.0892, allocations: 108.5 kB / 457.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.781e-05/0.08926, allocations: 63.52 kB / 457.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.467e-05/0.08934, allocations: 45.64 kB / 457.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.08952, allocations: 338.8 kB / 458.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.08973, allocations: 151.6 kB / 458.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.08993, allocations: 147.8 kB / 458.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003839/0.09032, allocations: 297.7 kB / 458.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.09032, allocations: 4 kB / 458.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005982/0.09092, allocations: 460.5 kB / 459.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.733e-05/0.09099, allocations: 67.39 kB / 459.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.09099, allocations: 4 kB / 459.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.09101, allocations: 7.922 kB / 459.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.09111, allocations: 15.94 kB / 459.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.09112, allocations: 0 / 459.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.09124, allocations: 23.94 kB / 459.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.09126, allocations: 8 kB / 459.4 MB, free: 13.69 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.0002038/0.09146, allocations: 218.9 kB / 459.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.692e-05/0.0915, allocations: 19.91 kB / 459.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.09154, allocations: 17.97 kB / 459.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.09154, allocations: 4 kB / 459.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.09155, allocations: 0 / 459.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.09155, allocations: 7.922 kB / 459.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.09177, allocations: 200.5 kB / 459.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.09177, allocations: 0 / 459.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.498e-05/0.09182, allocations: 15.98 kB / 459.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.09183, allocations: 8 kB / 459.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.09185, allocations: 4 kB / 459.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.09185, allocations: 0 / 459.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.09185, allocations: 0 / 459.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007174/0.09257, allocations: 0.515 MB / 460.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.613e-05/0.0926, allocations: 15.84 kB / 460.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.09264, allocations: 8 kB / 460.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.09274, allocations: 11.98 kB / 460.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/0.09281, allocations: 23.91 kB / 460.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.09284, allocations: 16 kB / 460.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000121/0.09296, allocations: 139.2 kB / 460.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09296, allocations: 0 / 460.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00029/0.09325, allocations: 83.77 kB / 460.7 MB, free: 12.27 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.001184/0.09443, allocations: 1.115 MB / 461.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006106/0.09504, allocations: 465.4 kB / 462.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.09505, allocations: 4 kB / 462.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003283/0.09537, allocations: 294.1 kB / 462.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.09559, allocations: 16 kB / 462.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003211/0.0988, allocations: 2.748 MB / 465.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.09892, allocations: 114.4 kB / 465.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.458e-05/0.09896, allocations: 8.5 kB / 465.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.739e-05/0.09903, allocations: 39.42 kB / 465.5 MB, free: 7.172 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.09903, allocations: 0 / 465.5 MB, free: 7.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.1286, allocations: 5.137 MB / 470.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/10.92, allocations: 7.969 kB / 470.6 MB, free: 1.961 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 sys.exit(0), Time elapsed: 13.328868477139622] Failed to read output from testmodel.py, exit status != 0: 11.021698561962694 11.037906904 10.949270009 Calling exit ...