Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.foo.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_control_structures.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.foo") translateModel(AES.Coursework.Typical_control_structures.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.foo") [/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.09152/0.09152, allocations: 21.6 MB / 37.4 MB, free: 0.7695 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.001075/0.001075, allocations: 184.5 kB / 43.63 MB, free: 3.574 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.279/1.279, allocations: 205.1 MB / 254.8 MB, free: 14.28 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.0008059/0.0008058, allocations: 94.3 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009559/0.0009559, allocations: 61.55 kB / 372.3 MB, free: 59.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07991/0.08088, allocations: 51.98 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.foo): time 0.002344/0.08326, allocations: 2.058 MB / 426.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.08507, allocations: 1.932 MB / 428.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.08526, allocations: 7.938 kB / 428.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.08556, allocations: 139.2 kB / 428.4 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003496/0.08593, allocations: 191.2 kB / 428.6 MB, free: 10.16 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/DigitalControllers/PI_awfb_full.mo:73:5-73:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/DigitalControllers/PI_awfb_full.mo:79:5-79:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/DigitalControllers/PI_awfb_full.mo:73:5-73:30:writable] Warning: Conditional component ‘ovrMax‘ is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/DigitalControllers/PI_awfb_full.mo:79:5-79:30:writable] Warning: Conditional component ‘ovrMin‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.08634, allocations: 371.6 kB / 429 MB, free: 9.801 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005781/0.08693, allocations: 1.03 MB / 430 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.08712, allocations: 153.6 kB / 430.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002291/0.08735, allocations: 346.6 kB / 430.5 MB, free: 8.277 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.08765, allocations: 390.2 kB / 430.9 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.467e-05/0.08772, allocations: 35.94 kB / 430.9 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.08784, allocations: 63.91 kB / 431 MB, free: 7.797 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.08798, allocations: 183.4 kB / 431.2 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.08814, allocations: 290 kB / 431.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.08852, allocations: 0.6969 MB / 432.2 MB, free: 6.633 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.08853, allocations: 3.984 kB / 432.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.08854, allocations: 0 / 432.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.08855, allocations: 4 kB / 432.2 MB, free: 6.625 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00239/0.09095, allocations: 1.311 MB / 433.5 MB, free: 5.238 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.756e-05/0.09098, allocations: 8.031 kB / 433.5 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.09109, allocations: 80 kB / 433.6 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.09246, allocations: 0.7374 MB / 434.3 MB, free: 4.371 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.0925, allocations: 36.97 kB / 434.3 MB, free: 4.332 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.349e-05/0.09256, allocations: 44.38 kB / 434.4 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.09308, allocations: 446.1 kB / 434.8 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.0931, allocations: 0 / 434.8 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.605e-05/0.09316, allocations: 19.98 kB / 434.8 MB, free: 3.816 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.09318, allocations: 12 kB / 434.8 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005078/0.09369, allocations: 374.4 kB / 435.2 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.09525, allocations: 1.592 MB / 436.8 MB, free: 1.777 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004957/0.09575, allocations: 498.2 kB / 437.3 MB, free: 1.281 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.09601, allocations: 260.8 kB / 437.5 MB, free: 1.023 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.09604, allocations: 0 / 437.5 MB, free: 1.023 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.09638, allocations: 338.5 kB / 437.9 MB, free: 0.668 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.342e-06/0.09639, allocations: 0 / 437.9 MB, free: 0.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.002183/0.09857, allocations: 1.244 MB / 439.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.666e-05/0.09867, allocations: 186.4 kB / 439.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.1002, allocations: 0.8903 MB / 440.2 MB, free: 14.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.537e-05/0.1003, allocations: 45.64 kB / 440.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.1005, allocations: 296.4 kB / 440.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1006, allocations: 142.1 kB / 440.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.1008, allocations: 150.2 kB / 440.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.101, allocations: 382.7 kB / 441.2 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/0.1016, allocations: 297.4 kB / 441.5 MB, free: 12.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006957/0.1023, allocations: 439.5 kB / 441.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.1034, allocations: 0.8017 MB / 442.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1034, allocations: 0 / 442.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001685/0.1051, allocations: 1.049 MB / 443.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.1052, allocations: 134.8 kB / 443.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1053, allocations: 4 kB / 443.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1053, allocations: 8 kB / 443.9 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006791/0.106, allocations: 159.7 kB / 444 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.106, allocations: 4 kB / 444.1 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008675/0.1069, allocations: 187.5 kB / 444.2 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.1069, allocations: 24 kB / 444.3 MB, free: 9.961 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition2,$whenCondition1,C2.u,$PRE.C2.u,C2.ulino,$PRE.C2.ulino,C2.ulin,$PRE.C2.ulin,C2.xfb,$PRE.C2.xfb,C2.fBias,$PRE.C2.fBias,C2.iBiaso,$PRE.C2.iBiaso,C2.xBias,$PRE.C2.xBias,C2.LOsat,$PRE.C2.LOsat,C2.HIsat,$PRE.C2.HIsat,C1.u,$PRE.C1.u,C1.ulino,$PRE.C1.ulino,C1.ulin,$PRE.C1.ulin,C1.xfb,$PRE.C1.xfb,C1.fBias,$PRE.C1.fBias,C1.iBiaso,$PRE.C1.iBiaso,C1.xBias,$PRE.C1.xBias,C1.LOsat,$PRE.C1.LOsat,C1.HIsat,$PRE.C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 4 * 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.0002875/0.1072, allocations: 319.2 kB / 444.6 MB, free: 9.625 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.449e-05/0.1073, allocations: 71.16 kB / 444.6 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.1074, allocations: 70.52 kB / 444.7 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.1074, allocations: 7.984 kB / 444.7 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1074, allocations: 3.938 kB / 444.7 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1075, allocations: 3.938 kB / 444.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005208/0.108, allocations: 0.5867 MB / 445.3 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.108, allocations: 0 / 445.3 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.1082, allocations: 27.98 kB / 445.3 MB, free: 8.801 MB / 314.7 MB Warning: The tearing heuristic was not able to avoid discrete iteration variables because otherwise the system could not have been torn. This may lead to problems during simulation. Notification: Performance of postOpt tearingSystem (simulation): time 0.0007464/0.1089, allocations: 468.5 kB / 445.8 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.109, allocations: 20 kB / 445.8 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.879e-05/0.109, allocations: 20.84 kB / 445.8 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1091, allocations: 0 / 445.8 MB, free: 8.285 MB / 314.7 MB Error: Internal error BackendDAE.adjacencyRowEnhanced failed for eqn: algorithm C2.LOsat := pre(C2.LOsat); C2.LOsat.$pDERA.dummyVarA := 0.0; C2.HIsat := pre(C2.HIsat); C2.HIsat.$pDERA.dummyVarA := 0.0; C2.u := pre(C2.u); C2.u.$pDERA.dummyVarA := 0.0; C2.ulino := pre(C2.ulino); C2.ulino.$pDERA.dummyVarA := 0.0; C2.ulin := pre(C2.ulin); C2.ulin.$pDERA.dummyVarA := 0.0; C2.xfb := pre(C2.xfb); C2.xfb.$pDERA.dummyVarA := 0.0; C2.iBiaso := pre(C2.iBiaso); C2.iBiaso.$pDERA.dummyVarA := 0.0; C2.fBias := pre(C2.fBias); C2.fBias.$pDERA.dummyVarA := 0.0; C2.xBias := pre(C2.xBias); C2.xBias.$pDERA.dummyVarA := 0.0; $whenCondition1 := pre($whenCondition1); $whenCondition1.$pDERA.dummyVarA := 0.0; $whenCondition1 := sample(2, 0.0, C2.Ts); $whenCondition1.$pDERA.dummyVarA := 0.0; when $whenCondition1 then C2.xBias := C2.Ti * (C2.xBias + C2.iBias - C2.iBiaso) / (C2.Ti + C2.Ts); C2.xBias.$pDERA.dummyVarA := C2.Ti * (C2.xBias.$pDERA.dummyVarA + C2.iBias.$pDERA.dummyVarA - C2.iBiaso.$pDERA.dummyVarA) / (C2.Ti + C2.Ts); C2.fBias := C2.iBias - C2.xBias; C2.fBias.$pDERA.dummyVarA := C2.iBias.$pDERA.dummyVarA - C2.xBias.$pDERA.dummyVarA; C2.iBiaso := C2.iBias; C2.iBiaso.$pDERA.dummyVarA := C2.iBias.$pDERA.dummyVarA; C2.xfb := (C2.Ti * C2.xfb + C2.Ts * C2.u) / (C2.Ti + C2.Ts); C2.xfb.$pDERA.dummyVarA := (C2.Ti * C2.xfb.$pDERA.dummyVarA + C2.Ts * C2.u.$pDERA.dummyVarA) / (C2.Ti + C2.Ts); C2.ulin := C2.K * (SP2.y - P.y2) + C2.xfb + C2.fBias; C2.ulin.$pDERA.dummyVarA := C2.xfb.$pDERA.dummyVarA + C2.fBias.$pDERA.dummyVarA - C2.K * P.y2.$pDERA.dummyVarA; C2.ulino := C2.ulin; C2.ulino.$pDERA.dummyVarA := C2.ulin.$pDERA.dummyVarA; C2.u := max(C2.CSmin, min(C2.CSmax, C2.ulin)); C2.u.$pDERA.dummyVarA := if noEvent(C2.CSmin > min(C2.CSmax, C2.ulin)) then 0.0 else if noEvent(C2.CSmax < C2.ulin) then 0.0 else C2.ulin.$pDERA.dummyVarA; C2.HIsat := C2.u >= C2.CSmax; C2.HIsat.$pDERA.dummyVarA := C2.u >= C2.CSmax; C2.LOsat := C2.u <= C2.CSmin; C2.LOsat.$pDERA.dummyVarA := C2.u <= C2.CSmin; 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.01078/0.1198, allocations: 7.54 MB / 453.4 MB, free: 0.5391 MB / 314.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.