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.001032/0.001033, allocations: 90.91 kB / 15.36 MB, free: 0.7383 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.007582/0.007583, allocations: 172 kB / 16.26 MB, free: 6.613 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.329/1.329, allocations: 205.4 MB / 222.4 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.007322/0.007322, allocations: 1.928 MB / 272.7 MB, free: 3.527 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.0004554/0.0004554, allocations: 16.2 kB / 331.6 MB, free: 32.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06729/0.06776, allocations: 48.1 MB / 379.7 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.001402/0.0692, allocations: 1.245 MB / 380.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.07026, allocations: 0.758 MB / 381.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.088e-05/0.07033, allocations: 4 kB / 381.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.07044, allocations: 55.88 kB / 381.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.981e-05/0.07054, allocations: 55.78 kB / 381.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.07096, allocations: 127.8 kB / 381.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.07112, allocations: 139.7 kB / 382.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.567e-05/0.07121, allocations: 19.98 kB / 382.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.07132, allocations: 67.75 kB / 382.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.07146, allocations: 99.64 kB / 382.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.07149, allocations: 8 kB / 382.3 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.0717, allocations: 147.8 kB / 382.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.07177, allocations: 27.91 kB / 382.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.156e-05/0.07186, allocations: 85.38 kB / 382.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.07211, allocations: 227.5 kB / 382.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.07213, allocations: 0 / 382.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.07213, allocations: 0 / 382.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.07214, allocations: 0 / 382.7 MB, free: 13.69 MB / 286.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.0006492/0.0728, allocations: 0.4983 MB / 383.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.07284, allocations: 8.031 kB / 383.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.896e-05/0.07288, allocations: 42.75 kB / 383.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.473e-05/0.07293, allocations: 24.73 kB / 383.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/0.07314, allocations: 216.7 kB / 383.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.721e-05/0.0732, allocations: 34.27 kB / 383.6 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.377e-05/0.07323, allocations: 12.31 kB / 383.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.07348, allocations: 137.5 kB / 383.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.0735, allocations: 0 / 383.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.07352, allocations: 0 / 383.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.07353, allocations: 7.984 kB / 383.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.07372, allocations: 95.95 kB / 383.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004609/0.07419, allocations: 368.6 kB / 384.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.07446, allocations: 146.5 kB / 384.3 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.07462, allocations: 104.8 kB / 384.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.378e-06/0.07464, allocations: 0 / 384.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.07497, allocations: 229.2 kB / 384.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 3.116e-06/0.07498, allocations: 4.094 kB / 384.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007033/0.07569, allocations: 468.5 kB / 385.1 MB, free: 11.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.07577, allocations: 110.8 kB / 385.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.07592, allocations: 187.3 kB / 385.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.07596, allocations: 25.7 kB / 385.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.07602, allocations: 108.6 kB / 385.5 MB, free: 10.64 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.07608, allocations: 63.19 kB / 385.6 MB, free: 10.58 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/0.07613, allocations: 29.7 kB / 385.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.07625, allocations: 338.8 kB / 385.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.07641, allocations: 84.2 kB / 386 MB, free: 10.12 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.07655, allocations: 84.42 kB / 386.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.07688, allocations: 305.6 kB / 386.4 MB, free: 9.719 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.07689, allocations: 0 / 386.4 MB, free: 9.719 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004679/0.07736, allocations: 377 kB / 386.8 MB, free: 9.332 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.19e-05/0.07742, allocations: 82.08 kB / 386.9 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.07743, allocations: 0 / 386.9 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.07745, allocations: 0 / 386.9 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.07756, allocations: 19.98 kB / 386.9 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.07757, allocations: 3.938 kB / 386.9 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.0777, allocations: 27.89 kB / 386.9 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.07773, allocations: 8 kB / 386.9 MB, free: 9.184 MB / 286.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.0001789/0.07791, allocations: 210.9 kB / 387.1 MB, free: 8.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.07795, allocations: 19.81 kB / 387.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.078, allocations: 21.86 kB / 387.2 MB, free: 8.914 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.078, allocations: 4 kB / 387.2 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.07801, allocations: 4 kB / 387.2 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.07802, allocations: 0 / 387.2 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.07823, allocations: 261.3 kB / 387.4 MB, free: 8.602 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.07824, allocations: 0 / 387.4 MB, free: 8.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.155e-05/0.07829, allocations: 8 kB / 387.4 MB, free: 8.594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.07831, allocations: 7.984 kB / 387.4 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.07833, allocations: 11.92 kB / 387.5 MB, free: 8.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.07834, allocations: 0 / 387.5 MB, free: 8.574 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.07834, allocations: 0 / 387.5 MB, free: 8.574 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000569/0.07892, allocations: 464.5 kB / 387.9 MB, free: 8.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.07898, allocations: 96.84 kB / 388 MB, free: 7.977 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.07902, allocations: 8 kB / 388 MB, free: 7.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.07913, allocations: 19.98 kB / 388 MB, free: 7.949 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.953e-05/0.0792, allocations: 15.98 kB / 388 MB, free: 7.934 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.07924, allocations: 11.98 kB / 388.1 MB, free: 7.922 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.492e-05/0.07934, allocations: 143.2 kB / 388.2 MB, free: 7.781 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.07934, allocations: 0 / 388.2 MB, free: 7.781 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.07963, allocations: 83.94 kB / 388.3 MB, free: 7.699 MB / 286.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.0009492/0.08059, allocations: 1.034 MB / 389.3 MB, free: 6.625 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004894/0.08109, allocations: 410.6 kB / 389.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.0811, allocations: 0 / 389.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002923/0.0814, allocations: 282.8 kB / 390 MB, free: 5.898 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.08162, allocations: 15.98 kB / 390 MB, free: 5.883 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.08428, allocations: 2.46 MB / 392.5 MB, free: 3.328 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.08458, allocations: 0.7273 MB / 393.2 MB, free: 2.574 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.595e-05/0.08463, allocations: 12.55 kB / 393.2 MB, free: 2.562 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.878e-05/0.0847, allocations: 43.42 kB / 393.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.0847, allocations: 0 / 393.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3303/0.415, allocations: 3.964 MB / 397.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.4153, allocations: 167.6 kB / 397.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.492, allocations: 4.062 kB / 397.4 MB, free: 14.28 MB / 302.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)