Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg.conf.json 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/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|DataReader.y.5.|senTem_in.T|DataReader.y.3.|senTem_out.T",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|DataReader.y.5.|senTem_in.T|DataReader.y.3.|senTem_out.T",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009379/0.0009377, allocations: 102.6 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009746/0.0009743, allocations: 176.6 kB / 16.58 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.2 MB / 240.6 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.57/2.57, allocations: 390.5 MB / 0.6662 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003633, allocations: 12 kB / 0.8154 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.958/0.9583, allocations: 142.3 MB / 0.9544 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.PlugFlowULg): time 0.07129/1.03, allocations: 70.94 MB / 1.024 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02965/1.059, allocations: 18.75 MB / 1.042 GB, free: 6.297 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004425/1.064, allocations: 75.5 kB / 1.042 GB, free: 6.223 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003365/1.067, allocations: 0.687 MB / 1.043 GB, free: 5.531 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.008942/1.076, allocations: 2.276 MB / 1.045 GB, free: 3.246 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.005965/1.082, allocations: 1.54 MB / 1.046 GB, free: 1.715 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.009525/1.092, allocations: 5.789 MB / 1.052 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002993/1.095, allocations: 1.229 MB / 1.053 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005389/1.1, allocations: 1.684 MB / 1.055 GB, free: 8.953 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003518/1.104, allocations: 1.342 MB / 1.056 GB, free: 7.605 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0004433/1.104, allocations: 72 kB / 1.056 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005003/1.109, allocations: 1.388 MB / 1.058 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0005524/1.11, allocations: 342.4 kB / 1.058 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001124/1.111, allocations: 424.5 kB / 1.058 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.004383/1.115, allocations: 2.467 MB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/1.115, allocations: 4 kB / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.015e-06/1.115, allocations: 0 / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.865e-05/1.115, allocations: 0 / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.004296/1.12, allocations: 2.147 MB / 1.063 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/1.12, allocations: 12.02 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001782/1.122, allocations: 433.1 kB / 1.063 GB, free: 276 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003712/1.125, allocations: 1.722 MB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/1.125, allocations: 94.44 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/1.126, allocations: 128 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002643/1.128, allocations: 1.429 MB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/1.128, allocations: 4 kB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/1.128, allocations: 52 kB / 1.067 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.616e-05/1.128, allocations: 35.98 kB / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002296/1.131, allocations: 1.09 MB / 1.068 GB, free: 11.55 MB / 0.8262 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.0103/1.141, allocations: 7.872 MB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003229/1.144, allocations: 1.074 MB / 1.077 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008423/1.145, allocations: 447.8 kB / 1.077 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001894/1.147, allocations: 1.868 MB / 1.079 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/1.148, allocations: 0.4983 MB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=84): time 4.087e-06/1.148, allocations: 0 / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of matching and sorting (n=84): time 0.003228/1.151, allocations: 1.301 MB / 1.081 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/1.152, allocations: 85.77 kB / 1.081 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/1.154, allocations: 1.363 MB / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001061/1.154, allocations: 41.7 kB / 1.082 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008163/1.155, allocations: 0.8216 MB / 1.083 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/1.155, allocations: 307.7 kB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.033e-05/1.155, allocations: 20 kB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002134/1.156, allocations: 349.9 kB / 1.083 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007902/1.156, allocations: 370.4 kB / 1.084 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/1.158, allocations: 0.6754 MB / 1.084 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009723/1.159, allocations: 454.8 kB / 1.085 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/1.159, allocations: 7.938 kB / 1.085 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002775/1.161, allocations: 1.25 MB / 1.086 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003383/1.162, allocations: 361.3 kB / 1.086 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-05/1.162, allocations: 12 kB / 1.086 GB, free: 7.066 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.996e-05/1.162, allocations: 16 kB / 1.086 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/1.163, allocations: 259.6 kB / 1.087 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.392e-05/1.163, allocations: 15.94 kB / 1.087 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/1.164, allocations: 198.7 kB / 1.087 GB, free: 6.586 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/1.164, allocations: 59.92 kB / 1.087 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.357e-06/1.165, allocations: 4.938 kB / 1.087 GB, free: 6.523 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002278/1.167, allocations: 1.078 MB / 1.088 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/1.167, allocations: 12 kB / 1.088 GB, free: 5.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/1.167, allocations: 16 kB / 1.088 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009284/1.168, allocations: 259.9 kB / 1.088 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/1.168, allocations: 19.94 kB / 1.088 GB, free: 5.141 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/1.169, allocations: 175 kB / 1.089 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.992e-05/1.17, allocations: 59.92 kB / 1.089 GB, free: 4.91 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.DataReader.nextTimeEvent,DataReader.nextTimeEvent,$PRE.DataReader.nextTimeEventScaled,DataReader.nextTimeEventScaled,eneLosInt.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009926/1.171, allocations: 442.6 kB / 1.089 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/1.171, allocations: 169.9 kB / 1.089 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003076/1.174, allocations: 1.477 MB / 1.091 GB, free: 2.836 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.852e-05/1.174, allocations: 23.92 kB / 1.091 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/1.174, allocations: 0 / 1.091 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002093/1.176, allocations: 1.109 MB / 1.092 GB, free: 1.676 MB / 0.8419 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.005664/1.182, allocations: 2.934 MB / 1.095 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.012e-05/1.182, allocations: 4 kB / 1.095 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008041/1.183, allocations: 187.8 kB / 1.095 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/1.183, allocations: 4 kB / 1.095 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.507e-05/1.183, allocations: 31.98 kB / 1.095 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/1.183, allocations: 4 kB / 1.095 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.183, allocations: 4 kB / 1.095 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003922/1.187, allocations: 1.927 MB / 1.097 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/1.188, allocations: 402.6 kB / 1.097 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002006/1.188, allocations: 20 kB / 1.097 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/1.189, allocations: 134.6 kB / 1.097 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/1.189, allocations: 80.83 kB / 1.097 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.189, allocations: 43.97 kB / 1.097 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001691/1.191, allocations: 0.9201 MB / 1.098 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.91e-07/1.191, allocations: 0 / 1.098 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003247/1.194, allocations: 0.9744 MB / 1.099 GB, free: 9.895 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (pipe.del.x,pipe.timDel.x,pipe.vol_b.dynBal.U,pipe.vol_a.dynBal.U,eneLosInt.y) * Number of discrete variables: 3 ($whenCondition1,DataReader.nextTimeEvent,DataReader.nextTimeEventScaled) * Number of discrete states: 2 (DataReader.nextTimeEvent,DataReader.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 15 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002259/1.196, allocations: 0.9503 MB / 1.1 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003522/1.2, allocations: 1.7 MB / 1.102 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/1.2, allocations: 4.062 kB / 1.102 GB, free: 7.406 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001106/1.201, allocations: 0.6182 MB / 1.102 GB, free: 6.773 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/1.205, allocations: 0.7413 MB / 1.103 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008738/1.214, allocations: 4.041 MB / 1.107 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/1.215, allocations: 1.323 MB / 1.108 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006088/1.215, allocations: 167.4 kB / 1.108 GB, free: 452 kB / 0.8575 GB Notification: Performance of SimCode: time 1.783e-06/1.215, allocations: 0 / 1.108 GB, free: 452 kB / 0.8575 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 2 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 4 .