Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Data.TestData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1342,variableFilter="time|combiTimeTable.y.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1342,variableFilter="time|combiTimeTable.y.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 108 kB / 15.6 MB, free: 132 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.001081/0.001081, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.75/2.75, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001237, allocations: 65.3 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3219, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData): time 0.00308/0.325, allocations: 1.65 MB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002107/0.3271, allocations: 1.483 MB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.884e-05/0.3272, allocations: 0 / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004515/0.3277, allocations: 47.77 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.3279, allocations: 55.7 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.3281, allocations: 107.6 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002023/0.3284, allocations: 171.6 kB / 1.072 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.947e-05/0.3284, allocations: 12.22 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.617e-05/0.3285, allocations: 63.77 kB / 1.072 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.3287, allocations: 67.8 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.3287, allocations: 8 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.3289, allocations: 67.97 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.986e-05/0.3289, allocations: 39.84 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.412e-05/0.329, allocations: 63.59 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002606/0.3293, allocations: 191.7 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3293, allocations: 0 / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3293, allocations: 4 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.3293, allocations: 0 / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006244/0.3299, allocations: 470.6 kB / 1.073 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.33, allocations: 12.02 kB / 1.073 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.3301, allocations: 16.75 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003168/0.3304, allocations: 265.6 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.3304, allocations: 4.375 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.3304, allocations: 8.125 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.3307, allocations: 115.3 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.3307, allocations: 0 / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3307, allocations: 4 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3307, allocations: 0 / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.3309, allocations: 143.8 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002491/0.3312, allocations: 229.6 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.3316, allocations: 178.5 kB / 1.074 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.3317, allocations: 52.78 kB / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.3318, allocations: 15.97 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.332, allocations: 106.9 kB / 1.074 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.623e-06/0.332, allocations: 4 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0004915/0.3325, allocations: 225.4 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.3326, allocations: 81.11 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.3328, allocations: 202.6 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.3328, allocations: 25.7 kB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.61e-05/0.3329, allocations: 120.1 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.333, allocations: 43.39 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.554e-05/0.333, allocations: 33.7 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.3331, allocations: 326.8 kB / 1.075 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.739e-05/0.3333, allocations: 47.97 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.3334, allocations: 82.48 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.3336, allocations: 125.7 kB / 1.075 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3336, allocations: 0 / 1.075 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000301/0.3339, allocations: 201.3 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3339, allocations: 4 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3339, allocations: 3.938 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.334, allocations: 4.062 kB / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3341, allocations: 27.98 kB / 1.075 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3341, allocations: 0 / 1.075 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.511e-05/0.3342, allocations: 8 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3342, allocations: 4 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001179/0.3343, allocations: 141.7 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.3343, allocations: 15.81 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.596e-05/0.3344, allocations: 29.52 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3344, allocations: 4 kB / 1.075 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.3344, allocations: 3.984 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3344, allocations: 0 / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.3346, allocations: 245.3 kB / 1.076 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3346, allocations: 4 kB / 1.076 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.052e-05/0.3347, allocations: 12 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.3347, allocations: 7.984 kB / 1.076 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.3347, allocations: 0 / 1.076 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3347, allocations: 4 kB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3347, allocations: 0 / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.3351, allocations: 224.3 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.3351, allocations: 88.92 kB / 1.076 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.623e-05/0.3352, allocations: 8 kB / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.57e-05/0.3352, allocations: 0 / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.3353, allocations: 11.98 kB / 1.076 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.3353, allocations: 11.98 kB / 1.076 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001224/0.3354, allocations: 156 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3354, allocations: 0 / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002623/0.3357, allocations: 39.98 kB / 1.076 GB, free: 1.875 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001045/0.3368, allocations: 461.7 kB / 1.077 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002932/0.3371, allocations: 142.1 kB / 1.077 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3371, allocations: 0 / 1.077 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.3372, allocations: 59.92 kB / 1.077 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.3375, allocations: 43.16 kB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000525/0.338, allocations: 299 kB / 1.077 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.3383, allocations: 0.7124 MB / 1.078 GB, free: 308 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001129/0.3384, allocations: 53.5 kB / 1.078 GB, free: 256 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.691e-05/0.3385, allocations: 35.42 kB / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3385, allocations: 0 / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of Templates: time 0.005547/0.344, allocations: 2.494 MB / 1.08 GB, free: 13.77 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches