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.004621/0.004621, allocations: 168.9 kB / 15.13 MB, free: 6.023 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.664/1.664, allocations: 205.4 MB / 221.3 MB, free: 13.79 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.0007693/0.0007693, allocations: 86.31 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7559/0.7559, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003186, allocations: 8 kB / 485.2 MB, free: 2.047 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.3921, allocations: 66.28 MB / 0.5386 GB, free: 45.34 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.1605/0.5527, allocations: 149.6 MB / 0.6847 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01356/0.5663, allocations: 11.9 MB / 0.6963 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006342/0.567, allocations: 15.94 kB / 0.6963 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.5682, allocations: 497.3 kB / 0.6968 GB, free: 9.613 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.00169/0.5699, allocations: 0.7377 MB / 0.6975 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.5716, allocations: 0.5968 MB / 0.6981 GB, free: 8.273 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001187/0.5728, allocations: 1.201 MB / 0.6993 GB, free: 7.066 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003811/0.5732, allocations: 249.7 kB / 0.6995 GB, free: 6.809 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000538/0.5737, allocations: 382.3 kB / 0.6999 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006585/0.5744, allocations: 0.5409 MB / 0.7004 GB, free: 5.891 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 6.582e-05/0.5745, allocations: 32 kB / 0.7004 GB, free: 5.859 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002318/0.5768, allocations: 1.244 MB / 0.7016 GB, free: 4.613 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.5769, allocations: 119.4 kB / 0.7017 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.5771, allocations: 181.3 kB / 0.7019 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.5781, allocations: 0.9468 MB / 0.7028 GB, free: 3.363 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.5781, allocations: 0 / 0.7028 GB, free: 3.363 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.342e-06/0.5781, allocations: 0 / 0.7028 GB, free: 3.363 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.345e-05/0.5781, allocations: 0 / 0.7028 GB, free: 3.363 MB / 0.5105 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.001824/0.58, allocations: 1.095 MB / 0.7039 GB, free: 2.223 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.58, allocations: 8.031 kB / 0.7039 GB, free: 2.215 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.5802, allocations: 94.88 kB / 0.704 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006474/0.5808, allocations: 490.6 kB / 0.7045 GB, free: 1.602 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/0.5809, allocations: 54 kB / 0.7045 GB, free: 1.547 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.581, allocations: 75.91 kB / 0.7046 GB, free: 1.473 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.5822, allocations: 0.6594 MB / 0.7052 GB, free: 0.8086 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.5822, allocations: 3.984 kB / 0.7052 GB, free: 0.8047 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.442e-05/0.5823, allocations: 24 kB / 0.7053 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.5823, allocations: 20 kB / 0.7053 GB, free: 0.7617 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.5834, allocations: 0.6403 MB / 0.7059 GB, free: 124 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003526/0.5869, allocations: 3.17 MB / 0.709 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.5883, allocations: 0.6817 MB / 0.7097 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004428/0.5887, allocations: 274.4 kB / 0.7099 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002446/0.5912, allocations: 2.604 MB / 0.7125 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.5912, allocations: 39.12 kB / 0.7125 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=57): time 1.653e-06/0.5912, allocations: 0 / 0.7125 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58): time 0.003392/0.5946, allocations: 1.794 MB / 0.7143 GB, free: 6.684 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.5947, allocations: 59.97 kB / 0.7143 GB, free: 6.613 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/0.5952, allocations: 446.9 kB / 0.7148 GB, free: 6.168 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.454e-05/0.5952, allocations: 33.7 kB / 0.7148 GB, free: 6.129 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.5955, allocations: 344.2 kB / 0.7151 GB, free: 5.789 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.5956, allocations: 205 kB / 0.7153 GB, free: 5.586 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.5957, allocations: 12 kB / 0.7153 GB, free: 5.574 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.5958, allocations: 366.7 kB / 0.7157 GB, free: 5.207 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003663/0.5962, allocations: 189 kB / 0.7159 GB, free: 5.023 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003803/0.5966, allocations: 229.5 kB / 0.7161 GB, free: 4.785 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003892/0.597, allocations: 206.2 kB / 0.7163 GB, free: 4.582 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.597, allocations: 0 / 0.7163 GB, free: 4.582 MB / 0.5261 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001191/0.5982, allocations: 0.6434 MB / 0.7169 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.5982, allocations: 8 kB / 0.7169 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.5982, allocations: 2 kB / 0.7169 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.5986, allocations: 108.9 kB / 0.717 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.599, allocations: 95.89 kB / 0.7171 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002144/0.6012, allocations: 1.9 MB / 0.719 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003069/0.6015, allocations: 43.91 kB / 0.719 GB, free: 1.641 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.6015, allocations: 20.05 kB / 0.719 GB, free: 1.621 MB / 0.5261 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 (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 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002549/0.6018, allocations: 197.7 kB / 0.7192 GB, free: 1.418 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-05/0.6019, allocations: 59.25 kB / 0.7193 GB, free: 1.359 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/0.6035, allocations: 0.8024 MB / 0.72 GB, free: 0.5625 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.6035, allocations: 8 kB / 0.7201 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.6035, allocations: 0.8125 kB / 0.7201 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.6035, allocations: 7.984 kB / 0.7201 GB, free: 0.5469 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/0.6059, allocations: 1.559 MB / 0.7216 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.6059, allocations: 0 / 0.7216 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003577/0.6063, allocations: 103.9 kB / 0.7217 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003422/0.6067, allocations: 120.6 kB / 0.7218 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.6067, allocations: 24.94 kB / 0.7218 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002034/0.6087, allocations: 1.898 MB / 0.7237 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.6088, allocations: 0 / 0.7237 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.6105, allocations: 1.048 MB / 0.7247 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.6106, allocations: 132.3 kB / 0.7248 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.6107, allocations: 19.98 kB / 0.7248 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.611, allocations: 43.94 kB / 0.7249 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.6111, allocations: 48.5 kB / 0.7249 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.6111, allocations: 28.8 kB / 0.725 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000323/0.6115, allocations: 302.9 kB / 0.7252 GB, free: 11 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6115, allocations: 4 kB / 0.7253 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0008367/0.6123, allocations: 327.8 kB / 0.7256 GB, free: 10.67 MB / 0.5417 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 (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 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007168/0.613, allocations: 499.9 kB / 0.726 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001226/0.6143, allocations: 0.6874 MB / 0.7267 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.6143, allocations: 0 / 0.7267 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007708/0.6151, allocations: 0.4986 MB / 0.7272 GB, free: 8.969 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009287/0.616, allocations: 177.2 kB / 0.7274 GB, free: 8.801 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.6182, allocations: 1.677 MB / 0.729 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.6188, allocations: 0.9496 MB / 0.7299 GB, free: 6.109 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0003513/0.6192, allocations: 118.3 kB / 0.73 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.6193, allocations: 67.41 kB / 0.7301 GB, free: 5.938 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.6193, allocations: 4 kB / 0.7301 GB, free: 5.934 MB / 0.5417 GB Notification: Performance of Templates: time 0.02099/0.6403, allocations: 13.73 MB / 0.7435 GB, free: 8.359 MB / 0.5573 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