Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002612/0.002612, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003698/0.003698, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.788/1.788, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.008/1.008, allocations: 91.2 MB / 381.6 MB, free: 9.395 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 77.23 kB / 460.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2377, allocations: 67.68 MB / 0.5157 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.8526/1.09, allocations: 173.2 MB / 0.6848 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02035/1.111, allocations: 10.99 MB / 0.6956 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002802/1.114, allocations: 47.44 kB / 0.6956 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002769/1.117, allocations: 0.8041 MB / 0.6964 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007259/1.124, allocations: 1.668 MB / 0.698 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004391/1.128, allocations: 1.111 MB / 0.6991 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004484/1.133, allocations: 2.527 MB / 0.7016 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009551/1.134, allocations: 480 kB / 0.702 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002565/1.136, allocations: 1.031 MB / 0.703 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/1.138, allocations: 1.351 MB / 0.7044 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002199/1.138, allocations: 144 kB / 0.7045 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005865/1.144, allocations: 1.938 MB / 0.7064 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0005835/1.145, allocations: 354.7 kB / 0.7067 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001117/1.146, allocations: 0.8124 MB / 0.7075 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005662/1.152, allocations: 2.547 MB / 0.71 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/1.152, allocations: 4 kB / 0.71 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.044e-06/1.152, allocations: 0 / 0.71 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.313e-05/1.152, allocations: 4 kB / 0.71 GB, free: 8.582 MB / 0.5137 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.004568/1.156, allocations: 2.018 MB / 0.712 GB, free: 6.504 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/1.156, allocations: 12.03 kB / 0.712 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002295/1.157, allocations: 181.8 kB / 0.7122 GB, free: 6.305 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000343/1.157, allocations: 167 kB / 0.7123 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/1.159, allocations: 0.9123 MB / 0.7132 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.049e-05/1.159, allocations: 90.97 kB / 0.7133 GB, free: 5.094 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002001/1.159, allocations: 127.9 kB / 0.7134 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/1.162, allocations: 1.524 MB / 0.7149 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/1.162, allocations: 0 / 0.7149 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/1.162, allocations: 52 kB / 0.715 GB, free: 3.352 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.685e-05/1.162, allocations: 28 kB / 0.715 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002832/1.165, allocations: 1.665 MB / 0.7166 GB, free: 1.652 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008264/1.173, allocations: 6.273 MB / 0.7227 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002516/1.175, allocations: 1.284 MB / 0.724 GB, free: 9.473 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/1.177, allocations: 0.6997 MB / 0.7247 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005346/1.182, allocations: 4.018 MB / 0.7286 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001359/1.183, allocations: 0.7278 MB / 0.7293 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 4.077e-06/1.183, allocations: 4 kB / 0.7293 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.008082/1.191, allocations: 3.969 MB / 0.7332 GB, free: 15.49 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/1.192, allocations: 68.66 kB / 0.7333 GB, free: 15.41 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009491/1.193, allocations: 0.7126 MB / 0.734 GB, free: 14.69 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.305e-05/1.193, allocations: 45.7 kB / 0.734 GB, free: 14.64 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004915/1.193, allocations: 0.5239 MB / 0.7345 GB, free: 14.11 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004037/1.194, allocations: 441.7 kB / 0.7349 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003521/1.194, allocations: 210.8 kB / 0.7351 GB, free: 13.46 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001653/1.194, allocations: 345.9 kB / 0.7355 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009447/1.195, allocations: 0.514 MB / 0.736 GB, free: 12.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/1.196, allocations: 0.6251 MB / 0.7366 GB, free: 11.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/1.198, allocations: 1.244 MB / 0.7378 GB, free: 10.68 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.198, allocations: 0 / 0.7378 GB, free: 10.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003022/1.201, allocations: 1.591 MB / 0.7393 GB, free: 9.074 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.724e-05/1.201, allocations: 29.7 kB / 0.7394 GB, free: 9.039 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/1.201, allocations: 4 kB / 0.7394 GB, free: 9.035 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006123/1.202, allocations: 168.8 kB / 0.7395 GB, free: 8.867 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009634/1.203, allocations: 239.7 kB / 0.7398 GB, free: 8.633 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004724/1.208, allocations: 2.717 MB / 0.7424 GB, free: 5.777 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006998/1.209, allocations: 51.94 kB / 0.7425 GB, free: 5.727 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/1.209, allocations: 47.98 kB / 0.7425 GB, free: 5.68 MB / 0.545 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.0006006/1.209, allocations: 298.5 kB / 0.7428 GB, free: 5.379 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000248/1.21, allocations: 122.6 kB / 0.7429 GB, free: 5.258 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004548/1.214, allocations: 2.317 MB / 0.7452 GB, free: 2.957 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/1.214, allocations: 16 kB / 0.7452 GB, free: 2.941 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/1.214, allocations: 4 kB / 0.7452 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/1.214, allocations: 7.969 kB / 0.7452 GB, free: 2.93 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006257/1.22, allocations: 3.431 MB / 0.7486 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/1.22, allocations: 128 / 0.7486 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009919/1.221, allocations: 267.7 kB / 0.7488 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000461/1.222, allocations: 147.3 kB / 0.749 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/1.222, allocations: 47.98 kB / 0.749 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003026/1.225, allocations: 2.443 MB / 0.7514 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/1.225, allocations: 7.938 kB / 0.7514 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004896/1.23, allocations: 2.599 MB / 0.7539 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/1.23, allocations: 179.5 kB / 0.7541 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/1.231, allocations: 31.98 kB / 0.7541 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005944/1.231, allocations: 52.03 kB / 0.7542 GB, free: 9.465 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002747/1.231, allocations: 113.1 kB / 0.7543 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/1.232, allocations: 55.92 kB / 0.7543 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0009285/1.233, allocations: 0.5233 MB / 0.7549 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/1.233, allocations: 0 / 0.7549 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002122/1.235, allocations: 0.5077 MB / 0.7554 GB, free: 8.258 MB / 0.5606 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.006378/1.241, allocations: 3.612 MB / 0.7589 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005326/1.246, allocations: 1.856 MB / 0.7607 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.246, allocations: 0 / 0.7607 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001977/1.248, allocations: 0.9943 MB / 0.7617 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/1.251, allocations: 400 kB / 0.762 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/1.273, allocations: 10.75 MB / 0.7725 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/1.274, allocations: 1.191 MB / 0.7737 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001457/1.276, allocations: 353.3 kB / 0.774 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/1.277, allocations: 0.5735 MB / 0.7746 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of SimCode: time 3.016e-06/1.277, allocations: 0 / 0.7746 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6743/1.951, allocations: 37.87 MB / 0.8116 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/15.63, allocations: 13.53 kB / 0.8116 GB, free: 14.52 MB / 0.6231 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches