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.001248/0.001248, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001276/0.001276, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.6 MB / 230.5 MB, free: 4.004 MB / 174.1 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.008464/0.008464, allocations: 1.966 MB / 284.3 MB, free: 14.37 MB / 238.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.002101/0.002101, allocations: 75.89 kB / 397.3 MB, free: 8.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2542, allocations: 49.66 MB / 446.9 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002637/0.2568, allocations: 1.525 MB / 448.5 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.258, allocations: 0.7527 MB / 449.2 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.08e-05/0.2581, allocations: 1.375 kB / 449.2 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.2582, allocations: 54.98 kB / 449.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.2583, allocations: 65.73 kB / 449.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005589/0.2589, allocations: 173.1 kB / 449.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002044/0.2591, allocations: 158.9 kB / 449.7 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.44e-05/0.2592, allocations: 12.78 kB / 449.7 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.2593, allocations: 77.39 kB / 449.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.2595, allocations: 109.4 kB / 449.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/0.2595, allocations: 13.53 kB / 449.9 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002281/0.2598, allocations: 162.4 kB / 450 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.412e-05/0.2598, allocations: 30.75 kB / 450.1 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.23e-05/0.2599, allocations: 66.08 kB / 450.1 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002792/0.2602, allocations: 231.8 kB / 450.4 MB, free: 6.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2602, allocations: 0 / 450.4 MB, free: 6.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.2602, allocations: 1.344 kB / 450.4 MB, free: 6.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2602, allocations: 0 / 450.4 MB, free: 6.453 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.0007355/0.2609, allocations: 0.5238 MB / 450.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.261, allocations: 16.08 kB / 450.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.234e-05/0.261, allocations: 4.188 kB / 450.9 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.428e-05/0.261, allocations: 40.83 kB / 450.9 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.2611, allocations: 18.78 kB / 451 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.2613, allocations: 217.5 kB / 451.2 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.218e-05/0.2614, allocations: 32.66 kB / 451.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.009e-05/0.2614, allocations: 15.23 kB / 451.2 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.2617, allocations: 134.5 kB / 451.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2617, allocations: 1.359 kB / 451.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.2618, allocations: 5.375 kB / 451.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.2618, allocations: 6.688 kB / 451.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002266/0.262, allocations: 88.59 kB / 451.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005229/0.2625, allocations: 368.4 kB / 451.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.2628, allocations: 121.9 kB / 451.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.263, allocations: 77.64 kB / 452 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.263, allocations: 1.906 kB / 452 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/0.2633, allocations: 236.8 kB / 452.2 MB, free: 5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.372e-06/0.2633, allocations: 0 / 452.2 MB, free: 5 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007166/0.2641, allocations: 460.8 kB / 452.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.2641, allocations: 119.8 kB / 452.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.2643, allocations: 183.2 kB / 453 MB, free: 4.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.2643, allocations: 32.78 kB / 453 MB, free: 4.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.024e-05/0.2643, allocations: 110.2 kB / 453.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.667e-05/0.2644, allocations: 52.16 kB / 453.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.608e-05/0.2645, allocations: 49.38 kB / 453.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.694e-05/0.2645, allocations: 333.2 kB / 453.5 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.2647, allocations: 86.12 kB / 453.6 MB, free: 4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.2649, allocations: 91.38 kB / 453.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003484/0.2652, allocations: 287.5 kB / 454 MB, free: 3.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2652, allocations: 3.938 kB / 454 MB, free: 3.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005712/0.2658, allocations: 379.6 kB / 454.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.531e-05/0.2658, allocations: 70.03 kB / 454.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.2658, allocations: 0 / 454.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.2659, allocations: 1.891 kB / 454.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.266, allocations: 24.38 kB / 454.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.266, allocations: 5.312 kB / 454.5 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.2661, allocations: 21.27 kB / 454.5 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.2661, allocations: 11.52 kB / 454.5 MB, free: 3.516 MB / 318.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.0001787/0.2663, allocations: 225.1 kB / 454.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.2663, allocations: 20.98 kB / 454.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.2664, allocations: 16.69 kB / 454.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2664, allocations: 6.031 kB / 454.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2664, allocations: 0 / 454.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2664, allocations: 0.6562 kB / 454.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.2666, allocations: 253.8 kB / 455 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2666, allocations: 0 / 455 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.432e-05/0.2667, allocations: 9.641 kB / 455 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2667, allocations: 2.328 kB / 455 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.2667, allocations: 10.12 kB / 455 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2667, allocations: 2.047 kB / 455 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2667, allocations: 0 / 455 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006727/0.2674, allocations: 470 kB / 455.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.2674, allocations: 89.73 kB / 455.6 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.2675, allocations: 14.84 kB / 455.6 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.2676, allocations: 11.84 kB / 455.6 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.182e-05/0.2677, allocations: 16.52 kB / 455.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/0.2677, allocations: 13.09 kB / 455.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.2678, allocations: 141.5 kB / 455.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2678, allocations: 0 / 455.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003582/0.2682, allocations: 85.5 kB / 455.9 MB, free: 2.586 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: 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.001008/0.2692, allocations: 1.033 MB / 456.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005515/0.2697, allocations: 341 kB / 457.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2697, allocations: 0 / 457.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.27, allocations: 221.1 kB / 457.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002426/0.2702, allocations: 21.27 kB / 457.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.273, allocations: 2.415 MB / 459.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.2734, allocations: 0.7277 MB / 460.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.52e-05/0.2734, allocations: 8.688 kB / 460.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.455e-05/0.2735, allocations: 45.48 kB / 460.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2735, allocations: 0 / 460.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.2938, allocations: 4.45 MB / 465.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/8.381, allocations: 14.47 kB / 465.1 MB, free: 12.91 MB / 334.1 MB " [Timeout remaining time 651] (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: 10.634389792976435] Failed to read output from testmodel.py, exit status != 0: 8.505614495021291 8.53065701 8.266008874 Calling exit ...