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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) 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.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientController2,fileNamePrefix="MEV_MEV_Test_TestPatientController2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005098/0.005098, allocations: 104.2 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 189.6 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008445/0.008445, allocations: 1.924 MB / 271.8 MB, free: 3.266 MB / 222.1 MB 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.001511/0.001511, allocations: 72.05 kB / 377.8 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0792/0.08072, allocations: 47.13 MB / 424.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController2): time 0.003261/0.08403, allocations: 1.529 MB / 426.4 MB, free: 152 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1597/0.2438, allocations: 0.7274 MB / 427.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.839e-05/0.2439, allocations: 5.906 kB / 427.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.244, allocations: 60.84 kB / 427.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.2442, allocations: 74.14 kB / 427.3 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.2447, allocations: 169.8 kB / 427.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.2449, allocations: 176.1 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.117e-05/0.245, allocations: 11.83 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.2451, allocations: 88.39 kB / 427.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.2452, allocations: 112.9 kB / 427.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.461e-05/0.2453, allocations: 13.38 kB / 427.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.2455, allocations: 153.1 kB / 428 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.982e-05/0.2455, allocations: 37.38 kB / 428 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.248e-05/0.2456, allocations: 62.94 kB / 428.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.2459, allocations: 240.1 kB / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2459, allocations: 0.8438 kB / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2459, allocations: 0 / 428.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.2459, allocations: 2.75 kB / 428.3 MB, free: 10.38 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.0006082/0.2465, allocations: 0.5302 MB / 428.8 MB, free: 9.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.2466, allocations: 14.2 kB / 428.9 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.2466, allocations: 42.44 kB / 428.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.2467, allocations: 19.66 kB / 428.9 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.2469, allocations: 224.7 kB / 429.1 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.33e-05/0.2469, allocations: 39.25 kB / 429.2 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.247, allocations: 10.31 kB / 429.2 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.2472, allocations: 140 kB / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.2472, allocations: 0 / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.2473, allocations: 6.859 kB / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2473, allocations: 1.156 kB / 429.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.2474, allocations: 93.11 kB / 429.4 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.2479, allocations: 373.6 kB / 429.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.2481, allocations: 144.8 kB / 429.9 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.2483, allocations: 106.2 kB / 430 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.748e-06/0.2483, allocations: 1.953 kB / 430 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.2486, allocations: 235.1 kB / 430.3 MB, free: 9.129 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.2486, allocations: 5.094 kB / 430.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006801/0.2493, allocations: 476.4 kB / 430.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.2493, allocations: 118.3 kB / 430.9 MB, free: 8.887 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.2495, allocations: 197.7 kB / 431 MB, free: 8.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.2495, allocations: 30 kB / 431.1 MB, free: 8.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.124e-05/0.2495, allocations: 110.4 kB / 431.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.066e-05/0.2496, allocations: 63.61 kB / 431.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/0.2497, allocations: 47.02 kB / 431.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.651e-05/0.2497, allocations: 336.9 kB / 431.6 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.2499, allocations: 89.08 kB / 431.7 MB, free: 8.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.25, allocations: 87.52 kB / 431.8 MB, free: 8.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.2503, allocations: 304.8 kB / 432.1 MB, free: 8.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2503, allocations: 0 / 432.1 MB, free: 8.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004489/0.2508, allocations: 391.7 kB / 432.5 MB, free: 7.914 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.2508, allocations: 69.8 kB / 432.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.2508, allocations: 4 kB / 432.5 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.2508, allocations: 1.312 kB / 432.5 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.2509, allocations: 23.08 kB / 432.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.251, allocations: 0 / 432.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.2511, allocations: 14.45 kB / 432.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.2511, allocations: 10.88 kB / 432.6 MB, free: 7.836 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.0001247/0.2512, allocations: 216.8 kB / 432.8 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.2513, allocations: 24.91 kB / 432.8 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.38e-05/0.2513, allocations: 25.77 kB / 432.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2513, allocations: 1.094 kB / 432.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2513, allocations: 0 / 432.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.2513, allocations: 1.891 kB / 432.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.2515, allocations: 254.2 kB / 433.1 MB, free: 7.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2515, allocations: 5.719 kB / 433.1 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.067e-05/0.2516, allocations: 9.016 kB / 433.1 MB, free: 7.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2516, allocations: 6.375 kB / 433.1 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.2516, allocations: 9.234 kB / 433.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2516, allocations: 2.797 kB / 433.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2516, allocations: 4 kB / 433.1 MB, free: 7.371 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005356/0.2521, allocations: 469.4 kB / 433.6 MB, free: 7.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.886e-05/0.2522, allocations: 94.42 kB / 433.7 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.2522, allocations: 12.06 kB / 433.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.2523, allocations: 11.42 kB / 433.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.269e-05/0.2524, allocations: 16 kB / 433.7 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.2524, allocations: 17.78 kB / 433.7 MB, free: 7.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001051/0.2526, allocations: 149.7 kB / 433.9 MB, free: 6.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2526, allocations: 0 / 433.9 MB, free: 6.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003159/0.2529, allocations: 80.73 kB / 434 MB, free: 6.914 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.0008029/0.2537, allocations: 1.045 MB / 435 MB, free: 6.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000445/0.2542, allocations: 412.1 kB / 435.4 MB, free: 5.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2542, allocations: 5.062 kB / 435.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.2544, allocations: 287 kB / 435.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.2546, allocations: 17.25 kB / 435.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.257, allocations: 2.5 MB / 438.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.2572, allocations: 0.7326 MB / 439 MB, free: 3.387 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.347e-05/0.2572, allocations: 12.44 kB / 439 MB, free: 3.379 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.638e-05/0.2573, allocations: 46.14 kB / 439 MB, free: 3.344 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2573, allocations: 0 / 439 MB, free: 3.344 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.2816, allocations: 4.522 MB / 443.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.789, allocations: 6.297 kB / 443.5 MB, free: 2.641 MB / 318.1 MB (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 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController2.fmu > MEV_MEV.Test.TestPatientController2.pipe 2>&1)