Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.OnOffControl.Scenario5.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: translateModel(MEV.Simulations.OnOffControl.Scenario5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario5") translateModel(MEV.Simulations.OnOffControl.Scenario5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.OnOffControl.Scenario5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 108.4 kB / 16.41 MB, free: 6.508 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.001185/0.001185, allocations: 188.3 kB / 17.35 MB, free: 5.734 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.167/1.167, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008183/0.008183, allocations: 1.928 MB / 272.5 MB, free: 10.06 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.001419/0.001419, allocations: 68.53 kB / 379 MB, free: 51.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05933/0.06076, allocations: 47.13 MB / 426.1 MB, free: 19.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.OnOffControl.Scenario5): time 0.004655/0.06544, allocations: 6.25 MB / 432.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.06725, allocations: 1.477 MB / 433.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002639/0.06752, allocations: 15.94 kB / 433.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002408/0.06778, allocations: 142.5 kB / 434 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004387/0.06823, allocations: 349.1 kB / 434.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.06875, allocations: 335.4 kB / 434.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003538/0.0723, allocations: 7.602 MB / 442.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001773/0.07408, allocations: 2.417 MB / 444.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.07645, allocations: 2.909 MB / 447.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003046/0.07951, allocations: 3.101 MB / 450.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008652/0.08039, allocations: 0.6289 MB / 451.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.08161, allocations: 0.6718 MB / 452 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001133/0.08275, allocations: 1.421 MB / 453.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00316/0.08592, allocations: 3.166 MB / 456.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005825/0.09175, allocations: 7.521 MB / 464.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.09177, allocations: 0 / 464.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.09178, allocations: 0 / 464.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.178e-05/0.09185, allocations: 0 / 464.1 MB, free: 13.68 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1114 * Number of variables: 1114 Notification: Performance of Generate backend data structure: time 0.01396/0.1058, allocations: 7.332 MB / 471.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1059, allocations: 15.88 kB / 471.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008868/0.1068, allocations: 0.5988 MB / 472 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.1104, allocations: 2.651 MB / 474.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004306/0.1108, allocations: 0.6317 MB / 475.3 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006896/0.1115, allocations: 487.8 kB / 475.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008674/0.1202, allocations: 5.974 MB / 481.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.435e-05/0.1203, allocations: 0 / 481.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000399/0.1207, allocations: 183.9 kB / 481.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-05/0.1208, allocations: 108 kB / 482.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008908/0.1297, allocations: 5.861 MB / 487.9 MB, free: 5.543 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02631/0.156, allocations: 17.2 MB / 0.4933 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009474/0.1655, allocations: 6.789 MB / 0.4999 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004419/0.1699, allocations: 3.302 MB / 0.5031 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002296/0.1702, allocations: 75.75 kB / 0.5032 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004866/0.175, allocations: 3.536 MB / 0.5067 GB, free: 6.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 5.911e-06/0.175, allocations: 0 / 0.5067 GB, free: 6.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2472/0.4222, allocations: 35.56 MB / 0.5414 GB, free: 93.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.4223, allocations: 171.5 kB / 0.5415 GB, free: 93.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00327/0.4256, allocations: 3.719 MB / 0.5452 GB, free: 92.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002653/0.4259, allocations: 154.6 kB / 0.5453 GB, free: 92.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008629/0.4268, allocations: 1.686 MB / 0.547 GB, free: 91.31 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000767/0.4275, allocations: 1.739 MB / 0.5487 GB, free: 90.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.4286, allocations: 0.9226 MB / 0.5496 GB, free: 89.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.199e-05/0.4286, allocations: 305.1 kB / 0.5499 GB, free: 89.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003384/0.432, allocations: 2.775 MB / 0.5526 GB, free: 86.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003629/0.4357, allocations: 3.475 MB / 0.556 GB, free: 82.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007088/0.4428, allocations: 6.411 MB / 0.5622 GB, free: 76.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.4428, allocations: 7.984 kB / 0.5622 GB, free: 76.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01146/0.4542, allocations: 8.951 MB / 0.571 GB, free: 67.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4543, allocations: 12 kB / 0.571 GB, free: 67.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.4543, allocations: 16 kB / 0.571 GB, free: 67.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02788/0.4822, allocations: 7.136 MB / 0.578 GB, free: 59.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/0.4852, allocations: 0.8619 MB / 0.5788 GB, free: 59.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.4957, allocations: 12.52 MB / 0.591 GB, free: 46.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.4991, allocations: 462.4 kB / 0.5915 GB, free: 45.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000296/0.4995, allocations: 175.8 kB / 0.5916 GB, free: 45.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004722/0.5042, allocations: 3.917 MB / 0.5955 GB, free: 41.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003368/0.5076, allocations: 3.234 MB / 0.5986 GB, free: 38.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006493/0.5141, allocations: 5.917 MB / 0.6044 GB, free: 32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.012e-05/0.5141, allocations: 4 kB / 0.6044 GB, free: 32 MB / 414.1 MB Notification: Performance of matching and sorting (n=640) (initialization_lambda0): time 0.01471/0.5288, allocations: 9.458 MB / 0.6136 GB, free: 22.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.5288, allocations: 16 kB / 0.6137 GB, free: 22.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.5289, allocations: 16 kB / 0.6137 GB, free: 22.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008828/0.5377, allocations: 3.742 MB / 0.6173 GB, free: 18.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002845/0.5405, allocations: 0.862 MB / 0.6182 GB, free: 17.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04034/0.5809, allocations: 36.83 MB / 0.6541 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003825/0.5847, allocations: 443.4 kB / 0.6546 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.5851, allocations: 160 kB / 0.6547 GB, free: 11 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 95 (linearController.useOnOffControl.y,patientControllers[10].active,$PRE.patientControllers[10].active,patientControllers[10].t_off,$PRE.patientControllers[10].t_off,patientControllers[10].t_on,$PRE.patientControllers[10].t_on,patientControllers[9].active,$PRE.patientControllers[9].active,patientControllers[9].t_off,$PRE.patientControllers[9].t_off,patientControllers[9].t_on,$PRE.patientControllers[9].t_on,patientControllers[8].active,$PRE.patientControllers[8].active,patientControllers[8].t_off,$PRE.patientControllers[8].t_off,patientControllers[8].t_on,$PRE.patientControllers[8].t_on,patientControllers[7].active,$PRE.patientControllers[7].active,patientControllers[7].t_off,$PRE.patientControllers[7].t_off,patientControllers[7].t_on,$PRE.patientControllers[7].t_on,patientControllers[6].active,$PRE.patientControllers[6].active,patientControllers[6].t_off,$PRE.patientControllers[6].t_off,patientControllers[6].t_on,$PRE.patientControllers[6].t_on,patientControllers[5].active,$PRE.patientControllers[5].active,patientControllers[5].t_off,$PRE.patientControllers[5].t_off,patientControllers[5].t_on,$PRE.patientControllers[5].t_on,patientControllers[4].active,$PRE.patientControllers[4].active,patientControllers[4].t_off,$PRE.patientControllers[4].t_off,patientControllers[4].t_on,$PRE.patientControllers[4].t_on,patientControllers[3].active,$PRE.patientControllers[3].active,patientControllers[3].t_off,$PRE.patientControllers[3].t_off,patientControllers[3].t_on,$PRE.patientControllers[3].t_on,patientControllers[2].active,$PRE.patientControllers[2].active,patientControllers[2].t_off,$PRE.patientControllers[2].t_off,patientControllers[2].t_on,$PRE.patientControllers[2].t_on,patientControllers[1].active,$PRE.patientControllers[1].active,patientControllers[1].t_off,$PRE.patientControllers[1].t_off,patientControllers[1].t_on,$PRE.patientControllers[1].t_on,onOffControllerWithHysteresis.on,$PRE.onOffControllerWithHysteresis.on,$whenCondition1,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition9,$whenCondition8,$whenCondition10,$whenCondition12,$whenCondition11,$whenCondition13,$whenCondition15,$whenCondition14,$whenCondition16,$whenCondition18,$whenCondition17,$whenCondition19,$whenCondition21,$whenCondition20,$whenCondition22,$whenCondition24,$whenCondition23,$whenCondition25,$whenCondition27,$whenCondition26,$whenCondition28,$whenCondition30,$whenCondition29,$whenCondition32,$whenCondition31) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 10 systems {(3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (3,20), (2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0009612/0.586, allocations: 0.4892 MB / 0.6552 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006193/0.5867, allocations: 472.9 kB / 0.6556 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/0.6007, allocations: 8.368 MB / 0.6638 GB, free: 1.551 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.463e-05/0.6008, allocations: 23.91 kB / 0.6638 GB, free: 1.527 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.6008, allocations: 4 kB / 0.6638 GB, free: 1.523 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002115/0.6029, allocations: 1.282 MB / 0.6651 GB, free: 232 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006337/0.6036, allocations: 151.9 kB / 0.6652 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002575/0.6061, allocations: 383.4 kB / 0.6656 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001182/0.6073, allocations: 0.6554 MB / 0.6662 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02273/0.6301, allocations: 11.21 MB / 0.6772 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0145/0.6446, allocations: 10.6 MB / 0.6875 GB, free: 9.051 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004289/0.6489, allocations: 3.205 MB / 0.6907 GB, free: 5.816 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003376/0.6523, allocations: 2.591 MB / 0.6932 GB, free: 3.242 MB / 478.1 MB Notification: Performance of Backend: time 6.71e-07/0.6523, allocations: 0 / 0.6932 GB, free: 3.242 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02313/0.6754, allocations: 12.02 MB / 0.7049 GB, free: 7.074 MB / 494.1 MB Notification: Performance of SimCode: time 0.1652/0.8407, allocations: 14.34 MB / 0.7189 GB, free: 156.6 MB / 494.1 MB Notification: Performance of Templates: time 0.125/0.9657, allocations: 107.1 MB / 0.8235 GB, free: 67.59 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.OnOffControl.Scenario5.makefile (rm -f MEV_MEV.Simulations.OnOffControl.Scenario5.pipe ; mkfifo MEV_MEV.Simulations.OnOffControl.Scenario5.pipe ; head -c 1048576 < MEV_MEV.Simulations.OnOffControl.Scenario5.pipe >> ../files/MEV_MEV.Simulations.OnOffControl.Scenario5.sim & ./MEV_MEV.Simulations.OnOffControl.Scenario5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.OnOffControl.Scenario5.pipe 2>&1)