Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized.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.FixedResistances.Examples.PlugFlowPipeDiscretized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7972/0.7972, allocations: 143.4 MB / 159.2 MB, free: 4.863 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.001309/0.001309, allocations: 190.8 kB / 191.9 MB, free: 5.723 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.395/1.395, allocations: 222.9 MB / 447.3 MB, free: 5.852 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.00107/0.00107, allocations: 99.77 kB / 0.517 GB, free: 3.734 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001897/0.001897, allocations: 286.7 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 75.89 kB / 0.6885 GB, free: 3.852 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3644, allocations: 81.29 MB / 0.7679 GB, free: 27.67 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.PlugFlowPipeDiscretized): time 0.05106/0.4155, allocations: 66.14 MB / 0.8325 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01993/0.4355, allocations: 16.77 MB / 0.8489 GB, free: 8.508 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002155/0.4377, allocations: 55.62 kB / 0.8489 GB, free: 8.453 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.4398, allocations: 0.6526 MB / 0.8496 GB, free: 7.797 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.005826/0.4457, allocations: 2.357 MB / 0.8519 GB, free: 5.43 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.003916/0.4496, allocations: 1.605 MB / 0.8534 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.04093/0.4906, allocations: 45.61 MB / 0.898 GB, free: 6.109 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.6409/1.132, allocations: 12.42 MB / 0.9101 GB, free: 10.29 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01593/1.147, allocations: 8.79 MB / 0.9187 GB, free: 9.32 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01732/1.165, allocations: 9.172 MB / 0.9276 GB, free: 7.723 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 0.00325/1.168, allocations: 0.5702 MB / 0.9282 GB, free: 7.723 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01045/1.179, allocations: 2.116 MB / 0.9303 GB, free: 7.723 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 0.004295/1.183, allocations: 2.284 MB / 0.9325 GB, free: 7.301 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 0.013/1.196, allocations: 6.185 MB / 0.9385 GB, free: 5.613 MB / 0.5574 GB Notification: Performance of NFConvertDAE.convert: time 0.02207/1.218, allocations: 21.01 MB / 0.9591 GB, free: 2.254 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/1.218, allocations: 0 / 0.9591 GB, free: 2.254 MB / 0.5574 GB Notification: Performance of FrontEnd: time 1.643e-06/1.218, allocations: 0 / 0.9591 GB, free: 2.254 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 0.0006802/1.219, allocations: 4 kB / 0.9591 GB, free: 2.25 MB / 0.5574 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1830 * Number of variables: 1830 Notification: Performance of Generate backend data structure: time 0.0437/1.262, allocations: 13.02 MB / 0.9718 GB, free: 11.89 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/1.263, allocations: 10.94 kB / 0.9718 GB, free: 11.89 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008713/1.271, allocations: 1.281 MB / 0.973 GB, free: 11.26 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02857/1.3, allocations: 13.12 MB / 0.9858 GB, free: 7.113 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005018/1.3, allocations: 0.5258 MB / 0.9864 GB, free: 6.977 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003443/1.304, allocations: 0.7063 MB / 0.987 GB, free: 6.738 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02883/1.333, allocations: 11.19 MB / 0.998 GB, free: 15.99 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002624/1.333, allocations: 37.14 kB / 0.998 GB, free: 15.98 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001475/1.335, allocations: 303.2 kB / 0.9983 GB, free: 15.75 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/1.335, allocations: 214.5 kB / 0.9985 GB, free: 15.73 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0178/1.353, allocations: 9.247 MB / 1.008 GB, free: 6.855 MB / 0.5887 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.07512/1.428, allocations: 51.13 MB / 1.057 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007913/1.436, allocations: 4.854 MB / 1.062 GB, free: 12.26 MB / 0.6512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004385/1.44, allocations: 2.832 MB / 1.065 GB, free: 9.418 MB / 0.6512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001663/1.442, allocations: 1.715 MB / 1.067 GB, free: 7.383 MB / 0.6512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.781e-05/1.442, allocations: 86.27 kB / 1.067 GB, free: 7.289 MB / 0.6512 GB Notification: Performance of pre-optimization done (n=420): time 7.704e-06/1.442, allocations: 0 / 1.067 GB, free: 7.289 MB / 0.6512 GB Notification: Performance of matching and sorting (n=420): time 0.01642/1.458, allocations: 7.806 MB / 1.074 GB, free: 15.46 MB / 0.6668 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/1.458, allocations: 94.55 kB / 1.074 GB, free: 15.36 MB / 0.6668 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0278/1.486, allocations: 9.854 MB / 1.084 GB, free: 5.535 MB / 0.6668 GB Notification: Performance of collectPreVariables (initialization): time 0.00128/1.487, allocations: 105.7 kB / 1.084 GB, free: 5.426 MB / 0.6668 GB Notification: Performance of collectInitialEqns (initialization): time 0.005419/1.493, allocations: 4.669 MB / 1.089 GB, free: 0.7383 MB / 0.6668 GB Notification: Performance of collectInitialBindings (initialization): time 0.002677/1.496, allocations: 1.491 MB / 1.09 GB, free: 15.26 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002084/1.498, allocations: 1.099 MB / 1.091 GB, free: 14.15 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 9.289e-05/1.498, allocations: 301.1 kB / 1.092 GB, free: 13.85 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004562/1.502, allocations: 2.645 MB / 1.094 GB, free: 11.19 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005902/1.508, allocations: 4.162 MB / 1.098 GB, free: 6.391 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01166/1.52, allocations: 7.38 MB / 1.105 GB, free: 14.55 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.812e-05/1.52, allocations: 20 kB / 1.105 GB, free: 14.53 MB / 0.698 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01678/1.537, allocations: 7.901 MB / 1.113 GB, free: 6.883 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.167e-05/1.537, allocations: 33.77 kB / 1.113 GB, free: 6.852 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/1.537, allocations: 75.98 kB / 1.113 GB, free: 6.777 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.738e-05/1.537, allocations: 72 kB / 1.113 GB, free: 6.707 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004387/1.542, allocations: 1.205 MB / 1.114 GB, free: 5.582 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001178/1.542, allocations: 108.3 kB / 1.115 GB, free: 5.496 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00916/1.551, allocations: 1.029 MB / 1.116 GB, free: 4.461 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001254/1.552, allocations: 279.9 kB / 1.116 GB, free: 4.188 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.012/1.564, allocations: 6.371 MB / 1.122 GB, free: 13.8 MB / 0.7137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005832/1.57, allocations: 4.161 MB / 1.126 GB, free: 9.004 MB / 0.7137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01092/1.581, allocations: 7.37 MB / 1.133 GB, free: 1.168 MB / 0.7137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.426e-05/1.581, allocations: 18.66 kB / 1.133 GB, free: 1.152 MB / 0.7137 GB Notification: Performance of matching and sorting (n=694) (initialization_lambda0): time 0.01626/1.597, allocations: 7.906 MB / 1.141 GB, free: 9.5 MB / 0.7293 GB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/1.597, allocations: 24 kB / 1.141 GB, free: 9.477 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001428/1.598, allocations: 67.98 kB / 1.141 GB, free: 9.41 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.011e-05/1.598, allocations: 76 kB / 1.141 GB, free: 9.336 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004242/1.602, allocations: 1.204 MB / 1.142 GB, free: 8.211 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001064/1.602, allocations: 109.2 kB / 1.143 GB, free: 8.125 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008914/1.611, allocations: 0.9135 MB / 1.143 GB, free: 7.207 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/1.612, allocations: 279.9 kB / 1.144 GB, free: 6.934 MB / 0.7293 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 211 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (674): * Single equations (assignments): 654 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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.001483/1.614, allocations: 0.5135 MB / 1.144 GB, free: 6.496 MB / 0.7293 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003081/1.617, allocations: 0.8297 MB / 1.145 GB, free: 5.656 MB / 0.7293 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0162/1.633, allocations: 8.916 MB / 1.154 GB, free: 12.9 MB / 0.7449 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.823e-05/1.633, allocations: 75.95 kB / 1.154 GB, free: 12.82 MB / 0.7449 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.633, allocations: 3.938 kB / 1.154 GB, free: 12.82 MB / 0.7449 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009379/1.642, allocations: 6.114 MB / 1.16 GB, free: 6.621 MB / 0.7449 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04361/1.686, allocations: 20.03 MB / 1.179 GB, free: 2.441 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.667e-05/1.686, allocations: 35.98 kB / 1.179 GB, free: 2.406 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003589/1.69, allocations: 0.9448 MB / 1.18 GB, free: 1.508 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.686e-05/1.69, allocations: 32 kB / 1.18 GB, free: 1.477 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004818/1.69, allocations: 195.9 kB / 1.18 GB, free: 1.285 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.934e-05/1.69, allocations: 41.19 kB / 1.181 GB, free: 1.25 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/1.69, allocations: 21.19 kB / 1.181 GB, free: 1.234 MB / 0.7605 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "(pip.pipSeg[1].senMasFlo.port_a.h_outflow, pip.pipSeg[1].del.port_b.h_outflow) = spatialDistribution(0, senTemIn.port_a.h_outflow, pip.pipSeg[1].port_b.h_outflow, pip.pipSeg[1].del.x / pip.pipSeg[1].del.length, pip.v >= 0.0, {0.0, 1.0}, {pip.pipSeg[1].del.h_ini_in, pip.pipSeg[1].del.h_ini_out})" 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.389/2.079, allocations: 19.7 MB / 1.2 GB, free: 284.9 MB / 0.7605 GB Error: post-optimization module symbolicJacobian (simulation) failed.