Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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(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_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009863/0.0009862, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 240 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7104/0.7104, allocations: 89.64 MB / 380.7 MB, free: 11.4 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003676, allocations: 12.27 kB / 460 MB, free: 24.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1477, allocations: 68.83 MB / 0.5165 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4757/0.6235, allocations: 158.1 MB / 0.6709 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.638, allocations: 10.24 MB / 0.6809 GB, free: 3.016 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002173/0.6403, allocations: 27.88 kB / 0.6809 GB, free: 2.988 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002733/0.643, allocations: 0.6566 MB / 0.6815 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00578/0.6488, allocations: 1.464 MB / 0.683 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003295/0.6522, allocations: 0.806 MB / 0.6838 GB, free: 48 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004441/0.6566, allocations: 2.784 MB / 0.6865 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009783/0.6576, allocations: 373.1 kB / 0.6868 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002097/0.6597, allocations: 0.8015 MB / 0.6876 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002226/0.662, allocations: 1.219 MB / 0.6888 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003753/0.6624, allocations: 60 kB / 0.6889 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004685/0.6671, allocations: 1.595 MB / 0.6904 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003976/0.6675, allocations: 246.9 kB / 0.6907 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006275/0.6681, allocations: 285 kB / 0.6909 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003156/0.6713, allocations: 1.675 MB / 0.6926 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.6713, allocations: 0 / 0.6926 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.505e-06/0.6713, allocations: 0 / 0.6926 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.703e-05/0.6714, allocations: 0 / 0.6926 GB, free: 6.996 MB / 0.4981 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.004126/0.6756, allocations: 1.652 MB / 0.6942 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.6756, allocations: 12.03 kB / 0.6942 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000434/0.676, allocations: 150.2 kB / 0.6943 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.6773, allocations: 0.7048 MB / 0.695 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.046e-05/0.6774, allocations: 94.36 kB / 0.6951 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002264/0.6777, allocations: 120 kB / 0.6952 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.6805, allocations: 1.524 MB / 0.6967 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.6806, allocations: 0 / 0.6967 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.6807, allocations: 52 kB / 0.6968 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.88e-05/0.6807, allocations: 31.94 kB / 0.6968 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002942/0.6837, allocations: 1.676 MB / 0.6984 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00798/0.6917, allocations: 6.214 MB / 0.7045 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.6941, allocations: 1.307 MB / 0.7058 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.6952, allocations: 0.7036 MB / 0.7065 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005039/0.7003, allocations: 4.029 MB / 0.7104 GB, free: 3.5 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001314/0.7016, allocations: 0.7434 MB / 0.7111 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=128): time 4.188e-06/0.7017, allocations: 0 / 0.7111 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of matching and sorting (n=129): time 0.007753/0.7094, allocations: 3.958 MB / 0.715 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.7095, allocations: 68.72 kB / 0.7151 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000769/0.7103, allocations: 0.5708 MB / 0.7156 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.676e-05/0.7104, allocations: 49.7 kB / 0.7157 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/0.7108, allocations: 472.5 kB / 0.7161 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003618/0.7111, allocations: 437.5 kB / 0.7165 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.649e-05/0.7112, allocations: 24 kB / 0.7166 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.7114, allocations: 353.9 kB / 0.7169 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009631/0.7124, allocations: 0.5179 MB / 0.7174 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.7134, allocations: 0.6407 MB / 0.718 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.7146, allocations: 0.6133 MB / 0.7186 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.7146, allocations: 0 / 0.7186 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002921/0.7176, allocations: 1.592 MB / 0.7202 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.315e-05/0.7176, allocations: 33.64 kB / 0.7202 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.7176, allocations: 4 kB / 0.7202 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005117/0.7182, allocations: 156.7 kB / 0.7204 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009237/0.7191, allocations: 251.7 kB / 0.7206 GB, free: 8.855 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004048/0.7231, allocations: 2.535 MB / 0.7231 GB, free: 6.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008044/0.724, allocations: 91.88 kB / 0.7232 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/0.7241, allocations: 51.98 kB / 0.7232 GB, free: 6.051 MB / 0.5294 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 (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0006003/0.7247, allocations: 285.5 kB / 0.7235 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.7249, allocations: 94.78 kB / 0.7236 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004413/0.7294, allocations: 2.333 MB / 0.7259 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.601e-05/0.7294, allocations: 16 kB / 0.7259 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.7294, allocations: 4 kB / 0.7259 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.7294, allocations: 7.969 kB / 0.7259 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005595/0.735, allocations: 3.384 MB / 0.7292 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.7351, allocations: 4 kB / 0.7292 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009486/0.736, allocations: 271.7 kB / 0.7294 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000441/0.7365, allocations: 152.8 kB / 0.7296 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.7366, allocations: 51.97 kB / 0.7296 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002661/0.7393, allocations: 2.232 MB / 0.7318 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.7393, allocations: 0 / 0.7318 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004466/0.7438, allocations: 2.594 MB / 0.7344 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.7442, allocations: 183.7 kB / 0.7345 GB, free: 10.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/0.7444, allocations: 31.98 kB / 0.7346 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007373/0.7451, allocations: 91.84 kB / 0.7346 GB, free: 10.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.7454, allocations: 117.1 kB / 0.7348 GB, free: 9.965 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.7455, allocations: 51.98 kB / 0.7348 GB, free: 9.914 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005816/0.7461, allocations: 435 kB / 0.7352 GB, free: 9.496 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7461, allocations: 0 / 0.7352 GB, free: 9.496 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001678/0.7478, allocations: 0.5116 MB / 0.7357 GB, free: 8.984 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001222/0.749, allocations: 0.5873 MB / 0.7363 GB, free: 8.395 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003266/0.7523, allocations: 1.637 MB / 0.7379 GB, free: 6.73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.7523, allocations: 4.375 kB / 0.7379 GB, free: 6.727 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001872/0.7542, allocations: 0.9979 MB / 0.7389 GB, free: 5.719 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/0.7564, allocations: 348 kB / 0.7392 GB, free: 5.383 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00529/0.7617, allocations: 2.976 MB / 0.7421 GB, free: 2.367 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008395/0.7625, allocations: 1.141 MB / 0.7432 GB, free: 1.195 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001378/0.7639, allocations: 339.6 kB / 0.7436 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004419/0.7644, allocations: 135.4 kB / 0.7437 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/0.7644, allocations: 0 / 0.7437 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of Templates: time 0.04304/0.8074, allocations: 24.12 MB / 0.7672 GB, free: 8.844 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches