Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.LinearControl.Scenario6.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.LinearControl.Scenario6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario6") translateModel(MEV.Simulations.LinearControl.Scenario6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009957/0.0009958, allocations: 108 kB / 16.41 MB, free: 6.5 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.001016/0.001016, allocations: 194.5 kB / 17.35 MB, free: 5.762 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.173/1.173, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008129/0.008129, allocations: 1.935 MB / 272.5 MB, free: 10.07 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.001427/0.001427, allocations: 66.8 kB / 378.9 MB, free: 51.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05904/0.06047, allocations: 47.13 MB / 426.1 MB, free: 19.92 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.LinearControl.Scenario6): time 0.004697/0.06519, allocations: 6.242 MB / 432.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.06737, allocations: 1.47 MB / 433.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004751/0.06786, allocations: 15.94 kB / 433.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003233/0.06819, allocations: 150.5 kB / 433.9 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006346/0.06885, allocations: 333.1 kB / 434.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005996/0.06945, allocations: 339.4 kB / 434.6 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003933/0.0734, allocations: 7.664 MB / 442.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.07534, allocations: 2.436 MB / 444.7 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002747/0.0781, allocations: 2.917 MB / 447.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003519/0.08163, allocations: 3.171 MB / 450.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008938/0.08253, allocations: 0.625 MB / 451.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.08375, allocations: 0.6757 MB / 452.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.08478, allocations: 1.421 MB / 453.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00322/0.088, allocations: 3.158 MB / 456.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005803/0.09382, allocations: 7.494 MB / 464.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09384, allocations: 0 / 464.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09385, allocations: 0 / 464.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.09396, allocations: 0 / 464.2 MB, free: 13.62 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.01419/0.1081, allocations: 7.17 MB / 471.3 MB, free: 6.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1082, allocations: 11.89 kB / 471.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008719/0.1091, allocations: 0.5723 MB / 471.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003635/0.1127, allocations: 2.633 MB / 474.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004363/0.1132, allocations: 0.6357 MB / 475.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006992/0.1139, allocations: 479.7 kB / 475.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008835/0.1227, allocations: 5.97 MB / 481.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.499e-05/0.1228, allocations: 0 / 481.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004212/0.1232, allocations: 184 kB / 481.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.261e-05/0.1233, allocations: 112 kB / 481.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00894/0.1323, allocations: 5.873 MB / 487.8 MB, free: 5.691 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.02663/0.1589, allocations: 17.17 MB / 0.4931 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009666/0.1686, allocations: 6.868 MB / 0.4998 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00454/0.1731, allocations: 3.353 MB / 0.5031 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001916/0.1733, allocations: 75.47 kB / 0.5032 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004724/0.1781, allocations: 3.375 MB / 0.5065 GB, free: 6.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=481): time 6.192e-06/0.1781, allocations: 0 / 0.5065 GB, free: 6.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=506): time 0.2451/0.4232, allocations: 35.94 MB / 0.5416 GB, free: 94.47 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.4233, allocations: 136 kB / 0.5417 GB, free: 94.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003351/0.4266, allocations: 3.693 MB / 0.5453 GB, free: 93.24 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003559/0.427, allocations: 157.2 kB / 0.5455 GB, free: 93.13 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008863/0.4279, allocations: 1.636 MB / 0.5471 GB, free: 91.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008574/0.4288, allocations: 1.681 MB / 0.5487 GB, free: 90.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/0.4298, allocations: 0.9035 MB / 0.5496 GB, free: 89.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.008e-05/0.4298, allocations: 305.1 kB / 0.5499 GB, free: 89.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003422/0.4333, allocations: 2.795 MB / 0.5526 GB, free: 87.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003605/0.4369, allocations: 3.448 MB / 0.556 GB, free: 83.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007152/0.444, allocations: 6.409 MB / 0.5622 GB, free: 77.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.4441, allocations: 5.422 kB / 0.5622 GB, free: 77.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.01151/0.4556, allocations: 8.973 MB / 0.571 GB, free: 68.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4556, allocations: 12.94 kB / 0.571 GB, free: 68.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.4556, allocations: 16.5 kB / 0.571 GB, free: 68.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02973/0.4854, allocations: 7.325 MB / 0.5782 GB, free: 60.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003187/0.4886, allocations: 0.8425 MB / 0.579 GB, free: 59.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.4991, allocations: 12.53 MB / 0.5912 GB, free: 46.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003418/0.5025, allocations: 456.2 kB / 0.5917 GB, free: 46.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002989/0.5029, allocations: 176 kB / 0.5918 GB, free: 46.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004784/0.5077, allocations: 3.928 MB / 0.5957 GB, free: 42.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003394/0.5111, allocations: 3.191 MB / 0.5988 GB, free: 39.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006597/0.5177, allocations: 5.879 MB / 0.6045 GB, free: 32.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.045e-05/0.5177, allocations: 8 kB / 0.6045 GB, free: 32.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=636) (initialization_lambda0): time 0.01511/0.5328, allocations: 9.467 MB / 0.6138 GB, free: 23.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.5328, allocations: 12 kB / 0.6138 GB, free: 23.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.5329, allocations: 12 kB / 0.6138 GB, free: 23.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009241/0.5421, allocations: 3.788 MB / 0.6175 GB, free: 19.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003062/0.5452, allocations: 0.8503 MB / 0.6183 GB, free: 18.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04114/0.5863, allocations: 37.07 MB / 0.6545 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003721/0.5901, allocations: 435.3 kB / 0.655 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003136/0.5904, allocations: 160 kB / 0.6551 GB, free: 11.63 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 94 (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,$whenCondition31) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (417): * Single equations (assignments): 406 * 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), (1,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0009774/0.5914, allocations: 0.4893 MB / 0.6556 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006296/0.592, allocations: 442.5 kB / 0.656 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/0.6062, allocations: 8.45 MB / 0.6643 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.995e-05/0.6062, allocations: 23.91 kB / 0.6643 GB, free: 2.094 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.6062, allocations: 0 / 0.6643 GB, free: 2.094 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002253/0.6085, allocations: 1.268 MB / 0.6655 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006677/0.6092, allocations: 151.9 kB / 0.6657 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002604/0.6118, allocations: 379.5 kB / 0.666 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001153/0.613, allocations: 0.6554 MB / 0.6667 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02339/0.6364, allocations: 11.25 MB / 0.6776 GB, free: 4.355 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01469/0.6511, allocations: 10.61 MB / 0.688 GB, free: 9.59 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004238/0.6553, allocations: 3.186 MB / 0.6911 GB, free: 6.371 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003224/0.6586, allocations: 2.574 MB / 0.6936 GB, free: 3.812 MB / 478.1 MB Notification: Performance of Backend: time 5.21e-07/0.6586, allocations: 0 / 0.6936 GB, free: 3.812 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02308/0.6817, allocations: 11.92 MB / 0.7053 GB, free: 7.734 MB / 494.1 MB Notification: Performance of SimCode: time 0.1597/0.8414, allocations: 14.16 MB / 0.7191 GB, free: 159.3 MB / 494.1 MB Notification: Performance of Templates: time 0.1123/0.9537, allocations: 111 MB / 0.8275 GB, free: 67.36 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.LinearControl.Scenario6.makefile (rm -f MEV_MEV.Simulations.LinearControl.Scenario6.pipe ; mkfifo MEV_MEV.Simulations.LinearControl.Scenario6.pipe ; head -c 1048576 < MEV_MEV.Simulations.LinearControl.Scenario6.pipe >> ../files/MEV_MEV.Simulations.LinearControl.Scenario6.sim & ./MEV_MEV.Simulations.LinearControl.Scenario6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.LinearControl.Scenario6.pipe 2>&1)