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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008336/0.0008337, allocations: 177 kB / 15.45 MB, free: 5.855 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.18/1.18, allocations: 205 MB / 221.2 MB, free: 1.836 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006949/0.0006951, allocations: 98.22 kB / 269.2 MB, free: 1.77 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.4959/0.4959, allocations: 90.53 MB / 407.6 MB, free: 15.06 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002645/0.0002645, allocations: 8 kB / 484.3 MB, free: 3.449 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09452/0.0948, allocations: 65.82 MB / 0.5372 GB, free: 1.555 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.3149/0.4097, allocations: 160.4 MB / 0.6939 GB, free: 7.598 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01211/0.4219, allocations: 12.74 MB / 0.7063 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005878/0.4225, allocations: 15.94 kB / 0.7064 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001158/0.4237, allocations: 0.5092 MB / 0.7068 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.4252, allocations: 0.7342 MB / 0.7076 GB, free: 9.555 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.4267, allocations: 0.6892 MB / 0.7082 GB, free: 8.863 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001049/0.4277, allocations: 1.33 MB / 0.7095 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003258/0.4281, allocations: 263.8 kB / 0.7098 GB, free: 7.258 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004758/0.4285, allocations: 402.2 kB / 0.7102 GB, free: 6.863 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000552/0.4291, allocations: 0.5563 MB / 0.7107 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 6.805e-05/0.4292, allocations: 32 kB / 0.7107 GB, free: 6.273 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002053/0.4312, allocations: 1.384 MB / 0.7121 GB, free: 4.887 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 8.722e-05/0.4313, allocations: 127.3 kB / 0.7122 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002959/0.4316, allocations: 401.7 kB / 0.7126 GB, free: 4.367 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.433, allocations: 1.328 MB / 0.7139 GB, free: 3.035 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.4331, allocations: 4 kB / 0.7139 GB, free: 3.031 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.615e-06/0.4331, allocations: 0 / 0.7139 GB, free: 3.031 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.4331, allocations: 3.938 kB / 0.7139 GB, free: 3.027 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.001469/0.4346, allocations: 1.08 MB / 0.715 GB, free: 1.898 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.4346, allocations: 8.031 kB / 0.715 GB, free: 1.891 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.4347, allocations: 114.6 kB / 0.7151 GB, free: 1.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.4348, allocations: 96.62 kB / 0.7152 GB, free: 1.676 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.4354, allocations: 0.5033 MB / 0.7157 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.878e-05/0.4354, allocations: 54.38 kB / 0.7157 GB, free: 1.078 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-05/0.4355, allocations: 72.56 kB / 0.7158 GB, free: 1.008 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009621/0.4365, allocations: 0.6633 MB / 0.7164 GB, free: 348 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.4365, allocations: 0 / 0.7164 GB, free: 348 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.576e-05/0.4366, allocations: 24 kB / 0.7165 GB, free: 324 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.4366, allocations: 20 kB / 0.7165 GB, free: 304 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009674/0.4376, allocations: 0.6482 MB / 0.7171 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002829/0.4404, allocations: 3.176 MB / 0.7202 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.4416, allocations: 0.6853 MB / 0.7209 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003863/0.442, allocations: 274.4 kB / 0.7211 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001978/0.444, allocations: 2.608 MB / 0.7237 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.444, allocations: 35.12 kB / 0.7237 GB, free: 8.074 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=57): time 1.694e-06/0.444, allocations: 0 / 0.7237 GB, free: 8.074 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58): time 0.002966/0.447, allocations: 1.805 MB / 0.7255 GB, free: 6.176 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.447, allocations: 59.97 kB / 0.7255 GB, free: 6.105 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.4474, allocations: 450.8 kB / 0.726 GB, free: 5.656 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.4475, allocations: 33.7 kB / 0.726 GB, free: 5.617 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.4477, allocations: 348.2 kB / 0.7263 GB, free: 5.273 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.4478, allocations: 201 kB / 0.7265 GB, free: 5.074 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.408e-05/0.4478, allocations: 12 kB / 0.7265 GB, free: 5.062 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.448, allocations: 366.8 kB / 0.7269 GB, free: 4.695 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.4483, allocations: 181 kB / 0.7271 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/0.4486, allocations: 237.5 kB / 0.7273 GB, free: 4.273 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006766/0.4493, allocations: 446.5 kB / 0.7277 GB, free: 3.824 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.4493, allocations: 0 / 0.7277 GB, free: 3.824 MB / 0.5261 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001061/0.4504, allocations: 0.655 MB / 0.7284 GB, free: 3.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.4504, allocations: 8.094 kB / 0.7284 GB, free: 3.152 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4504, allocations: 0 / 0.7284 GB, free: 3.152 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003248/0.4508, allocations: 104.8 kB / 0.7285 GB, free: 3.047 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.4511, allocations: 99.89 kB / 0.7286 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.4529, allocations: 1.899 MB / 0.7304 GB, free: 0.918 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.4532, allocations: 44.06 kB / 0.7305 GB, free: 0.875 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.649e-05/0.4532, allocations: 16 kB / 0.7305 GB, free: 0.8594 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 (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.0002246/0.4535, allocations: 201.6 kB / 0.7307 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.065e-05/0.4536, allocations: 59.25 kB / 0.7307 GB, free: 0.5938 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.455, allocations: 0.8039 MB / 0.7315 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.455, allocations: 11.94 kB / 0.7315 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.455, allocations: 4 kB / 0.7315 GB, free: 15.76 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.455, allocations: 7.984 kB / 0.7315 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.4571, allocations: 1.562 MB / 0.733 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4571, allocations: 4 kB / 0.7331 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.4575, allocations: 103.9 kB / 0.7332 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002876/0.4578, allocations: 116.7 kB / 0.7333 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.4578, allocations: 19.98 kB / 0.7333 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.4595, allocations: 1.906 MB / 0.7351 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4595, allocations: 0 / 0.7351 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.4611, allocations: 1.06 MB / 0.7362 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.249e-05/0.4612, allocations: 124.4 kB / 0.7363 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.82e-05/0.4612, allocations: 24.05 kB / 0.7363 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.4615, allocations: 39.88 kB / 0.7364 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.038e-05/0.4616, allocations: 48.5 kB / 0.7364 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.79e-05/0.4617, allocations: 27.98 kB / 0.7364 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002847/0.462, allocations: 314.8 kB / 0.7367 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.462, allocations: 0 / 0.7367 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006805/0.4627, allocations: 323.8 kB / 0.737 GB, free: 9.852 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 (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.00227/0.4649, allocations: 1.986 MB / 0.739 GB, free: 7.832 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001101/0.4661, allocations: 0.699 MB / 0.7397 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.4661, allocations: 4 kB / 0.7397 GB, free: 7.109 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.4668, allocations: 0.4957 MB / 0.7402 GB, free: 6.598 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008168/0.4676, allocations: 175.1 kB / 0.7403 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00644/0.474, allocations: 5.634 MB / 0.7458 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.4745, allocations: 0.9497 MB / 0.7467 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000329/0.4748, allocations: 121 kB / 0.7469 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/0.4752, allocations: 299.3 kB / 0.7471 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of SimCode: time 5.21e-07/0.4752, allocations: 0 / 0.7471 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.319/0.7942, allocations: 20.65 MB / 0.7673 GB, free: 194.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001444/0.7944, allocations: 235.4 kB / 0.7675 GB, free: 194.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/3.272, allocations: 0 / 0.7675 GB, free: 194.4 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_TanValve.fmu > 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