Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09287/0.09287, allocations: 21.61 MB / 37.4 MB, free: 0.75 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 188.4 kB / 43.63 MB, free: 3.566 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.1 MB / 254.8 MB, free: 14.26 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008698/0.0008698, allocations: 94.31 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 52.8 kB / 372.3 MB, free: 59.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08193/0.08298, allocations: 51.98 MB / 424.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput): time 0.002744/0.08577, allocations: 1.877 MB / 426.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.08685, allocations: 0.7023 MB / 426.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.087, allocations: 3.938 kB / 426.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.08726, allocations: 19.86 kB / 426.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.08743, allocations: 35.84 kB / 426.9 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.08771, allocations: 111.8 kB / 427.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.08792, allocations: 211.6 kB / 427.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.08806, allocations: 49.55 kB / 427.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.08818, allocations: 79.69 kB / 427.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.08832, allocations: 91.58 kB / 427.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.08836, allocations: 8 kB / 427.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.396e-05/0.08839, allocations: 12 kB / 427.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.006e-05/0.08847, allocations: 43.83 kB / 427.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.355e-05/0.08855, allocations: 83.58 kB / 427.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.08871, allocations: 179.4 kB / 427.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.08872, allocations: 3.938 kB / 427.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.08873, allocations: 0 / 427.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.08874, allocations: 0 / 427.8 MB, free: 10.97 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009167/0.08966, allocations: 0.5762 MB / 428.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.0897, allocations: 12.02 kB / 428.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.258e-05/0.08976, allocations: 28.66 kB / 428.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003822/0.09015, allocations: 272.6 kB / 428.7 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.09017, allocations: 8.375 kB / 428.7 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.09021, allocations: 20.36 kB / 428.7 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.0905, allocations: 180.3 kB / 428.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.09052, allocations: 0 / 428.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.09055, allocations: 11.94 kB / 428.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.09056, allocations: 7.984 kB / 428.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.09082, allocations: 124.1 kB / 429 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007386/0.09157, allocations: 0.5397 MB / 429.6 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004336/0.09201, allocations: 174.5 kB / 429.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.09217, allocations: 88.81 kB / 429.8 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.0922, allocations: 4.109 kB / 429.8 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.09243, allocations: 206.6 kB / 430 MB, free: 8.547 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.09244, allocations: 0 / 430 MB, free: 8.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.001363/0.09381, allocations: 0.6217 MB / 430.6 MB, free: 7.891 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.09386, allocations: 162.2 kB / 430.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.09414, allocations: 211.5 kB / 431 MB, free: 7.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.09416, allocations: 29.7 kB / 431 MB, free: 7.445 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.09421, allocations: 124.2 kB / 431.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.09425, allocations: 55.34 kB / 431.2 MB, free: 7.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.09431, allocations: 33.7 kB / 431.3 MB, free: 7.223 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.234e-05/0.09436, allocations: 330.8 kB / 431.6 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.0945, allocations: 72.81 kB / 431.6 MB, free: 6.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.09464, allocations: 85.67 kB / 431.7 MB, free: 6.727 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009869/0.09563, allocations: 0.5317 MB / 432.3 MB, free: 6.148 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.09564, allocations: 0 / 432.3 MB, free: 6.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00035/0.096, allocations: 276.7 kB / 432.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.09604, allocations: 65.58 kB / 432.6 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.09605, allocations: 0 / 432.6 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.09606, allocations: 0 / 432.6 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.09624, allocations: 39.92 kB / 432.6 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.09626, allocations: 0 / 432.6 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.09645, allocations: 35.86 kB / 432.7 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.09647, allocations: 4 kB / 432.7 MB, free: 5.707 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001727/0.09665, allocations: 152.2 kB / 432.8 MB, free: 5.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001376/0.0968, allocations: 81.61 kB / 432.9 MB, free: 5.469 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008401/0.09765, allocations: 0.4928 MB / 433.4 MB, free: 4.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.843e-06/0.09766, allocations: 3.938 kB / 433.4 MB, free: 4.926 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0002728/0.09794, allocations: 252.8 kB / 433.6 MB, free: 4.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.09797, allocations: 59.41 kB / 433.7 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-06/0.09798, allocations: 0 / 433.7 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-06/0.09798, allocations: 0 / 433.7 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.09812, allocations: 35.84 kB / 433.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.066e-06/0.09813, allocations: 4 kB / 433.7 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.09831, allocations: 31.88 kB / 433.8 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.09833, allocations: 4 kB / 433.8 MB, free: 4.516 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.TDO.timeNextEv,$PRE.TDO.tdo,TDO.timeNextEv,TDO.tdo,$whenCondition2,$whenCondition1) * 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 8.986e-05/0.09842, allocations: 226.8 kB / 434 MB, free: 4.281 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.09846, allocations: 19.8 kB / 434 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.898e-05/0.09851, allocations: 21.53 kB / 434 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.09852, allocations: 0 / 434 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.09853, allocations: 8 kB / 434 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.09854, allocations: 0 / 434 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.09871, allocations: 285.3 kB / 434.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.09872, allocations: 0 / 434.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.09884, allocations: 19.92 kB / 434.3 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003079/0.09916, allocations: 142.5 kB / 434.5 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.09919, allocations: 8 kB / 434.5 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006851/0.09988, allocations: 0.7999 MB / 435.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.09989, allocations: 4 kB / 435.3 MB, free: 2.895 MB / 298.7 MB Error: Internal error BackendDAE.adjacencyRowEnhanced failed for eqn: algorithm $whenCondition2 := pre($whenCondition2); $whenCondition2.$pDERA.dummyVarA := 0.0; TDO.timeNextEv := pre(TDO.timeNextEv); TDO.timeNextEv.$pDERA.dummyVarA := 0.0; TDO.tdo := pre(TDO.tdo); TDO.tdo.$pDERA.dummyVarA := 0.0; $whenCondition1 := pre($whenCondition1); $whenCondition1.$pDERA.dummyVarA := 0.0; $whenCondition1 := sample(1, 0.0, TDO.Ttdo); $whenCondition1.$pDERA.dummyVarA := 0.0; when $whenCondition1 then if Cfb.CS <= 0.0 then TDO.tdo := 0.0; TDO.tdo.$pDERA.dummyVarA := 0.0; TDO.timeNextEv := -1.0; TDO.timeNextEv.$pDERA.dummyVarA := 0.0; else if Cfb.CS >= 1.0 then TDO.tdo := 1.0; TDO.tdo.$pDERA.dummyVarA := 0.0; TDO.timeNextEv := -1.0; TDO.timeNextEv.$pDERA.dummyVarA := 0.0; else TDO.tdo := 1.0; TDO.tdo.$pDERA.dummyVarA := 0.0; TDO.timeNextEv := time + Cfb.CS * TDO.Ttdo; TDO.timeNextEv.$pDERA.dummyVarA := Cfb.CS.$pDERA.dummyVarA * TDO.Ttdo; end if; end if; end when; $whenCondition2 := time >= TDO.timeNextEv and TDO.timeNextEv >= 0.0; $whenCondition2.$pDERA.dummyVarA := time >= TDO.timeNextEv and TDO.timeNextEv >= 0.0; when $whenCondition2 then if Cfb.CS > 0.0 and Cfb.CS < 1.0 then TDO.tdo := 0.0; TDO.tdo.$pDERA.dummyVarA := 0.0; end if; end when; Error: Internal error BackendDAEUtil.getAdjacencyMatrixEnhancedScalar failed Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00415/0.104, allocations: 2.935 MB / 438.2 MB, free: 15.78 MB / 314.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.