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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005027/0.005027, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001111/0.001111, allocations: 186.3 kB / 16.67 MB, free: 5.977 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.302/1.302, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01082/0.01082, allocations: 1.924 MB / 271.8 MB, free: 3.242 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.001435/0.001435, allocations: 67.91 kB / 377.7 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07832/0.07977, allocations: 47.12 MB / 424.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002579/0.08239, allocations: 1.537 MB / 426.4 MB, free: 156 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1566/0.239, allocations: 0.7292 MB / 427.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.969e-05/0.2391, allocations: 0.9062 kB / 427.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.2393, allocations: 52.89 kB / 427.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.605e-05/0.2394, allocations: 63.69 kB / 427.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005046/0.2399, allocations: 168.2 kB / 427.4 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.2401, allocations: 164 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.029e-05/0.2402, allocations: 16.62 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.952e-05/0.2403, allocations: 80.55 kB / 427.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.2404, allocations: 104.7 kB / 427.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.2405, allocations: 8.969 kB / 427.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.2407, allocations: 158.5 kB / 427.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.743e-05/0.2408, allocations: 28.16 kB / 428 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.153e-05/0.2408, allocations: 73.89 kB / 428 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002796/0.2411, allocations: 224.7 kB / 428.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2411, allocations: 4.812 kB / 428.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2412, allocations: 0 / 428.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2412, allocations: 0 / 428.3 MB, free: 10.39 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.0006206/0.2418, allocations: 0.5163 MB / 428.8 MB, free: 9.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.2418, allocations: 14.33 kB / 428.8 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.968e-05/0.2419, allocations: 38.83 kB / 428.8 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.2419, allocations: 20.59 kB / 428.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.2422, allocations: 223 kB / 429.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.568e-05/0.2422, allocations: 36.52 kB / 429.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.372e-05/0.2422, allocations: 7.125 kB / 429.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.2425, allocations: 137.1 kB / 429.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.2425, allocations: 0 / 429.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2425, allocations: 2.5 kB / 429.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2425, allocations: 4.25 kB / 429.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.2427, allocations: 93.83 kB / 429.3 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004294/0.2432, allocations: 373.7 kB / 429.7 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.2434, allocations: 133.9 kB / 429.8 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.2435, allocations: 102.4 kB / 429.9 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.2436, allocations: 1.969 kB / 429.9 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.2439, allocations: 242.2 kB / 430.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.964e-06/0.2439, allocations: 0 / 430.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006515/0.2445, allocations: 454.5 kB / 430.6 MB, free: 9.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.2446, allocations: 114.8 kB / 430.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.2447, allocations: 193.5 kB / 430.9 MB, free: 8.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.2448, allocations: 33.62 kB / 430.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.845e-05/0.2448, allocations: 103.1 kB / 431 MB, free: 8.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.186e-05/0.2449, allocations: 50.31 kB / 431.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.62e-05/0.245, allocations: 45.25 kB / 431.1 MB, free: 8.641 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.736e-05/0.245, allocations: 334.7 kB / 431.5 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.2452, allocations: 82.92 kB / 431.6 MB, free: 8.324 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.2453, allocations: 97.91 kB / 431.6 MB, free: 8.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.2457, allocations: 291.7 kB / 431.9 MB, free: 8.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2457, allocations: 0.5625 kB / 431.9 MB, free: 8.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004885/0.2462, allocations: 375.8 kB / 432.3 MB, free: 7.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.074e-05/0.2462, allocations: 71.91 kB / 432.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2463, allocations: 3.938 kB / 432.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.2463, allocations: 1.031 kB / 432.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.2464, allocations: 21.5 kB / 432.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.2464, allocations: 1.922 kB / 432.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.2466, allocations: 28.17 kB / 432.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.2466, allocations: 7.516 kB / 432.4 MB, free: 7.871 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.0001692/0.2468, allocations: 220.9 kB / 432.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.2468, allocations: 19.88 kB / 432.7 MB, free: 7.664 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.21e-05/0.2469, allocations: 21.33 kB / 432.7 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2469, allocations: 1.281 kB / 432.7 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2469, allocations: 0 / 432.7 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2469, allocations: 6.781 kB / 432.7 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002112/0.2471, allocations: 254.7 kB / 432.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.2471, allocations: 1.094 kB / 432.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.503e-05/0.2472, allocations: 17.22 kB / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2472, allocations: 0.875 kB / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.2472, allocations: 7.078 kB / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.2472, allocations: 1.844 kB / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2472, allocations: 0 / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006137/0.2478, allocations: 456.7 kB / 433.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.2479, allocations: 89.38 kB / 433.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.2479, allocations: 8.812 kB / 433.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2481, allocations: 15.22 kB / 433.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/0.2481, allocations: 17.38 kB / 433.5 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.2482, allocations: 8.656 kB / 433.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.2483, allocations: 136.7 kB / 433.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.2483, allocations: 0 / 433.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.2487, allocations: 93.55 kB / 433.8 MB, free: 6.957 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.000877/0.2496, allocations: 1.024 MB / 434.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004761/0.2501, allocations: 402.5 kB / 435.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2501, allocations: 4 kB / 435.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002428/0.2503, allocations: 285.2 kB / 435.5 MB, free: 5.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.2506, allocations: 17.39 kB / 435.5 MB, free: 5.766 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.2533, allocations: 2.408 MB / 437.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.2535, allocations: 0.7286 MB / 438.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.697e-05/0.2536, allocations: 11.34 kB / 438.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.405e-05/0.2536, allocations: 45.75 kB / 438.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2536, allocations: 3.938 kB / 438.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.2754, allocations: 4.507 MB / 443.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/7.832, allocations: 9 kB / 443.2 MB, free: 2.699 MB / 318.1 MB (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 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientController1.fmu > MEV_MEV.Test.TestPatientController1.pipe 2>&1)