Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.009958/0.009958, allocations: 170.8 kB / 15.12 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.4 MB / 221.3 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008872/0.0008873, allocations: 86.91 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8354/0.8354, allocations: 90.59 MB / 408.4 MB, free: 14.97 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003196, allocations: 11.98 kB / 485.2 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3932, allocations: 66.27 MB / 0.5386 GB, free: 45.33 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1836/0.5769, allocations: 146.8 MB / 0.682 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01433/0.5913, allocations: 9.211 MB / 0.691 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.5932, allocations: 23.88 kB / 0.691 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.00249/0.5957, allocations: 0.6649 MB / 0.6916 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.005542/0.6012, allocations: 1.453 MB / 0.693 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.003038/0.6043, allocations: 0.8236 MB / 0.6939 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.002858/0.6072, allocations: 1.518 MB / 0.6953 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006282/0.6078, allocations: 375.1 kB / 0.6957 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001421/0.6092, allocations: 0.7164 MB / 0.6964 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001389/0.6106, allocations: 0.9929 MB / 0.6974 GB, free: 9.02 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.6108, allocations: 56 kB / 0.6974 GB, free: 8.965 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004618/0.6154, allocations: 1.759 MB / 0.6991 GB, free: 7.203 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002684/0.6157, allocations: 247 kB / 0.6994 GB, free: 6.961 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0004563/0.6162, allocations: 293 kB / 0.6996 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002551/0.6187, allocations: 1.684 MB / 0.7013 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.6187, allocations: 0 / 0.7013 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.694e-06/0.6187, allocations: 0 / 0.7013 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.22e-05/0.6188, allocations: 0 / 0.7013 GB, free: 4.984 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.00381/0.6226, allocations: 1.676 MB / 0.7029 GB, free: 3.25 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.6226, allocations: 8.031 kB / 0.7029 GB, free: 3.242 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003344/0.623, allocations: 158.2 kB / 0.7031 GB, free: 3.086 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.6242, allocations: 0.7047 MB / 0.7038 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.714e-05/0.6244, allocations: 94.36 kB / 0.7039 GB, free: 2.246 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000183/0.6245, allocations: 116 kB / 0.704 GB, free: 2.133 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/0.6271, allocations: 1.379 MB / 0.7053 GB, free: 0.7266 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.6271, allocations: 8 kB / 0.7053 GB, free: 0.7188 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.6273, allocations: 48 kB / 0.7054 GB, free: 0.6719 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.541e-05/0.6273, allocations: 31.98 kB / 0.7054 GB, free: 0.6406 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00282/0.6301, allocations: 1.684 MB / 0.7071 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008051/0.6382, allocations: 6.452 MB / 0.7134 GB, free: 7.84 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002637/0.6409, allocations: 1.476 MB / 0.7148 GB, free: 6.359 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005548/0.6464, allocations: 4.235 MB / 0.7189 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001355/0.6478, allocations: 0.7706 MB / 0.7197 GB, free: 0.8906 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=134): time 3.847e-06/0.6478, allocations: 3.75 kB / 0.7197 GB, free: 0.8906 MB / 0.5261 GB Notification: Performance of matching and sorting (n=135): time 0.008018/0.6558, allocations: 4.327 MB / 0.7239 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/0.656, allocations: 68.66 kB / 0.724 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006793/0.6566, allocations: 0.5432 MB / 0.7245 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.193e-05/0.6567, allocations: 45.7 kB / 0.7246 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.6571, allocations: 472.5 kB / 0.725 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003866/0.6575, allocations: 457.3 kB / 0.7254 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.6576, allocations: 20 kB / 0.7255 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002019/0.6578, allocations: 402.7 kB / 0.7258 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009958/0.6588, allocations: 0.5492 MB / 0.7264 GB, free: 9.844 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.6599, allocations: 0.6571 MB / 0.727 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.661, allocations: 0.6406 MB / 0.7276 GB, free: 8.523 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.661, allocations: 0 / 0.7276 GB, free: 8.523 MB / 0.5417 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003133/0.6642, allocations: 1.658 MB / 0.7293 GB, free: 6.848 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.6642, allocations: 29.7 kB / 0.7293 GB, free: 6.812 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.6642, allocations: 4 kB / 0.7293 GB, free: 6.809 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005157/0.6648, allocations: 152.8 kB / 0.7294 GB, free: 6.656 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009333/0.6657, allocations: 251.6 kB / 0.7297 GB, free: 6.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00377/0.6695, allocations: 2.57 MB / 0.7322 GB, free: 3.711 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000905/0.6704, allocations: 91.81 kB / 0.7323 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.6705, allocations: 55.97 kB / 0.7323 GB, free: 3.566 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005399/0.6711, allocations: 281.6 kB / 0.7326 GB, free: 3.281 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.6713, allocations: 98.78 kB / 0.7327 GB, free: 3.184 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004271/0.6755, allocations: 2.187 MB / 0.7348 GB, free: 1.094 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.6756, allocations: 20.09 kB / 0.7348 GB, free: 1.074 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.6756, allocations: 7.984 kB / 0.7349 GB, free: 1.066 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.6756, allocations: 8.906 kB / 0.7349 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005836/0.6815, allocations: 3.66 MB / 0.7384 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.6815, allocations: 3.438 kB / 0.7384 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.6825, allocations: 279.6 kB / 0.7387 GB, free: 13.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004271/0.683, allocations: 155.8 kB / 0.7389 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.767e-05/0.6831, allocations: 51.91 kB / 0.7389 GB, free: 12.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002624/0.6857, allocations: 2.256 MB / 0.7411 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6857, allocations: 4 kB / 0.7411 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004577/0.6903, allocations: 2.788 MB / 0.7438 GB, free: 7.629 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003012/0.6906, allocations: 175.8 kB / 0.744 GB, free: 7.438 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.6908, allocations: 33.27 kB / 0.744 GB, free: 7.406 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006748/0.6914, allocations: 99.77 kB / 0.7441 GB, free: 7.309 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.6917, allocations: 121.1 kB / 0.7442 GB, free: 7.188 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.6918, allocations: 63.95 kB / 0.7443 GB, free: 7.125 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004102/0.6922, allocations: 379.1 kB / 0.7447 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6922, allocations: 0 / 0.7447 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001431/0.6936, allocations: 0.5194 MB / 0.7452 GB, free: 6.238 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009607/0.6946, allocations: 0.5808 MB / 0.7457 GB, free: 5.664 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003206/0.6978, allocations: 1.78 MB / 0.7475 GB, free: 3.859 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.6978, allocations: 0 / 0.7475 GB, free: 3.859 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.6996, allocations: 1.089 MB / 0.7485 GB, free: 2.754 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.7011, allocations: 299.5 kB / 0.7488 GB, free: 2.469 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2226/0.9238, allocations: 2.958 MB / 0.7517 GB, free: 177.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.9244, allocations: 1.175 MB / 0.7529 GB, free: 177.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001255/0.9257, allocations: 335.8 kB / 0.7532 GB, free: 177.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000354/0.9261, allocations: 134.2 kB / 0.7533 GB, free: 177.2 MB / 0.5573 GB Notification: Performance of SimCode: time 1.703e-06/0.9261, allocations: 0 / 0.7533 GB, free: 177.2 MB / 0.5573 GB Notification: Performance of Templates: time 0.04225/0.9683, allocations: 24.29 MB / 0.777 GB, free: 172.9 MB / 0.5573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches