Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00104/0.001039, 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.215/1.215, allocations: 205 MB / 221.9 MB, free: 9.062 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.0007493/0.0007494, allocations: 96.53 kB / 269.9 MB, free: 8.648 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.6195/0.6195, allocations: 90.5 MB / 408.3 MB, free: 3.945 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003047, allocations: 8.219 kB / 484.8 MB, free: 7.215 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2445, allocations: 65.81 MB / 0.5377 GB, free: 34.93 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.3611/0.6056, allocations: 160.4 MB / 0.6944 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01137/0.617, allocations: 12.74 MB / 0.7069 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006835/0.6178, allocations: 19.16 kB / 0.7069 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.619, allocations: 0.5115 MB / 0.7074 GB, free: 1.152 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001665/0.6207, allocations: 0.7265 MB / 0.7081 GB, free: 1.121 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.6224, allocations: 0.6941 MB / 0.7088 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001219/0.6237, allocations: 1.335 MB / 0.7101 GB, free: 1.09 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003476/0.624, allocations: 264.3 kB / 0.7103 GB, free: 1.016 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005512/0.6246, allocations: 399.3 kB / 0.7107 GB, free: 1.016 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005264/0.6251, allocations: 0.5641 MB / 0.7113 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 6.909e-05/0.6252, allocations: 32.38 kB / 0.7113 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002258/0.6275, allocations: 1.384 MB / 0.7126 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.527e-05/0.6276, allocations: 123.3 kB / 0.7128 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.000295/0.6279, allocations: 407.8 kB / 0.7131 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0008739/0.6288, allocations: 0.9744 MB / 0.7141 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.6288, allocations: 0 / 0.7141 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6288, allocations: 5.125 kB / 0.7141 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.969e-06/0.6288, allocations: 0 / 0.7141 GB, free: 0.8789 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.001576/0.6304, allocations: 1.084 MB / 0.7152 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.6304, allocations: 9.625 kB / 0.7152 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.6306, allocations: 94.81 kB / 0.7153 GB, free: 16.15 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005403/0.6311, allocations: 0.5031 MB / 0.7157 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.6312, allocations: 56.31 kB / 0.7158 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.213e-05/0.6313, allocations: 71.53 kB / 0.7159 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009875/0.6322, allocations: 0.6608 MB / 0.7165 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.6323, allocations: 4.969 kB / 0.7165 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.684e-05/0.6323, allocations: 30.36 kB / 0.7165 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.6324, allocations: 17.41 kB / 0.7166 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009673/0.6333, allocations: 0.6467 MB / 0.7172 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/0.6361, allocations: 3.18 MB / 0.7203 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.6372, allocations: 0.6736 MB / 0.721 GB, free: 13.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003456/0.6375, allocations: 278 kB / 0.7212 GB, free: 13.74 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001945/0.6395, allocations: 2.606 MB / 0.7238 GB, free: 11.46 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.6395, allocations: 38.5 kB / 0.7238 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=57): time 1.814e-06/0.6395, allocations: 4.406 kB / 0.7238 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.002868/0.6424, allocations: 1.798 MB / 0.7256 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.6425, allocations: 58.44 kB / 0.7256 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.6428, allocations: 454.3 kB / 0.7261 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.225e-05/0.6429, allocations: 33.08 kB / 0.7261 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.6431, allocations: 352.9 kB / 0.7264 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.6432, allocations: 196.6 kB / 0.7266 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.076e-05/0.6432, allocations: 13.81 kB / 0.7266 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.6434, allocations: 366.2 kB / 0.727 GB, free: 9.961 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.6436, allocations: 178.6 kB / 0.7271 GB, free: 9.961 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/0.644, allocations: 235.2 kB / 0.7274 GB, free: 9.918 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006213/0.6446, allocations: 450.3 kB / 0.7278 GB, free: 9.871 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.6446, allocations: 0 / 0.7278 GB, free: 9.871 MB / 0.5105 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009727/0.6456, allocations: 0.6528 MB / 0.7284 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.6456, allocations: 6.156 kB / 0.7284 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.6456, allocations: 0 / 0.7284 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003148/0.6459, allocations: 112.1 kB / 0.7285 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.6463, allocations: 96.67 kB / 0.7286 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.648, allocations: 1.902 MB / 0.7305 GB, free: 8.488 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.6483, allocations: 48.61 kB / 0.7305 GB, free: 8.484 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.6483, allocations: 14.97 kB / 0.7306 GB, free: 8.484 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002224/0.6486, allocations: 205.1 kB / 0.7308 GB, free: 8.363 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.113e-05/0.6487, allocations: 57.31 kB / 0.7308 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.65, allocations: 0.8007 MB / 0.7316 GB, free: 8.207 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.65, allocations: 9.938 kB / 0.7316 GB, free: 8.203 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.65, allocations: 2.625 kB / 0.7316 GB, free: 8.203 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.65, allocations: 3.094 kB / 0.7316 GB, free: 8.203 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.652, allocations: 1.568 MB / 0.7331 GB, free: 7.848 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.652, allocations: 3.984 kB / 0.7331 GB, free: 7.844 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.6523, allocations: 109.2 kB / 0.7332 GB, free: 7.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002933/0.6526, allocations: 110.7 kB / 0.7334 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.6527, allocations: 21.22 kB / 0.7334 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001655/0.6543, allocations: 1.903 MB / 0.7352 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.6543, allocations: 0 / 0.7352 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.6558, allocations: 1.062 MB / 0.7363 GB, free: 6.324 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.6559, allocations: 129.2 kB / 0.7364 GB, free: 6.199 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.656, allocations: 14.41 kB / 0.7364 GB, free: 6.199 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.6563, allocations: 44.45 kB / 0.7364 GB, free: 6.191 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.486e-05/0.6564, allocations: 49.3 kB / 0.7365 GB, free: 6.191 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/0.6564, allocations: 23.2 kB / 0.7365 GB, free: 6.191 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002671/0.6567, allocations: 316.1 kB / 0.7368 GB, free: 6.105 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6567, allocations: 0 / 0.7368 GB, free: 6.105 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007495/0.6575, allocations: 334.2 kB / 0.7371 GB, free: 6.062 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005759/0.6581, allocations: 490.2 kB / 0.7376 GB, free: 5.859 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001032/0.6591, allocations: 0.6911 MB / 0.7383 GB, free: 5.691 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6591, allocations: 0 / 0.7383 GB, free: 5.691 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006707/0.6598, allocations: 0.5037 MB / 0.7388 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.6606, allocations: 179 kB / 0.7389 GB, free: 5.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.6625, allocations: 1.703 MB / 0.7406 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.663, allocations: 0.9457 MB / 0.7415 GB, free: 3.805 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.6631, allocations: 71.89 kB / 0.7416 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of SimCode: time 3.51e-07/0.6631, allocations: 0 / 0.7416 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of Templates: time 0.01688/0.68, allocations: 15.86 MB / 0.7571 GB, free: 12.23 MB / 0.5261 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches