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.001664/0.001664, allocations: 174 kB / 15.77 MB, free: 6.328 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.761/1.761, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00128/0.001279, allocations: 82.31 kB / 270.3 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.9277/0.9277, allocations: 90.6 MB / 409.1 MB, free: 15.02 MB / 298.8 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003246/0.0003246, allocations: 8 kB / 485.9 MB, free: 2.09 MB / 362.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3998, allocations: 66.27 MB / 0.5392 GB, free: 45.57 MB / 426.8 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1778/0.5776, allocations: 158.2 MB / 0.6937 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01437/0.5921, allocations: 10.22 MB / 0.7037 GB, free: 3.219 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.5934, allocations: 23.88 kB / 0.7037 GB, free: 3.195 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001748/0.5951, allocations: 0.6488 MB / 0.7043 GB, free: 2.543 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.003854/0.599, allocations: 1.499 MB / 0.7058 GB, free: 1.035 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.6014, allocations: 0.7865 MB / 0.7066 GB, free: 252 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003372/0.6048, allocations: 2.838 MB / 0.7093 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005782/0.6054, allocations: 371.7 kB / 0.7097 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.6067, allocations: 0.8093 MB / 0.7105 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.6083, allocations: 1.242 MB / 0.7117 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.6084, allocations: 60 kB / 0.7118 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003686/0.6121, allocations: 1.657 MB / 0.7134 GB, free: 9.266 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002444/0.6124, allocations: 246.9 kB / 0.7136 GB, free: 9.023 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.6128, allocations: 289 kB / 0.7139 GB, free: 8.734 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001978/0.6148, allocations: 1.703 MB / 0.7155 GB, free: 7.027 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.6148, allocations: 0 / 0.7155 GB, free: 7.027 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.254e-06/0.6148, allocations: 0 / 0.7155 GB, free: 7.027 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.778e-05/0.6148, allocations: 0 / 0.7155 GB, free: 7.027 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003526/0.6183, allocations: 1.676 MB / 0.7172 GB, free: 5.293 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.6184, allocations: 15.97 kB / 0.7172 GB, free: 5.277 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/0.6187, allocations: 149.1 kB / 0.7173 GB, free: 5.133 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.6197, allocations: 0.7087 MB / 0.718 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.838e-05/0.6198, allocations: 90.38 kB / 0.7181 GB, free: 4.293 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001794/0.62, allocations: 116 kB / 0.7182 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00238/0.6224, allocations: 1.398 MB / 0.7196 GB, free: 2.754 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.6224, allocations: 0 / 0.7196 GB, free: 2.754 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.6225, allocations: 52 kB / 0.7196 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/0.6226, allocations: 28 kB / 0.7197 GB, free: 2.676 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002713/0.6253, allocations: 1.688 MB / 0.7213 GB, free: 0.9805 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006935/0.6322, allocations: 6.312 MB / 0.7275 GB, free: 10.01 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.6348, allocations: 1.463 MB / 0.7289 GB, free: 8.543 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.636, allocations: 0.7388 MB / 0.7296 GB, free: 7.801 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004915/0.6409, allocations: 4.116 MB / 0.7336 GB, free: 3.23 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001312/0.6422, allocations: 0.7668 MB / 0.7344 GB, free: 2.457 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=134): time 3.046e-06/0.6422, allocations: 4 kB / 0.7344 GB, free: 2.453 MB / 0.5418 GB Notification: Performance of matching and sorting (n=135): time 0.007546/0.6498, allocations: 4.103 MB / 0.7384 GB, free: 14.26 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.6499, allocations: 68.72 kB / 0.7385 GB, free: 14.18 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006194/0.6505, allocations: 0.5432 MB / 0.739 GB, free: 13.62 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 9.008e-05/0.6506, allocations: 49.7 kB / 0.7391 GB, free: 13.57 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.651, allocations: 473.5 kB / 0.7395 GB, free: 13.1 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003677/0.6514, allocations: 453.3 kB / 0.7399 GB, free: 12.65 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.509e-05/0.6514, allocations: 20 kB / 0.74 GB, free: 12.63 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001916/0.6516, allocations: 402.7 kB / 0.7403 GB, free: 12.23 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.6526, allocations: 0.5492 MB / 0.7409 GB, free: 11.68 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.6537, allocations: 0.6603 MB / 0.7415 GB, free: 11 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.6549, allocations: 0.6484 MB / 0.7422 GB, free: 10.35 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.6549, allocations: 0 / 0.7422 GB, free: 10.35 MB / 0.5574 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002971/0.6578, allocations: 1.65 MB / 0.7438 GB, free: 8.68 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.6579, allocations: 37.7 kB / 0.7438 GB, free: 8.637 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.6579, allocations: 3.719 kB / 0.7438 GB, free: 8.637 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005241/0.6585, allocations: 152.8 kB / 0.744 GB, free: 8.484 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009909/0.6595, allocations: 251.7 kB / 0.7442 GB, free: 8.238 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/0.6634, allocations: 2.543 MB / 0.7467 GB, free: 5.566 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000933/0.6643, allocations: 91.78 kB / 0.7468 GB, free: 5.477 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.6645, allocations: 55.97 kB / 0.7468 GB, free: 5.422 MB / 0.5574 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.0006104/0.6651, allocations: 279.1 kB / 0.7471 GB, free: 5.141 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.6654, allocations: 98.78 kB / 0.7472 GB, free: 5.043 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004389/0.6698, allocations: 2.177 MB / 0.7493 GB, free: 2.941 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.837e-05/0.6698, allocations: 16 kB / 0.7493 GB, free: 2.926 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.6698, allocations: 4 kB / 0.7493 GB, free: 2.922 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.6698, allocations: 7.969 kB / 0.7493 GB, free: 2.914 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2315/0.9014, allocations: 3.568 MB / 0.7528 GB, free: 179.4 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.9014, allocations: 3.812 kB / 0.7528 GB, free: 179.4 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009809/0.9024, allocations: 291.9 kB / 0.7531 GB, free: 179.4 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004196/0.9028, allocations: 138 kB / 0.7532 GB, free: 179.4 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-05/0.9029, allocations: 51.16 kB / 0.7533 GB, free: 179.4 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.905, allocations: 2.22 MB / 0.7554 GB, free: 178.1 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.905, allocations: 5.594 kB / 0.7554 GB, free: 178.1 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004134/0.9092, allocations: 2.771 MB / 0.7582 GB, free: 177.9 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.9095, allocations: 169.1 kB / 0.7583 GB, free: 177.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.9096, allocations: 37.11 kB / 0.7584 GB, free: 177.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007512/0.9104, allocations: 105 kB / 0.7585 GB, free: 177.8 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.9106, allocations: 121.7 kB / 0.7586 GB, free: 177.8 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.9107, allocations: 58.8 kB / 0.7586 GB, free: 177.8 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0004448/0.9112, allocations: 375.9 kB / 0.759 GB, free: 177.7 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9112, allocations: 5.625 kB / 0.759 GB, free: 177.7 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.001456/0.9127, allocations: 0.5147 MB / 0.7595 GB, free: 177.7 MB / 0.5574 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.00088/0.9135, allocations: 0.5848 MB / 0.7601 GB, free: 177.5 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.002906/0.9165, allocations: 1.776 MB / 0.7618 GB, free: 177.3 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.9165, allocations: 0 / 0.7618 GB, free: 177.3 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.9181, allocations: 1.095 MB / 0.7629 GB, free: 177.1 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.9196, allocations: 343.5 kB / 0.7632 GB, free: 177 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003887/0.9235, allocations: 3.005 MB / 0.7661 GB, free: 175.3 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006774/0.9242, allocations: 1.146 MB / 0.7672 GB, free: 174.6 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004644/0.9247, allocations: 155.7 kB / 0.7674 GB, free: 174.6 MB / 0.5574 GB Notification: Performance of SimCode: time 7.11e-07/0.9247, allocations: 0 / 0.7674 GB, free: 174.6 MB / 0.5574 GB Notification: Performance of Templates: time 0.04371/0.9684, allocations: 28.05 MB / 0.7948 GB, free: 166.3 MB / 0.5574 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