Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow.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.DryCoilEffectivenessNTUMassFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7717/0.7717, allocations: 143.4 MB / 159.2 MB, free: 4.883 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.001795/0.001795, allocations: 188.5 kB / 191.9 MB, free: 5.715 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.34/1.34, allocations: 222.9 MB / 447.3 MB, free: 5.875 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.001035/0.001035, allocations: 103.7 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.001928/0.001928, allocations: 273.2 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 83.86 kB / 0.6885 GB, free: 3.836 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3254, allocations: 81.29 MB / 0.7679 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow): time 0.4857/0.8111, allocations: 204.5 MB / 0.9676 GB, free: 15.64 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.01691/0.828, allocations: 13.82 MB / 0.9811 GB, free: 13 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.8303, allocations: 45.06 kB / 0.9812 GB, free: 13 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.001979/0.8323, allocations: 0.6522 MB / 0.9818 GB, free: 12.85 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.005461/0.8378, allocations: 2.058 MB / 0.9838 GB, free: 12 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.004873/0.8427, allocations: 1.823 MB / 0.9856 GB, free: 10.91 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.004892/0.8476, allocations: 4.176 MB / 0.9897 GB, free: 8.711 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.8494, allocations: 0.9998 MB / 0.9907 GB, free: 8.082 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005416/0.8548, allocations: 1.669 MB / 0.9923 GB, free: 7.23 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002059/0.8569, allocations: 1.044 MB / 0.9933 GB, free: 6.703 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002456/0.8572, allocations: 67.56 kB / 0.9934 GB, free: 6.703 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005793/0.863, allocations: 3.191 MB / 0.9965 GB, free: 5.125 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005591/0.8635, allocations: 368.2 kB / 0.9968 GB, free: 4.879 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.8649, allocations: 0.7274 MB / 0.9975 GB, free: 4.418 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.005985/0.8709, allocations: 3.129 MB / 1.001 GB, free: 2.598 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.8709, allocations: 6.25 kB / 1.001 GB, free: 2.594 MB / 0.573 GB Notification: Performance of FrontEnd: time 9.42e-07/0.8709, allocations: 0 / 1.001 GB, free: 2.594 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.194e-05/0.871, allocations: 0 / 1.001 GB, free: 2.594 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.004387/0.8754, allocations: 2.119 MB / 1.003 GB, free: 0.5391 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.8754, allocations: 11.97 kB / 1.003 GB, free: 0.5273 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003021/0.8784, allocations: 0.5133 MB / 1.003 GB, free: 12 kB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002176/0.8806, allocations: 1.093 MB / 1.004 GB, free: 14.89 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006631/0.8813, allocations: 182.2 kB / 1.004 GB, free: 14.71 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.8815, allocations: 100 kB / 1.005 GB, free: 14.62 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/0.8841, allocations: 1.262 MB / 1.006 GB, free: 13.34 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.8842, allocations: 3.938 kB / 1.006 GB, free: 13.34 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.8843, allocations: 36 kB / 1.006 GB, free: 13.3 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.271e-05/0.8843, allocations: 45.98 kB / 1.006 GB, free: 13.25 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003187/0.8875, allocations: 1.292 MB / 1.007 GB, free: 11.96 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.008043/0.8956, allocations: 4.877 MB / 1.012 GB, free: 6.824 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.8982, allocations: 0.9934 MB / 1.013 GB, free: 5.824 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.8995, allocations: 0.5643 MB / 1.013 GB, free: 5.254 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001156/0.9006, allocations: 0.8355 MB / 1.014 GB, free: 4.254 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001482/0.9021, allocations: 0.6886 MB / 1.015 GB, free: 3.551 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=85): time 4.749e-06/0.9021, allocations: 3.938 kB / 1.015 GB, free: 3.547 MB / 0.5886 GB Notification: Performance of matching and sorting (n=85): time 0.004418/0.9066, allocations: 1.741 MB / 1.017 GB, free: 1.785 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.328e-05/0.9067, allocations: 119.5 kB / 1.017 GB, free: 1.641 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.908, allocations: 1.042 MB / 1.018 GB, free: 0.5859 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.9081, allocations: 45.7 kB / 1.018 GB, free: 0.5352 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004256/0.9086, allocations: 0.5219 MB / 1.018 GB, free: 12 kB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002454/0.9088, allocations: 276.1 kB / 1.019 GB, free: 15.74 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/0.9092, allocations: 210.5 kB / 1.019 GB, free: 15.53 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.9093, allocations: 341.9 kB / 1.019 GB, free: 15.19 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.9106, allocations: 0.5044 MB / 1.02 GB, free: 14.68 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.9121, allocations: 0.7115 MB / 1.02 GB, free: 13.91 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002649/0.9148, allocations: 1.195 MB / 1.021 GB, free: 12.65 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.9148, allocations: 4 kB / 1.021 GB, free: 12.65 MB / 0.6042 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003499/0.9183, allocations: 1.479 MB / 1.023 GB, free: 11.15 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.928e-05/0.9184, allocations: 71.33 kB / 1.023 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.9184, allocations: 4.094 kB / 1.023 GB, free: 11.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.9184, allocations: 12 kB / 1.023 GB, free: 11.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.9197, allocations: 255.6 kB / 1.023 GB, free: 10.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.9197, allocations: 8 kB / 1.023 GB, free: 10.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.9214, allocations: 198.8 kB / 1.023 GB, free: 10.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001557/0.9215, allocations: 47.97 kB / 1.023 GB, free: 10.55 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001698/0.9232, allocations: 0.7478 MB / 1.024 GB, free: 9.797 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001479/0.9247, allocations: 0.6959 MB / 1.025 GB, free: 9.039 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002599/0.9273, allocations: 1.184 MB / 1.026 GB, free: 7.793 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.537e-06/0.9274, allocations: 3.938 kB / 1.026 GB, free: 7.789 MB / 0.6042 GB Notification: Performance of matching and sorting (n=119) (initialization_lambda0): time 0.003504/0.9309, allocations: 1.475 MB / 1.027 GB, free: 6.293 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.07e-05/0.9309, allocations: 71.38 kB / 1.028 GB, free: 6.211 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.931, allocations: 4 kB / 1.028 GB, free: 6.207 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.931, allocations: 8 kB / 1.028 GB, free: 6.199 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.9322, allocations: 255.7 kB / 1.028 GB, free: 5.949 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.846e-05/0.9323, allocations: 11.92 kB / 1.028 GB, free: 5.938 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/0.9338, allocations: 179.1 kB / 1.028 GB, free: 5.762 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.9339, allocations: 43.98 kB / 1.028 GB, free: 5.719 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 16 (hex.flowRegime_nominal,hex.flowRegime,mAirGai.nextEventScaled,mAirGai.nextEvent,$PRE.mAirGai.nextEvent,mAirGai.last,mAirGai.b,mAirGai.a,mWatGai.nextEventScaled,mWatGai.nextEvent,$PRE.mWatGai.nextEvent,mWatGai.last,mWatGai.b,mWatGai.a,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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 0.0003303/0.9342, allocations: 310.3 kB / 1.028 GB, free: 5.398 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003029/0.9345, allocations: 130.4 kB / 1.028 GB, free: 5.27 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.938, allocations: 1.494 MB / 1.03 GB, free: 3.762 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.938, allocations: 8 kB / 1.03 GB, free: 3.754 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.938, allocations: 0 / 1.03 GB, free: 3.754 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.938, allocations: 3.984 kB / 1.03 GB, free: 3.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005775/0.9438, allocations: 2.934 MB / 1.033 GB, free: 0.7266 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.9439, allocations: 4 kB / 1.033 GB, free: 0.7227 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009984/0.9449, allocations: 196.1 kB / 1.033 GB, free: 0.5312 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.728e-05/0.9449, allocations: 7.938 kB / 1.033 GB, free: 0.5234 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.43e-05/0.945, allocations: 31.98 kB / 1.033 GB, free: 0.4922 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.959e-06/0.945, allocations: 8 kB / 1.033 GB, free: 496 kB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.945, allocations: 7.938 kB / 1.033 GB, free: 488 kB / 0.6042 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.01951/0.9645, allocations: 4.986 MB / 1.038 GB, free: 11.35 MB / 0.6198 GB Error: post-optimization module symbolicJacobian (simulation) failed.