Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.00182/0.00182, allocations: 106.1 kB / 16.41 MB, free: 6.492 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.001988/0.001988, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.466/1.466, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8003/0.8003, allocations: 97.64 MB / 388.8 MB, free: 1.453 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002531/0.002531, allocations: 88.17 kB / 0.5268 GB, free: 38.36 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09908/0.1016, allocations: 69.23 MB / 0.5944 GB, free: 500 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.49/0.5916, allocations: 173.6 MB / 0.7639 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01222/0.6039, allocations: 11.01 MB / 0.7747 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.6053, allocations: 50 kB / 0.7747 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.6074, allocations: 0.8029 MB / 0.7755 GB, free: 1.355 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004496/0.6119, allocations: 1.694 MB / 0.7772 GB, free: 1.301 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003231/0.6151, allocations: 1.123 MB / 0.7783 GB, free: 1.273 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003174/0.6183, allocations: 2.533 MB / 0.7807 GB, free: 1.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006316/0.6189, allocations: 308.7 kB / 0.781 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.6208, allocations: 1.055 MB / 0.7821 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.6228, allocations: 1.353 MB / 0.7834 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003916/0.6232, allocations: 144.3 kB / 0.7835 GB, free: 1.164 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004318/0.6275, allocations: 1.936 MB / 0.7854 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004949/0.628, allocations: 370.6 kB / 0.7858 GB, free: 1.129 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.6294, allocations: 0.809 MB / 0.7866 GB, free: 0.9531 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004529/0.6339, allocations: 2.605 MB / 0.7891 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.6339, allocations: 0 / 0.7891 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.164e-06/0.6339, allocations: 3.844 kB / 0.7891 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.713e-05/0.634, allocations: 0 / 0.7891 GB, free: 0.582 MB / 0.5919 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.004947/0.6389, allocations: 2.08 MB / 0.7911 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.6389, allocations: 8.344 kB / 0.7912 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005081/0.6394, allocations: 179.1 kB / 0.7913 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001955/0.6414, allocations: 0.9852 MB / 0.7923 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.017e-05/0.6415, allocations: 89.91 kB / 0.7924 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002458/0.6417, allocations: 124.6 kB / 0.7925 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002644/0.6444, allocations: 1.536 MB / 0.794 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.6444, allocations: 0.9062 kB / 0.794 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.6445, allocations: 48.94 kB / 0.794 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.6445, allocations: 29.53 kB / 0.7941 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002682/0.6472, allocations: 1.664 MB / 0.7957 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008109/0.6553, allocations: 6.234 MB / 0.8018 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.6577, allocations: 1.184 MB / 0.8029 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.6588, allocations: 0.6304 MB / 0.8036 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005475/0.6642, allocations: 4.016 MB / 0.8075 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001489/0.6657, allocations: 0.7372 MB / 0.8082 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=128): time 3.536e-06/0.6657, allocations: 0 / 0.8082 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of matching and sorting (n=129): time 0.008066/0.6738, allocations: 3.978 MB / 0.8121 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.6739, allocations: 70.28 kB / 0.8121 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009036/0.6748, allocations: 0.714 MB / 0.8128 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001421/0.6749, allocations: 50.86 kB / 0.8129 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000461/0.6754, allocations: 0.5275 MB / 0.8134 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004482/0.6758, allocations: 463.7 kB / 0.8138 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003589/0.6762, allocations: 206.6 kB / 0.814 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.6764, allocations: 346.1 kB / 0.8144 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009122/0.6773, allocations: 0.5141 MB / 0.8149 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.6783, allocations: 0.625 MB / 0.8155 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/0.6804, allocations: 1.242 MB / 0.8167 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.6804, allocations: 0 / 0.8167 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003065/0.6835, allocations: 1.603 MB / 0.8183 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.6835, allocations: 35.31 kB / 0.8183 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.6835, allocations: 2.062 kB / 0.8183 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005099/0.684, allocations: 157.2 kB / 0.8185 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.685, allocations: 244.6 kB / 0.8187 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004395/0.6894, allocations: 2.724 MB / 0.8213 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008552/0.6903, allocations: 52.48 kB / 0.8214 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/0.6905, allocations: 52.64 kB / 0.8214 GB, free: 4.52 MB / 0.6075 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006552/0.6911, allocations: 286.5 kB / 0.8217 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/0.6915, allocations: 117.7 kB / 0.8218 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004798/0.6962, allocations: 2.317 MB / 0.8241 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.6963, allocations: 13.66 kB / 0.8241 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.6963, allocations: 3.219 kB / 0.8241 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.08e-05/0.6963, allocations: 11.33 kB / 0.8241 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006416/0.7027, allocations: 3.404 MB / 0.8274 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.7027, allocations: 7.25 kB / 0.8275 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.7038, allocations: 265.1 kB / 0.8277 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004938/0.7043, allocations: 143.7 kB / 0.8278 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.7044, allocations: 40.61 kB / 0.8279 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003103/0.7075, allocations: 2.452 MB / 0.8303 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.7076, allocations: 0 / 0.8303 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005075/0.7126, allocations: 2.598 MB / 0.8328 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003675/0.713, allocations: 194.1 kB / 0.833 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002359/0.7132, allocations: 28.09 kB / 0.833 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007222/0.714, allocations: 51.95 kB / 0.8331 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002567/0.7142, allocations: 122.1 kB / 0.8332 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.7143, allocations: 52.38 kB / 0.8332 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007253/0.7151, allocations: 0.5211 MB / 0.8337 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.7151, allocations: 0 / 0.8337 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001732/0.7168, allocations: 0.5156 MB / 0.8343 GB, free: 12.7 MB / 0.6231 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001109/0.7179, allocations: 0.5739 MB / 0.8348 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003466/0.7214, allocations: 1.553 MB / 0.8363 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.7214, allocations: 3.938 kB / 0.8363 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001969/0.7233, allocations: 0.9201 MB / 0.8372 GB, free: 9.773 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.7254, allocations: 405.3 kB / 0.8376 GB, free: 9.398 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005508/0.7309, allocations: 2.648 MB / 0.8402 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.732, allocations: 1.191 MB / 0.8414 GB, free: 5.508 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001258/0.7332, allocations: 345.6 kB / 0.8417 GB, free: 5.211 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.7337, allocations: 151.4 kB / 0.8418 GB, free: 5.062 MB / 0.6231 GB Notification: Performance of SimCode: time 1.603e-06/0.7337, allocations: 0 / 0.8418 GB, free: 5.062 MB / 0.6231 GB Notification: Performance of Templates: time 0.04862/0.7823, allocations: 26.81 MB / 0.868 GB, free: 10.5 MB / 0.6544 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches