Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7711/0.7711, allocations: 143.4 MB / 159.2 MB, free: 4.91 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 187.7 kB / 191.9 MB, free: 5.727 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 447.3 MB, free: 5.844 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 107.5 kB / 0.517 GB, free: 3.715 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001857/0.001857, allocations: 283 kB / 0.5973 GB, free: 49.39 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 83.88 kB / 0.6885 GB, free: 3.871 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2984, allocations: 81.3 MB / 0.7679 GB, free: 27.68 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl): time 0.5008/0.7993, allocations: 208.7 MB / 0.9717 GB, free: 15.48 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.0161/0.8155, allocations: 10.83 MB / 0.9823 GB, free: 12.57 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002981/0.8185, allocations: 57.81 kB / 0.9823 GB, free: 12.57 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.8213, allocations: 0.6779 MB / 0.983 GB, free: 12.41 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.008343/0.8297, allocations: 2.255 MB / 0.9852 GB, free: 11.27 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006823/0.8366, allocations: 2.025 MB / 0.9872 GB, free: 10.08 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.006586/0.8432, allocations: 4.605 MB / 0.9917 GB, free: 7.629 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001921/0.8451, allocations: 1.152 MB / 0.9928 GB, free: 6.902 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004003/0.8492, allocations: 1.751 MB / 0.9945 GB, free: 5.988 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002338/0.8515, allocations: 1.149 MB / 0.9956 GB, free: 5.371 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002768/0.8518, allocations: 77.88 kB / 0.9957 GB, free: 5.371 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005551/0.8574, allocations: 3.187 MB / 0.9988 GB, free: 3.797 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005501/0.8579, allocations: 398.4 kB / 0.9992 GB, free: 3.52 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.8592, allocations: 0.8197 MB / 1 GB, free: 2.992 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.00541/0.8646, allocations: 3.334 MB / 1.003 GB, free: 0.5 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.8646, allocations: 0 / 1.003 GB, free: 0.5 MB / 0.573 GB Notification: Performance of FrontEnd: time 9.82e-07/0.8646, allocations: 4 kB / 1.003 GB, free: 0.4961 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.266e-05/0.8646, allocations: 0 / 1.003 GB, free: 0.4961 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.004883/0.8695, allocations: 2.354 MB / 1.006 GB, free: 14.11 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.8696, allocations: 8.031 kB / 1.006 GB, free: 14.1 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002796/0.8724, allocations: 0.532 MB / 1.006 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002351/0.8747, allocations: 1.247 MB / 1.007 GB, free: 12.3 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006533/0.8754, allocations: 201.8 kB / 1.007 GB, free: 12.1 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.8756, allocations: 112 kB / 1.008 GB, free: 11.99 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.8782, allocations: 1.324 MB / 1.009 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.8782, allocations: 0 / 1.009 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.8784, allocations: 43.27 kB / 1.009 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-05/0.8784, allocations: 46 kB / 1.009 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.8817, allocations: 1.354 MB / 1.01 GB, free: 9.199 MB / 0.5886 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.008556/0.8903, allocations: 5.292 MB / 1.015 GB, free: 3.668 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002623/0.8929, allocations: 1.035 MB / 1.016 GB, free: 2.602 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.8942, allocations: 0.5497 MB / 1.017 GB, free: 2.051 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001075/0.8953, allocations: 0.7524 MB / 1.018 GB, free: 1.156 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001512/0.8968, allocations: 0.6094 MB / 1.018 GB, free: 0.5312 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=82): time 3.116e-06/0.8968, allocations: 0 / 1.018 GB, free: 0.5312 MB / 0.5886 GB Notification: Performance of matching and sorting (n=82): time 0.004553/0.9014, allocations: 1.593 MB / 1.02 GB, free: 14.93 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.9015, allocations: 64 kB / 1.02 GB, free: 14.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.9033, allocations: 1.329 MB / 1.021 GB, free: 13.52 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.9034, allocations: 49.7 kB / 1.021 GB, free: 13.46 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005136/0.9039, allocations: 0.6437 MB / 1.022 GB, free: 12.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.9042, allocations: 277.1 kB / 1.022 GB, free: 12.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003828/0.9046, allocations: 246.7 kB / 1.022 GB, free: 12.3 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.9047, allocations: 341.9 kB / 1.023 GB, free: 11.96 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.9061, allocations: 0.5173 MB / 1.023 GB, free: 11.44 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/0.9078, allocations: 0.7843 MB / 1.024 GB, free: 10.57 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002729/0.9105, allocations: 1.194 MB / 1.025 GB, free: 9.297 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.9105, allocations: 4 kB / 1.025 GB, free: 9.293 MB / 0.6042 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003739/0.9143, allocations: 1.485 MB / 1.027 GB, free: 7.793 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.478e-05/0.9143, allocations: 39.25 kB / 1.027 GB, free: 7.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.9143, allocations: 4 kB / 1.027 GB, free: 7.746 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.9144, allocations: 12 kB / 1.027 GB, free: 7.734 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/0.9162, allocations: 335.6 kB / 1.027 GB, free: 7.406 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007138/0.9169, allocations: 1.199 MB / 1.028 GB, free: 6.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/0.9186, allocations: 223.7 kB / 1.028 GB, free: 5.941 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.9188, allocations: 63.97 kB / 1.028 GB, free: 5.879 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001842/0.9206, allocations: 0.7562 MB / 1.029 GB, free: 5.117 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001599/0.9222, allocations: 0.7776 MB / 1.03 GB, free: 4.25 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002782/0.925, allocations: 1.179 MB / 1.031 GB, free: 2.992 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.253e-06/0.9251, allocations: 4 kB / 1.031 GB, free: 2.988 MB / 0.6042 GB Notification: Performance of matching and sorting (n=134) (initialization_lambda0): time 0.003722/0.9288, allocations: 1.481 MB / 1.033 GB, free: 1.496 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.876e-05/0.9288, allocations: 33.7 kB / 1.033 GB, free: 1.457 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.9289, allocations: 11.92 kB / 1.033 GB, free: 1.445 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.9289, allocations: 12 kB / 1.033 GB, free: 1.434 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.9303, allocations: 319.7 kB / 1.033 GB, free: 1.121 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.201e-05/0.9303, allocations: 11.98 kB / 1.033 GB, free: 1.109 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.932, allocations: 187.1 kB / 1.033 GB, free: 0.9258 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.9322, allocations: 55.97 kB / 1.033 GB, free: 0.8711 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 8 (hex.flowRegime_nominal,hex.flowRegime,TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,P.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003305/0.9325, allocations: 249 kB / 1.033 GB, free: 0.6211 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.9329, allocations: 154 kB / 1.034 GB, free: 480 kB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003538/0.9364, allocations: 1.333 MB / 1.035 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.9365, allocations: 11.98 kB / 1.035 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.9365, allocations: 4 kB / 1.035 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.9365, allocations: 3.984 kB / 1.035 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005781/0.9423, allocations: 2.851 MB / 1.038 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.9423, allocations: 4 kB / 1.038 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.9435, allocations: 236 kB / 1.038 GB, free: 11.95 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.9436, allocations: 8 kB / 1.038 GB, free: 11.94 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.134e-05/0.9436, allocations: 27.98 kB / 1.038 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005295/0.9442, allocations: 1.195 MB / 1.039 GB, free: 10.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.9442, allocations: 11.94 kB / 1.039 GB, free: 10.66 MB / 0.6198 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "hex.flowRegime = if hex.C1_flow * hex.C2_flow >= 0.0 then BuildingSystems.Fluid.Types.HeatExchangerFlowRegime.CounterFlow else BuildingSystems.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.01777/0.962, allocations: 4.559 MB / 1.044 GB, free: 5.953 MB / 0.6198 GB Error: post-optimization module symbolicJacobian (simulation) failed.