Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.TerminalUnitScaling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Experimental.DHC.Loads.BaseClasses.Validation.TerminalUnitScaling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.TerminalUnitScaling") translateModel(Buildings.Experimental.DHC.Loads.BaseClasses.Validation.TerminalUnitScaling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Experimental.DHC.Loads.BaseClasses.Validation.TerminalUnitScaling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.021/2.021, allocations: 391.2 MB / 407 MB, free: 10.92 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 206.2 kB / 499.1 MB, free: 4.668 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 0.7948 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009522/0.0009524, allocations: 111.7 kB / 0.9329 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 50.91 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2386, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Loads.BaseClasses.Validation.TerminalUnitScaling): time 0.9373/1.176, allocations: 0.4954 GB / 1.714 GB, free: 1.965 MB / 1.057 GB Notification: Performance of NFInst.instExpressions: time 0.103/1.279, allocations: 86.01 MB / 1.798 GB, free: 11.73 MB / 1.151 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01293/1.292, allocations: 282.3 kB / 1.798 GB, free: 11.45 MB / 1.151 GB Notification: Performance of NFTyping.typeComponents: time 0.01262/1.305, allocations: 3.824 MB / 1.802 GB, free: 7.609 MB / 1.151 GB Notification: Performance of NFTyping.typeBindings: time 0.03619/1.341, allocations: 12.62 MB / 1.814 GB, free: 10.95 MB / 1.167 GB Notification: Performance of NFTyping.typeClassSections: time 0.01884/1.36, allocations: 6.852 MB / 1.821 GB, free: 4.152 MB / 1.167 GB Notification: Performance of NFFlatten.flatten: time 0.03335/1.393, allocations: 25.74 MB / 1.846 GB, free: 10.34 MB / 1.198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01765/1.411, allocations: 6.718 MB / 1.852 GB, free: 3.5 MB / 1.198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02382/1.435, allocations: 8.858 MB / 1.861 GB, free: 10.61 MB / 1.214 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01378/1.448, allocations: 5.845 MB / 1.867 GB, free: 4.75 MB / 1.214 GB Notification: Performance of NFPackage.collectConstants: time 0.003649/1.452, allocations: 404 kB / 1.867 GB, free: 4.355 MB / 1.214 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0229/1.475, allocations: 11.1 MB / 1.878 GB, free: 9.23 MB / 1.229 GB Notification: Performance of NFScalarize.scalarize: time 0.004749/1.48, allocations: 2.203 MB / 1.88 GB, free: 7.02 MB / 1.229 GB Notification: Performance of NFVerifyModel.verify: time 0.01025/1.49, allocations: 4.271 MB / 1.884 GB, free: 2.727 MB / 1.229 GB Notification: Performance of NFConvertDAE.convert: time 0.03236/1.523, allocations: 18.07 MB / 1.902 GB, free: 0.6055 MB / 1.245 GB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/1.523, allocations: 0 / 1.902 GB, free: 0.6055 MB / 1.245 GB Notification: Performance of FrontEnd: time 1.463e-06/1.523, allocations: 0 / 1.902 GB, free: 0.6055 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.0004999/1.523, allocations: 0 / 1.902 GB, free: 0.6055 MB / 1.245 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1284 * Number of variables: 1284 Notification: Performance of Generate backend data structure: time 0.539/2.062, allocations: 9.478 MB / 1.911 GB, free: 0.5044 GB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/2.062, allocations: 14.56 kB / 1.911 GB, free: 0.5044 GB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01633/2.079, allocations: 2.734 MB / 1.914 GB, free: 0.5039 GB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01663/2.095, allocations: 7.205 MB / 1.921 GB, free: 0.5002 GB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002181/2.097, allocations: 0.738 MB / 1.921 GB, free: 0.5 GB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001766/2.099, allocations: 0.5447 MB / 1.922 GB, free: 0.4998 GB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/2.113, allocations: 6.336 MB / 1.928 GB, free: 0.4973 GB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.773e-05/2.113, allocations: 3.938 kB / 1.928 GB, free: 0.4973 GB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005034/2.114, allocations: 207.4 kB / 1.928 GB, free: 0.4971 GB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/2.114, allocations: 194.8 kB / 1.929 GB, free: 0.4971 GB / 1.245 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01447/2.129, allocations: 5.937 MB / 1.934 GB, free: 0.4946 GB / 1.245 GB 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.04278/2.171, allocations: 29.08 MB / 1.963 GB, free: 482.4 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/2.182, allocations: 4.256 MB / 1.967 GB, free: 480.2 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004585/2.187, allocations: 2.241 MB / 1.969 GB, free: 478.3 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001277/2.188, allocations: 1.609 MB / 1.971 GB, free: 476.3 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005235/2.193, allocations: 2.439 MB / 1.973 GB, free: 473.9 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003506/2.197, allocations: 444.5 kB / 1.974 GB, free: 473.5 MB / 1.245 GB Notification: Performance of pre-optimization done (n=313): time 9.668e-06/2.197, allocations: 3.938 kB / 1.974 GB, free: 473.5 MB / 1.245 GB Notification: Performance of matching and sorting (n=313): time 0.02198/2.219, allocations: 7.991 MB / 1.981 GB, free: 465.4 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/2.219, allocations: 196.6 kB / 1.982 GB, free: 465.1 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009678/2.228, allocations: 5.968 MB / 1.987 GB, free: 459.2 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0007054/2.229, allocations: 117.7 kB / 1.987 GB, free: 459.1 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.00288/2.232, allocations: 3.297 MB / 1.991 GB, free: 455.8 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009781/2.233, allocations: 1.061 MB / 1.992 GB, free: 454.7 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001931/2.235, allocations: 0.8795 MB / 1.993 GB, free: 453.8 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 4.256e-05/2.235, allocations: 301.1 kB / 1.993 GB, free: 453.5 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004706/2.24, allocations: 2.088 MB / 1.995 GB, free: 451.4 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00551/2.245, allocations: 3.422 MB / 1.998 GB, free: 447.5 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009641/2.255, allocations: 5.067 MB / 2.003 GB, free: 442 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.957e-05/2.255, allocations: 8 kB / 2.003 GB, free: 442 MB / 1.245 GB Notification: Performance of matching and sorting (n=520) (initialization): time 0.01418/2.269, allocations: 6.341 MB / 2.009 GB, free: 435.6 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/2.269, allocations: 16 kB / 2.009 GB, free: 435.6 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.672e-05/2.269, allocations: 28 kB / 2.009 GB, free: 435.5 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/2.272, allocations: 0.7603 MB / 2.01 GB, free: 434.8 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004478/2.276, allocations: 1.063 MB / 2.011 GB, free: 433.7 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003012/2.279, allocations: 4.38 MB / 2.015 GB, free: 429.2 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007804/2.287, allocations: 0.6944 MB / 2.016 GB, free: 428.5 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006332/2.288, allocations: 211.9 kB / 2.016 GB, free: 428.3 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007027/2.295, allocations: 3.296 MB / 2.02 GB, free: 425 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005114/2.3, allocations: 3.271 MB / 2.023 GB, free: 421.2 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008897/2.309, allocations: 4.814 MB / 2.027 GB, free: 415.9 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.136e-05/2.309, allocations: 8 kB / 2.027 GB, free: 415.9 MB / 1.245 GB Notification: Performance of matching and sorting (n=520) (initialization_lambda0): time 0.01225/2.321, allocations: 5.963 MB / 2.033 GB, free: 409.9 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/2.321, allocations: 20 kB / 2.033 GB, free: 409.9 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-05/2.321, allocations: 28 kB / 2.033 GB, free: 409.9 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/2.323, allocations: 0.5548 MB / 2.034 GB, free: 409.3 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003937/2.327, allocations: 0.9868 MB / 2.035 GB, free: 408.3 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/2.329, allocations: 2.363 MB / 2.037 GB, free: 405.9 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007408/2.336, allocations: 0.6229 MB / 2.038 GB, free: 405.3 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005863/2.337, allocations: 203.9 kB / 2.038 GB, free: 405.1 MB / 1.245 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * Number of states: 0 () * Number of discrete variables: 18 (terUniMulZonMul.con1.y,terUniMul.con1.y,ter.con1.y,terUniMulZonMul.hex.flowRegime_nominal,terUniMul.hex.flowRegime_nominal,ter.hex.flowRegime_nominal,terUniMulZonMul.greThr.greHys.y,$PRE.terUniMulZonMul.greThr.greHys.y,terUniMulZonMul.hex.flowRegime,terUniMul.greThr.greHys.y,$PRE.terUniMul.greThr.greHys.y,terUniMul.hex.flowRegime,ter.greThr.greHys.y,$PRE.ter.greThr.greHys.y,ter.hex.flowRegime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (465): * Single equations (assignments): 456 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 3 * 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): 3 systems {1, 1, 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): 3 systems {(1,16), (1,18), (1,18)} Notification: Performance of prepare postOptimizeDAE: time 0.001194/2.338, allocations: 462.2 kB / 2.038 GB, free: 404.6 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002129/2.34, allocations: 0.6597 MB / 2.039 GB, free: 403.9 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01299/2.353, allocations: 5.416 MB / 2.044 GB, free: 398.5 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-05/2.353, allocations: 39.81 kB / 2.044 GB, free: 398.4 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/2.353, allocations: 0 / 2.044 GB, free: 398.4 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008924/2.362, allocations: 4.282 MB / 2.049 GB, free: 394.1 MB / 1.245 GB 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 postOpt removeSimpleEquations (simulation): time 0.03057/2.392, allocations: 14.92 MB / 2.063 GB, free: 378.6 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.348e-05/2.393, allocations: 15.66 kB / 2.063 GB, free: 378.6 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003589/2.396, allocations: 0.7609 MB / 2.064 GB, free: 377.9 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/2.398, allocations: 0.6123 MB / 2.064 GB, free: 377.2 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003223/2.398, allocations: 103.9 kB / 2.065 GB, free: 377.1 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002894/2.401, allocations: 4.32 MB / 2.069 GB, free: 372.7 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/2.401, allocations: 15.94 kB / 2.069 GB, free: 372.7 MB / 1.245 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "ter.hex.flowRegime = if ter.hex.C1_flow * ter.hex.C2_flow >= 0.0 then Buildings.Fluid.Types.HeatExchangerFlowRegime.CounterFlow else Buildings.Fluid.Types.HeatExchangerFlowRegime.ParallelFlow" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03565/2.437, allocations: 14.28 MB / 2.083 GB, free: 358 MB / 1.245 GB Error: post-optimization module symbolicJacobian (simulation) failed.