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.0009252/0.0009251, allocations: 169.4 kB / 16.1 MB, free: 5.691 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.189/1.189, allocations: 205 MB / 221.9 MB, free: 9.137 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.0007574/0.0007575, allocations: 83.86 kB / 269.9 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5953/0.5953, allocations: 90.52 MB / 408.3 MB, free: 3.922 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002799, allocations: 8.219 kB / 484.8 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2424, allocations: 65.82 MB / 0.5378 GB, free: 34.88 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4044/0.6468, allocations: 169.6 MB / 0.7034 GB, free: 1.207 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01158/0.6585, allocations: 10.97 MB / 0.7141 GB, free: 1.016 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.6598, allocations: 27 kB / 0.7141 GB, free: 1.016 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.6614, allocations: 0.7 MB / 0.7148 GB, free: 0.9883 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.665, allocations: 1.542 MB / 0.7163 GB, free: 0.9141 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.00249/0.6675, allocations: 0.9576 MB / 0.7173 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.003099/0.6706, allocations: 3.318 MB / 0.7205 GB, free: 0.8672 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006261/0.6712, allocations: 397.2 kB / 0.7209 GB, free: 0.7539 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001472/0.6727, allocations: 0.8514 MB / 0.7217 GB, free: 0.75 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.6739, allocations: 1.28 MB / 0.723 GB, free: 0.7383 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.6741, allocations: 58.88 kB / 0.723 GB, free: 0.7383 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003631/0.6777, allocations: 1.969 MB / 0.7249 GB, free: 0.6992 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001977/0.6779, allocations: 264 kB / 0.7252 GB, free: 0.6992 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0006089/0.6785, allocations: 0.6738 MB / 0.7258 GB, free: 0.6992 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001712/0.6803, allocations: 1.814 MB / 0.7276 GB, free: 0.5469 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.6803, allocations: 7.094 kB / 0.7276 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6803, allocations: 0 / 0.7276 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.302e-05/0.6803, allocations: 0 / 0.7276 GB, free: 0.543 MB / 0.4948 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.002802/0.6831, allocations: 1.656 MB / 0.7292 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.6831, allocations: 8 kB / 0.7292 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.6834, allocations: 153.4 kB / 0.7294 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007796/0.6842, allocations: 0.7306 MB / 0.7301 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.51e-05/0.6842, allocations: 90.69 kB / 0.7302 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.6844, allocations: 126.8 kB / 0.7303 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001872/0.6863, allocations: 1.406 MB / 0.7317 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.6863, allocations: 0 / 0.7317 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.892e-05/0.6864, allocations: 51.66 kB / 0.7317 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.6864, allocations: 32.55 kB / 0.7318 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002199/0.6886, allocations: 1.688 MB / 0.7334 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005625/0.6943, allocations: 6.303 MB / 0.7396 GB, free: 11.48 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002053/0.6963, allocations: 1.487 MB / 0.741 GB, free: 11.41 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009261/0.6973, allocations: 0.753 MB / 0.7418 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004205/0.7015, allocations: 4.106 MB / 0.7458 GB, free: 8.324 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.7026, allocations: 0.7811 MB / 0.7465 GB, free: 8.113 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=134): time 3.256e-06/0.7027, allocations: 0 / 0.7465 GB, free: 8.113 MB / 0.5105 GB Notification: Performance of matching and sorting (n=135): time 0.006798/0.7095, allocations: 4.126 MB / 0.7506 GB, free: 7.023 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.7095, allocations: 73.27 kB / 0.7506 GB, free: 6.953 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005417/0.7101, allocations: 0.5488 MB / 0.7512 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.534e-05/0.7102, allocations: 47.48 kB / 0.7512 GB, free: 6.621 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000351/0.7105, allocations: 466.4 kB / 0.7517 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003175/0.7108, allocations: 457 kB / 0.7521 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.998e-05/0.7109, allocations: 26.25 kB / 0.7521 GB, free: 5.805 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.7111, allocations: 402.5 kB / 0.7525 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008577/0.7119, allocations: 0.548 MB / 0.753 GB, free: 5.148 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009643/0.7129, allocations: 0.6698 MB / 0.7537 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.7151, allocations: 1.326 MB / 0.755 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.7151, allocations: 0.9375 kB / 0.755 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002753/0.7179, allocations: 1.664 MB / 0.7566 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.156e-05/0.7179, allocations: 36.11 kB / 0.7566 GB, free: 3.141 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.7179, allocations: 0 / 0.7566 GB, free: 3.141 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000455/0.7184, allocations: 167.1 kB / 0.7568 GB, free: 3.062 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008498/0.7192, allocations: 245.6 kB / 0.757 GB, free: 3.016 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003415/0.7227, allocations: 2.539 MB / 0.7595 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008359/0.7235, allocations: 99.97 kB / 0.7596 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.7236, allocations: 51.11 kB / 0.7597 GB, free: 0.8672 MB / 0.5105 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 (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.0004994/0.7242, allocations: 278.1 kB / 0.7599 GB, free: 0.6562 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.7243, allocations: 101 kB / 0.76 GB, free: 0.6016 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003814/0.7282, allocations: 2.172 MB / 0.7621 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-05/0.7282, allocations: 23.94 kB / 0.7622 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.7282, allocations: 4 kB / 0.7622 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.7282, allocations: 12.05 kB / 0.7622 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005158/0.7334, allocations: 3.571 MB / 0.7657 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.7334, allocations: 8 kB / 0.7657 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009443/0.7344, allocations: 282.5 kB / 0.766 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003754/0.7348, allocations: 144.6 kB / 0.7661 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/0.7348, allocations: 47.97 kB / 0.7661 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00221/0.7371, allocations: 2.231 MB / 0.7683 GB, free: 8.441 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7371, allocations: 8 kB / 0.7683 GB, free: 8.434 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004109/0.7412, allocations: 2.789 MB / 0.771 GB, free: 5.621 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002138/0.7414, allocations: 167.8 kB / 0.7712 GB, free: 5.438 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.7416, allocations: 28 kB / 0.7712 GB, free: 5.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006413/0.7422, allocations: 107.7 kB / 0.7713 GB, free: 5.305 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.7424, allocations: 121.1 kB / 0.7715 GB, free: 5.188 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.7426, allocations: 59.92 kB / 0.7715 GB, free: 5.129 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003912/0.743, allocations: 383.1 kB / 0.7719 GB, free: 4.758 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.743, allocations: 1.859 kB / 0.7719 GB, free: 4.758 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001386/0.7444, allocations: 0.5154 MB / 0.7724 GB, free: 4.242 MB / 0.5261 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 (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.0007912/0.7452, allocations: 0.5843 MB / 0.7729 GB, free: 3.711 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002835/0.748, allocations: 1.795 MB / 0.7747 GB, free: 1.902 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.748, allocations: 0 / 0.7747 GB, free: 1.902 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.7496, allocations: 1.095 MB / 0.7758 GB, free: 0.8203 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.7511, allocations: 332.4 kB / 0.7761 GB, free: 0.5039 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003862/0.7549, allocations: 3.058 MB / 0.7791 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000616/0.7556, allocations: 1.141 MB / 0.7802 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.756, allocations: 151.4 kB / 0.7803 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of SimCode: time 4.21e-07/0.756, allocations: 0 / 0.7803 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.03219/0.7882, allocations: 28.02 MB / 0.8077 GB, free: 168 kB / 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