Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Simulations.LinearControl.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.LinearControl.Scenario5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario5") translateModel(MEV.Simulations.LinearControl.Scenario5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="MEV_MEV.Simulations.LinearControl.Scenario5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 116.2 kB / 16.42 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.0009896/0.0009896, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.193/1.193, allocations: 205.1 MB / 223.2 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.00765/0.00765, allocations: 1.924 MB / 272.5 MB, free: 10.08 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.001443/0.001443, allocations: 71.5 kB / 378.9 MB, free: 51.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06314/0.06459, allocations: 47.13 MB / 426.1 MB, free: 19.9 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Simulations.LinearControl.Scenario5): time 0.004796/0.06941, allocations: 6.218 MB / 432.3 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002213/0.07165, allocations: 1.489 MB / 433.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000565/0.07223, allocations: 12 kB / 433.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.07261, allocations: 142.5 kB / 433.9 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006843/0.0733, allocations: 349 kB / 434.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006581/0.07397, allocations: 331.5 kB / 434.6 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003932/0.07791, allocations: 7.598 MB / 442.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00182/0.07974, allocations: 2.421 MB / 444.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002605/0.08236, allocations: 2.909 MB / 447.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003192/0.08556, allocations: 3.101 MB / 450.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000896/0.08647, allocations: 0.625 MB / 451.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.08776, allocations: 0.6718 MB / 451.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.08892, allocations: 1.417 MB / 453.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003262/0.09218, allocations: 3.158 MB / 456.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006296/0.09849, allocations: 7.529 MB / 464 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.09851, allocations: 4 kB / 464 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.09852, allocations: 4 kB / 464 MB, free: 13.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.09863, allocations: 0 / 464 MB, free: 13.73 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.0152/0.1138, allocations: 7.313 MB / 471.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.1139, allocations: 15.89 kB / 471.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009401/0.1148, allocations: 0.5988 MB / 472 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003851/0.1187, allocations: 2.658 MB / 474.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004543/0.1192, allocations: 0.6317 MB / 475.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006861/0.1199, allocations: 483.8 kB / 475.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008942/0.1288, allocations: 5.97 MB / 481.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.271e-05/0.1289, allocations: 0 / 481.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003919/0.1293, allocations: 180 kB / 481.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.315e-05/0.1294, allocations: 104 kB / 482 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009136/0.1385, allocations: 5.869 MB / 487.8 MB, free: 5.621 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.02756/0.1661, allocations: 17.22 MB / 0.4932 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009636/0.1757, allocations: 6.832 MB / 0.4999 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004701/0.1805, allocations: 3.326 MB / 0.5031 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002378/0.1807, allocations: 75.45 kB / 0.5032 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004801/0.1855, allocations: 3.347 MB / 0.5065 GB, free: 6.703 MB / 398.1 MB Notification: Performance of pre-optimization done (n=478): time 6.332e-06/0.1856, allocations: 0 / 0.5065 GB, free: 6.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=503): time 0.2599/0.4454, allocations: 35.68 MB / 0.5413 GB, free: 94.35 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.4455, allocations: 139.9 kB / 0.5415 GB, free: 94.28 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003506/0.449, allocations: 3.711 MB / 0.5451 GB, free: 93.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003875/0.4494, allocations: 160.7 kB / 0.5452 GB, free: 93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008904/0.4503, allocations: 1.67 MB / 0.5469 GB, free: 91.74 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008715/0.4512, allocations: 1.754 MB / 0.5486 GB, free: 90.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001083/0.4523, allocations: 0.9065 MB / 0.5495 GB, free: 89.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.733e-05/0.4524, allocations: 304.9 kB / 0.5498 GB, free: 89.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003479/0.4558, allocations: 2.775 MB / 0.5525 GB, free: 87.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/0.4595, allocations: 3.459 MB / 0.5559 GB, free: 83.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007126/0.4667, allocations: 6.382 MB / 0.5621 GB, free: 77.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.4667, allocations: 4 kB / 0.5621 GB, free: 77.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization): time 0.01171/0.4784, allocations: 8.931 MB / 0.5708 GB, free: 68.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.4785, allocations: 8.938 kB / 0.5708 GB, free: 68.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/0.4785, allocations: 16 kB / 0.5708 GB, free: 68.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02899/0.5075, allocations: 7.13 MB / 0.5778 GB, free: 60.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003528/0.511, allocations: 0.8542 MB / 0.5786 GB, free: 60.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.5219, allocations: 12.46 MB / 0.5908 GB, free: 47.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003885/0.5258, allocations: 451.5 kB / 0.5912 GB, free: 46.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003122/0.5261, allocations: 178.7 kB / 0.5914 GB, free: 46.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004943/0.531, allocations: 3.917 MB / 0.5952 GB, free: 42.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003425/0.5345, allocations: 3.213 MB / 0.5984 GB, free: 39.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006626/0.5411, allocations: 5.882 MB / 0.6041 GB, free: 33.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.027e-05/0.5411, allocations: 4 kB / 0.6041 GB, free: 33.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=637) (initialization_lambda0): time 0.01518/0.5563, allocations: 9.416 MB / 0.6133 GB, free: 23.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.5563, allocations: 8 kB / 0.6133 GB, free: 23.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.5564, allocations: 16 kB / 0.6133 GB, free: 23.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009241/0.5656, allocations: 3.742 MB / 0.617 GB, free: 19.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003384/0.569, allocations: 0.8619 MB / 0.6178 GB, free: 19.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04053/0.6096, allocations: 36.83 MB / 0.6538 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003771/0.6134, allocations: 431.4 kB / 0.6542 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003207/0.6137, allocations: 168 kB / 0.6544 GB, free: 12.31 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (422): * Single equations (assignments): 411 * 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,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0009581/0.6147, allocations: 490.3 kB / 0.6548 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006126/0.6153, allocations: 469 kB / 0.6553 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/0.6298, allocations: 8.424 MB / 0.6635 GB, free: 2.805 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.296e-05/0.6299, allocations: 27.89 kB / 0.6635 GB, free: 2.777 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.6299, allocations: 4 kB / 0.6635 GB, free: 2.773 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002587/0.6325, allocations: 1.294 MB / 0.6648 GB, free: 1.457 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007054/0.6332, allocations: 151.9 kB / 0.6649 GB, free: 1.309 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002629/0.6358, allocations: 375.5 kB / 0.6653 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/0.637, allocations: 0.6554 MB / 0.6659 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02451/0.6616, allocations: 11.14 MB / 0.6768 GB, free: 5.121 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01509/0.6767, allocations: 10.56 MB / 0.6871 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004382/0.6811, allocations: 3.163 MB / 0.6902 GB, free: 7.211 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004028/0.6851, allocations: 2.583 MB / 0.6927 GB, free: 4.645 MB / 478.1 MB Notification: Performance of Backend: time 4.91e-07/0.6851, allocations: 0 / 0.6927 GB, free: 4.645 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02484/0.71, allocations: 11.94 MB / 0.7044 GB, free: 8.555 MB / 494.1 MB Notification: Performance of SimCode: time 0.1721/0.8821, allocations: 14.31 MB / 0.7184 GB, free: 159.5 MB / 494.1 MB Notification: Performance of Templates: time 0.117/0.9991, allocations: 107.2 MB / 0.8231 GB, free: 71.53 MB / 494.1 MB make -j1 -f MEV_MEV.Simulations.LinearControl.Scenario5.makefile (rm -f MEV_MEV.Simulations.LinearControl.Scenario5.pipe ; mkfifo MEV_MEV.Simulations.LinearControl.Scenario5.pipe ; head -c 1048576 < MEV_MEV.Simulations.LinearControl.Scenario5.pipe >> ../files/MEV_MEV.Simulations.LinearControl.Scenario5.sim & ./MEV_MEV.Simulations.LinearControl.Scenario5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > MEV_MEV.Simulations.LinearControl.Scenario5.pipe 2>&1)