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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 104.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002185/0.002185, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.46/1.46, allocations: 207.6 MB / 229.8 MB, free: 4.246 MB / 174.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.01124/0.01124, allocations: 1.966 MB / 283.6 MB, free: 14.51 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003446/0.003446, allocations: 68.36 kB / 396.5 MB, free: 8.922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2409, allocations: 49.65 MB / 446.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002342/0.2433, allocations: 1.526 MB / 447.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.2443, allocations: 0.7587 MB / 448.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.216e-05/0.2444, allocations: 1.156 kB / 448.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.2445, allocations: 50.48 kB / 448.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.2446, allocations: 65.73 kB / 448.6 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005193/0.2451, allocations: 166.9 kB / 448.8 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.2453, allocations: 160.6 kB / 448.9 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.763e-05/0.2454, allocations: 14.91 kB / 448.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.2455, allocations: 76.33 kB / 449 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2457, allocations: 107.6 kB / 449.1 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.2457, allocations: 10.59 kB / 449.1 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.2459, allocations: 158.7 kB / 449.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.553e-05/0.2459, allocations: 37.14 kB / 449.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.571e-05/0.246, allocations: 67.36 kB / 449.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.2463, allocations: 221.9 kB / 449.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.2463, allocations: 0 / 449.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2463, allocations: 1.266 kB / 449.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.2463, allocations: 0 / 449.6 MB, free: 6.504 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.0006561/0.2469, allocations: 0.5223 MB / 450.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.247, allocations: 13.45 kB / 450.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.227e-05/0.247, allocations: 49.91 kB / 450.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.581e-05/0.2471, allocations: 18.47 kB / 450.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.2473, allocations: 220.2 kB / 450.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.2473, allocations: 33.69 kB / 450.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.2474, allocations: 10.97 kB / 450.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.2476, allocations: 138.5 kB / 450.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2477, allocations: 0.5312 kB / 450.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.2477, allocations: 2.344 kB / 450.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.2477, allocations: 5 kB / 450.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.2479, allocations: 90.38 kB / 450.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004676/0.2483, allocations: 372.7 kB / 451 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.2486, allocations: 125.1 kB / 451.2 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2488, allocations: 86.22 kB / 451.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.2488, allocations: 1.375 kB / 451.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000305/0.2491, allocations: 240.2 kB / 451.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.2491, allocations: 0 / 451.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009501/0.25, allocations: 457.2 kB / 451.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.2501, allocations: 119.4 kB / 452.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.2503, allocations: 183.7 kB / 452.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.2503, allocations: 33.39 kB / 452.3 MB, free: 4.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.93e-05/0.2503, allocations: 109.3 kB / 452.4 MB, free: 4.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.513e-05/0.2504, allocations: 56.5 kB / 452.4 MB, free: 4.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.2505, allocations: 48.92 kB / 452.5 MB, free: 4.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.246e-05/0.2506, allocations: 333.4 kB / 452.8 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.2508, allocations: 82.78 kB / 452.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.2509, allocations: 95.31 kB / 453 MB, free: 4.004 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003687/0.2513, allocations: 287.4 kB / 453.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2513, allocations: 0 / 453.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005971/0.2519, allocations: 382.8 kB / 453.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.814e-05/0.2519, allocations: 74.12 kB / 453.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.252, allocations: 0.6094 kB / 453.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.252, allocations: 1.281 kB / 453.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.2521, allocations: 16.78 kB / 453.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.2521, allocations: 5.5 kB / 453.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.2523, allocations: 21.23 kB / 453.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.2523, allocations: 11.06 kB / 453.8 MB, free: 3.551 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.0001689/0.2525, allocations: 216.9 kB / 454 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.2525, allocations: 20.56 kB / 454 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.18e-05/0.2526, allocations: 22.03 kB / 454 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2526, allocations: 0.6562 kB / 454 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.2526, allocations: 4 kB / 454 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2526, allocations: 2.266 kB / 454 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.2528, allocations: 252.8 kB / 454.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2528, allocations: 0.5156 kB / 454.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.836e-05/0.2529, allocations: 9.594 kB / 454.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.2529, allocations: 1.188 kB / 454.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.2529, allocations: 11.05 kB / 454.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2529, allocations: 1.344 kB / 454.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2529, allocations: 0 / 454.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007516/0.2537, allocations: 466.9 kB / 454.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.2537, allocations: 89.72 kB / 454.8 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.317e-05/0.2538, allocations: 15.59 kB / 454.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.2539, allocations: 11.92 kB / 454.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.923e-05/0.254, allocations: 19.92 kB / 454.9 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.254, allocations: 8.422 kB / 454.9 MB, free: 2.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.2541, allocations: 141.4 kB / 455 MB, free: 2.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2541, allocations: 0 / 455 MB, free: 2.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.2545, allocations: 92.52 kB / 455.1 MB, free: 2.621 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.0007997/0.2553, allocations: 1.035 MB / 456.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004294/0.2557, allocations: 332.6 kB / 456.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2557, allocations: 4 kB / 456.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.2559, allocations: 224.4 kB / 456.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.2561, allocations: 20.41 kB / 456.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.2584, allocations: 2.415 MB / 459.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.2588, allocations: 0.7212 MB / 459.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.963e-05/0.2589, allocations: 15.47 kB / 459.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.714e-05/0.2589, allocations: 41.17 kB / 459.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2589, allocations: 0 / 459.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.2851, allocations: 4.418 MB / 464.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.187/8.472, allocations: 5.141 kB / 464.3 MB, free: 12.97 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 sys.exit(0), Time elapsed: 10.823755467310548] Failed to read output from testmodel.py, exit status != 0: 8.544548740144819 8.571356834 8.319566678 Calling exit ...