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.00512/0.00512, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001506/0.001506, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.338/1.338, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008084/0.008084, allocations: 1.928 MB / 271.8 MB, free: 3.238 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.001348/0.001348, allocations: 64.12 kB / 377.7 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0815/0.08286, allocations: 47.13 MB / 424.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientController1): time 0.002581/0.08548, allocations: 1.529 MB / 426.4 MB, free: 156 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.168/0.2535, allocations: 0.7307 MB / 427.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.818e-05/0.2536, allocations: 0.9688 kB / 427.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.2537, allocations: 54.17 kB / 427.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.2539, allocations: 64.84 kB / 427.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.2545, allocations: 169.5 kB / 427.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001991/0.2547, allocations: 165.9 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.458e-05/0.2548, allocations: 19.14 kB / 427.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.2549, allocations: 77.98 kB / 427.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.2551, allocations: 98.58 kB / 427.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.2551, allocations: 9.906 kB / 427.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002079/0.2553, allocations: 161.1 kB / 427.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.046e-05/0.2554, allocations: 32.45 kB / 428 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.528e-05/0.2555, allocations: 69.02 kB / 428 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.2557, allocations: 226.7 kB / 428.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2558, allocations: 1.344 kB / 428.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2558, allocations: 0 / 428.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.2558, allocations: 1.031 kB / 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.0006257/0.2564, allocations: 0.516 MB / 428.8 MB, free: 9.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2565, allocations: 19.52 kB / 428.8 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.125e-05/0.2565, allocations: 42.17 kB / 428.8 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.355e-05/0.2566, allocations: 20.3 kB / 428.9 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.2568, allocations: 219.3 kB / 429.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.684e-05/0.2569, allocations: 33.39 kB / 429.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.2569, allocations: 11.09 kB / 429.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.2571, allocations: 133 kB / 429.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2572, allocations: 4 kB / 429.2 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.2572, allocations: 5.75 kB / 429.2 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.2572, allocations: 2.219 kB / 429.3 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.2574, allocations: 93.97 kB / 429.3 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003808/0.2578, allocations: 364.4 kB / 429.7 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/0.258, allocations: 143.1 kB / 429.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.2582, allocations: 105.9 kB / 429.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.2582, allocations: 1.156 kB / 429.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.2585, allocations: 236.7 kB / 430.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.704e-06/0.2585, allocations: 0 / 430.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006828/0.2592, allocations: 460.2 kB / 430.6 MB, free: 9.023 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.2592, allocations: 115.3 kB / 430.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.2594, allocations: 188.6 kB / 430.9 MB, free: 8.793 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.2594, allocations: 34.23 kB / 431 MB, free: 8.758 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.418e-05/0.2595, allocations: 107.1 kB / 431.1 MB, free: 8.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.603e-05/0.2595, allocations: 51.81 kB / 431.1 MB, free: 8.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.004e-05/0.2596, allocations: 42.94 kB / 431.2 MB, free: 8.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.96e-05/0.2597, allocations: 335.7 kB / 431.5 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.2598, allocations: 86.59 kB / 431.6 MB, free: 8.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.26, allocations: 84.86 kB / 431.6 MB, free: 8.312 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/0.2603, allocations: 295.9 kB / 431.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2603, allocations: 2.312 kB / 431.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004744/0.2607, allocations: 379.5 kB / 432.3 MB, free: 7.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.2608, allocations: 65.33 kB / 432.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2608, allocations: 1.609 kB / 432.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2608, allocations: 4 kB / 432.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.2609, allocations: 25.17 kB / 432.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.261, allocations: 1.188 kB / 432.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.2611, allocations: 20.62 kB / 432.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.2611, allocations: 10.72 kB / 432.4 MB, free: 7.867 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.0001288/0.2612, allocations: 220.6 kB / 432.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.22e-05/0.2613, allocations: 20.78 kB / 432.7 MB, free: 7.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.314e-05/0.2613, allocations: 24.53 kB / 432.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2613, allocations: 2.188 kB / 432.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2613, allocations: 6.906 kB / 432.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2613, allocations: 0 / 432.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.2615, allocations: 252.8 kB / 432.9 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2615, allocations: 0 / 432.9 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.179e-05/0.2616, allocations: 10.14 kB / 433 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.2616, allocations: 2 kB / 433 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.2616, allocations: 9.453 kB / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2616, allocations: 1.906 kB / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2616, allocations: 0 / 433 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005413/0.2622, allocations: 455.5 kB / 433.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.684e-05/0.2622, allocations: 91.55 kB / 433.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/0.2623, allocations: 10.88 kB / 433.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.2624, allocations: 11.33 kB / 433.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.2624, allocations: 16.52 kB / 433.5 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.2625, allocations: 17.97 kB / 433.6 MB, free: 7.066 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.192e-05/0.2626, allocations: 136.5 kB / 433.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2626, allocations: 0 / 433.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.2629, allocations: 84.05 kB / 433.8 MB, free: 6.961 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.0008147/0.2637, allocations: 1.042 MB / 434.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004575/0.2642, allocations: 395.6 kB / 435.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2642, allocations: 0 / 435.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.2644, allocations: 282.8 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.0002338/0.2647, allocations: 20.8 kB / 435.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.267, allocations: 2.416 MB / 437.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.2672, allocations: 0.7287 MB / 438.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.51e-05/0.2672, allocations: 7.203 kB / 438.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.94e-05/0.2673, allocations: 41.86 kB / 438.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2673, allocations: 0 / 438.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.2902, allocations: 4.414 MB / 443.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.469/7.759, allocations: 13.3 kB / 443.1 MB, free: 2.719 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)