Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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.BaseClasses.FlowModels.Validation.InverseFlowFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp|dpCalc|deltaDp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp|dpCalc|deltaDp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 100.1 kB / 15.88 MB, free: 12 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.001248/0.001248, allocations: 196 kB / 16.79 MB, free: 6.809 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.347/1.347, allocations: 222.9 MB / 240.5 MB, free: 4.598 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.329/2.329, allocations: 390.2 MB / 0.6649 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001498, allocations: 75.88 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7016/0.7031, allocations: 140.3 MB / 0.9496 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions): time 0.002185/0.7053, allocations: 1.345 MB / 0.9509 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008321/0.7062, allocations: 0.614 MB / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.7062, allocations: 0 / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.139e-05/0.7063, allocations: 0 / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.84e-05/0.7063, allocations: 5.312 kB / 0.9515 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.7067, allocations: 122.1 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.613e-05/0.7068, allocations: 17.56 kB / 0.9516 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.584e-05/0.7069, allocations: 6.734 kB / 0.9516 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.094e-05/0.7069, allocations: 4.125 kB / 0.9516 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.817e-05/0.7069, allocations: 16.06 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.707, allocations: 1.375 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004367/0.7074, allocations: 343.3 kB / 0.952 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.045e-05/0.7074, allocations: 5.328 kB / 0.952 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.431e-05/0.7074, allocations: 7.875 kB / 0.952 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.7076, allocations: 96.73 kB / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.7076, allocations: 0 / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.32e-07/0.7076, allocations: 0 / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.7076, allocations: 0 / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003542/0.708, allocations: 366.8 kB / 0.9524 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.996e-05/0.7081, allocations: 9.531 kB / 0.9524 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.7081, allocations: 2.219 kB / 0.9525 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.983e-05/0.7082, allocations: 169.6 kB / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.7082, allocations: 1.625 kB / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.827e-06/0.7082, allocations: 1.719 kB / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.7083, allocations: 41.78 kB / 0.9527 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.7083, allocations: 192 / 0.9527 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.7083, allocations: 9.062 kB / 0.9527 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.7083, allocations: 0 / 0.9527 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.677e-05/0.7084, allocations: 17.42 kB / 0.9527 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002647/0.7087, allocations: 256.4 kB / 0.9529 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.7089, allocations: 55 kB / 0.953 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.293e-05/0.7089, allocations: 24.25 kB / 0.953 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.7089, allocations: 1.344 kB / 0.953 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.284e-05/0.709, allocations: 34.56 kB / 0.953 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.709, allocations: 1.344 kB / 0.953 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001684/0.7091, allocations: 59.59 kB / 0.9531 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.172e-05/0.7092, allocations: 55.34 kB / 0.9531 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.936e-05/0.7092, allocations: 98.66 kB / 0.9532 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.863e-06/0.7092, allocations: 25.7 kB / 0.9533 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.738e-05/0.7093, allocations: 85.73 kB / 0.9533 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.928e-06/0.7093, allocations: 13.11 kB / 0.9534 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.7093, allocations: 21.44 kB / 0.9534 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.7094, allocations: 316.2 kB / 0.9537 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.118e-05/0.7094, allocations: 8.281 kB / 0.9537 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.509e-05/0.7094, allocations: 15.62 kB / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.83e-05/0.7095, allocations: 36.59 kB / 0.9537 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.7095, allocations: 1 kB / 0.9537 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.244e-05/0.7096, allocations: 68.09 kB / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.7096, allocations: 6.656 kB / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.7096, allocations: 0 / 0.9538 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.7096, allocations: 5.281 kB / 0.9538 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.363e-05/0.7097, allocations: 7.438 kB / 0.9538 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.7097, allocations: 0 / 0.9538 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.624e-05/0.7097, allocations: 13.28 kB / 0.9538 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.7097, allocations: 1.812 kB / 0.9538 GB, free: 5.461 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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 4.493e-05/0.7098, allocations: 111.9 kB / 0.9539 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.393e-05/0.7098, allocations: 5.469 kB / 0.954 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.7099, allocations: 68.09 kB / 0.954 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7099, allocations: 1.062 kB / 0.954 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.71, allocations: 0 / 0.954 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.71, allocations: 0 / 0.954 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.7101, allocations: 159.8 kB / 0.9542 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7101, allocations: 0 / 0.9542 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.606e-05/0.7101, allocations: 6.125 kB / 0.9542 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.7101, allocations: 3.938 kB / 0.9542 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.7101, allocations: 5.156 kB / 0.9542 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.7101, allocations: 3.984 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.7102, allocations: 1.156 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.545e-05/0.7102, allocations: 147.2 kB / 0.9543 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.607e-05/0.7103, allocations: 82.08 kB / 0.9544 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.7103, allocations: 128 / 0.9544 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.866e-05/0.7103, allocations: 5.156 kB / 0.9544 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.592e-05/0.7104, allocations: 1.312 kB / 0.9544 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.7104, allocations: 9.094 kB / 0.9544 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.955e-05/0.7104, allocations: 85.58 kB / 0.9545 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7104, allocations: 0.7812 kB / 0.9545 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002362/0.7106, allocations: 18.25 kB / 0.9545 GB, free: 4.727 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001561/0.7108, allocations: 117.7 kB / 0.9546 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.841e-05/0.7109, allocations: 26.61 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7109, allocations: 1.188 kB / 0.9547 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.883e-05/0.7109, allocations: 15.47 kB / 0.9547 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.7111, allocations: 9.547 kB / 0.9547 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002572/0.7114, allocations: 159.4 kB / 0.9548 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.7115, allocations: 0.6774 MB / 0.9555 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.936e-05/0.7115, allocations: 10.22 kB / 0.9555 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7115, allocations: 0 / 0.9555 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of Templates: time 0.001929/0.7135, allocations: 0.6839 MB / 0.9562 GB, free: 3.395 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches