Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal.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.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(BuildingSystems.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8861/0.8861, allocations: 143.4 MB / 159.2 MB, free: 4.902 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.001132/0.001132, allocations: 184.5 kB / 191.9 MB, free: 5.707 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.386/1.386, 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.001377/0.001377, allocations: 95.22 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.001825/0.001825, allocations: 281 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 75.88 kB / 0.6886 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.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.045/0.3705, allocations: 60.35 MB / 0.8269 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01938/0.3899, allocations: 14.69 MB / 0.8412 GB, free: 400 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002399/0.3924, allocations: 59.62 kB / 0.8413 GB, free: 340 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.394, allocations: 0.5827 MB / 0.8418 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.005213/0.3993, allocations: 2.072 MB / 0.8439 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.003589/0.4029, allocations: 1.475 MB / 0.8453 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.005316/0.4082, allocations: 5.273 MB / 0.8505 GB, free: 6.91 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.4096, allocations: 1.059 MB / 0.8515 GB, free: 5.82 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002224/0.4118, allocations: 1.361 MB / 0.8528 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/0.413, allocations: 1.089 MB / 0.8539 GB, free: 3.359 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.4131, allocations: 64 kB / 0.8539 GB, free: 3.297 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003383/0.4165, allocations: 1.598 MB / 0.8555 GB, free: 1.695 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002742/0.4168, allocations: 266.8 kB / 0.8558 GB, free: 1.434 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0007577/0.4176, allocations: 0.7151 MB / 0.8565 GB, free: 0.7148 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.003581/0.4211, allocations: 2.645 MB / 0.859 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4212, allocations: 0 / 0.859 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4212, allocations: 0 / 0.859 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.774e-05/0.4212, allocations: 0 / 0.859 GB, free: 14.06 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.00307/0.4243, allocations: 1.837 MB / 0.8608 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4243, allocations: 8.031 kB / 0.8608 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005073/0.4248, allocations: 163.1 kB / 0.861 GB, free: 12 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.4271, allocations: 1.276 MB / 0.8622 GB, free: 10.67 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.4272, allocations: 66 kB / 0.8623 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.4273, allocations: 84 kB / 0.8624 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.4287, allocations: 0.9592 MB / 0.8633 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.4288, allocations: 0 / 0.8633 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-05/0.4289, allocations: 40 kB / 0.8634 GB, free: 9.477 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.14e-05/0.4289, allocations: 27.94 kB / 0.8634 GB, free: 9.449 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.43, allocations: 0.6635 MB / 0.864 GB, free: 8.789 MB / 0.5261 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.00507/0.4351, allocations: 5.2 MB / 0.8691 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007125/0.4358, allocations: 410.1 kB / 0.8695 GB, free: 2.758 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003548/0.4362, allocations: 244.6 kB / 0.8697 GB, free: 2.52 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001235/0.4374, allocations: 1.587 MB / 0.8713 GB, free: 0.582 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.4375, allocations: 42.98 kB / 0.8713 GB, free: 0.5312 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=53): time 2.465e-06/0.4375, allocations: 4 kB / 0.8713 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.002216/0.4397, allocations: 0.9328 MB / 0.8722 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.4397, allocations: 59.84 kB / 0.8723 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.441, allocations: 0.9765 MB / 0.8733 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/0.441, allocations: 33.7 kB / 0.8733 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003994/0.4414, allocations: 0.5696 MB / 0.8738 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.4416, allocations: 193.2 kB / 0.874 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.4418, allocations: 142.1 kB / 0.8742 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4419, allocations: 330 kB / 0.8745 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003446/0.4423, allocations: 207.7 kB / 0.8747 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/0.4428, allocations: 407.9 kB / 0.8751 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008931/0.4437, allocations: 0.6256 MB / 0.8757 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4437, allocations: 3.938 kB / 0.8757 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001576/0.4453, allocations: 0.8264 MB / 0.8765 GB, free: 11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.4453, allocations: 8 kB / 0.8765 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.889e-05/0.4453, allocations: 8 kB / 0.8765 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005324/0.4459, allocations: 113.2 kB / 0.8766 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004244/0.4463, allocations: 139.7 kB / 0.8767 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004391/0.4468, allocations: 0.6029 MB / 0.8773 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007314/0.4475, allocations: 115.2 kB / 0.8774 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-05/0.4476, allocations: 39.98 kB / 0.8775 GB, free: 9.953 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006097/0.4482, allocations: 433.7 kB / 0.8779 GB, free: 9.523 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004667/0.4487, allocations: 393 kB / 0.8783 GB, free: 9.055 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008186/0.4495, allocations: 0.6256 MB / 0.8789 GB, free: 8.355 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.901e-06/0.4495, allocations: 8 kB / 0.8789 GB, free: 8.348 MB / 0.5417 GB Notification: Performance of matching and sorting (n=84) (initialization_lambda0): time 0.001549/0.4511, allocations: 0.8185 MB / 0.8797 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.4511, allocations: 9.406 kB / 0.8797 GB, free: 7.508 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.4511, allocations: 11.98 kB / 0.8797 GB, free: 7.496 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.4516, allocations: 117.3 kB / 0.8798 GB, free: 7.379 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004109/0.452, allocations: 135.8 kB / 0.88 GB, free: 7.246 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000393/0.4524, allocations: 0.5953 MB / 0.8805 GB, free: 6.625 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006696/0.4531, allocations: 103.4 kB / 0.8806 GB, free: 6.523 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.194e-05/0.4532, allocations: 39.92 kB / 0.8807 GB, free: 6.484 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (79): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001814/0.4534, allocations: 217.8 kB / 0.8809 GB, free: 6.266 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/0.4535, allocations: 110.7 kB / 0.881 GB, free: 6.156 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.4555, allocations: 1.063 MB / 0.882 GB, free: 5.109 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-05/0.4555, allocations: 15.98 kB / 0.882 GB, free: 5.094 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4556, allocations: 0 / 0.882 GB, free: 5.094 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001261/0.4568, allocations: 0.8068 MB / 0.8828 GB, free: 4.258 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.46, allocations: 2.086 MB / 0.8849 GB, free: 2.102 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.46, allocations: 0 / 0.8849 GB, free: 2.102 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.4604, allocations: 107.8 kB / 0.885 GB, free: 1.996 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003222/0.4607, allocations: 76.89 kB / 0.885 GB, free: 1.918 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.206e-05/0.4608, allocations: 19.98 kB / 0.8851 GB, free: 1.898 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003813/0.4612, allocations: 0.5913 MB / 0.8856 GB, free: 1.281 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4612, allocations: 0 / 0.8856 GB, free: 1.281 MB / 0.5417 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "(pip.res.port_a.h_outflow, pip.del.port_b.h_outflow) = spatialDistribution(0, senTemIn.port_a.h_outflow, senTemOut.port_b.h_outflow, pip.del.x / pip.del.length, pip.v >= 0.0, {0.0, 1.0}, {pip.del.h_ini_in, pip.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.00543/0.4666, allocations: 2.597 MB / 0.8882 GB, free: 14.62 MB / 0.5573 GB Error: post-optimization module symbolicJacobian (simulation) failed.