Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",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.00214/0.00214, 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.002271/0.002271, allocations: 192.5 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 2.167/2.167, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.244/1.244, allocations: 93.72 MB / 384.1 MB, free: 6.973 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002889/0.00289, allocations: 81.31 kB / 463.5 MB, free: 22.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2936, allocations: 68.27 MB / 0.5193 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.1076/0.4014, allocations: 65.09 MB / 0.5829 GB, free: 5.602 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.725/1.126, allocations: 17.61 MB / 0.6001 GB, free: 5.824 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005955/1.133, allocations: 81 kB / 0.6001 GB, free: 5.824 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005752/1.138, allocations: 1.191 MB / 0.6013 GB, free: 5.793 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0198/1.158, allocations: 2.81 MB / 0.6041 GB, free: 5.676 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01158/1.17, allocations: 1.542 MB / 0.6056 GB, free: 5.637 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/1.184, allocations: 3.873 MB / 0.6093 GB, free: 5.52 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/1.186, allocations: 0.6221 MB / 0.61 GB, free: 5.359 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008342/1.194, allocations: 1.59 MB / 0.6115 GB, free: 5.008 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004726/1.199, allocations: 1.525 MB / 0.613 GB, free: 4.656 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001061/1.2, allocations: 191.5 kB / 0.6132 GB, free: 4.656 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01288/1.213, allocations: 1.678 MB / 0.6148 GB, free: 4.527 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001184/1.214, allocations: 495.9 kB / 0.6153 GB, free: 4.414 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003513/1.217, allocations: 1.26 MB / 0.6165 GB, free: 4.016 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01923/1.237, allocations: 3.736 MB / 0.6202 GB, free: 3.414 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.278e-05/1.237, allocations: 0 / 0.6202 GB, free: 3.414 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.296e-06/1.237, allocations: 0.7812 kB / 0.6202 GB, free: 3.414 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001255/1.237, allocations: 0 / 0.6202 GB, free: 3.414 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.0122/1.249, allocations: 2.986 MB / 0.6231 GB, free: 18.01 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001087/1.249, allocations: 10.25 kB / 0.6231 GB, free: 18.01 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000526/1.25, allocations: 271.1 kB / 0.6234 GB, free: 17.95 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/1.251, allocations: 282.1 kB / 0.6236 GB, free: 17.81 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003792/1.255, allocations: 1.352 MB / 0.6249 GB, free: 17.3 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/1.255, allocations: 142.5 kB / 0.6251 GB, free: 17.3 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004354/1.255, allocations: 193.2 kB / 0.6253 GB, free: 17.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005477/1.261, allocations: 2.164 MB / 0.6274 GB, free: 17.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.82e-05/1.261, allocations: 0.9375 kB / 0.6274 GB, free: 17.14 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002253/1.261, allocations: 77.19 kB / 0.6274 GB, free: 17.14 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/1.261, allocations: 50.38 kB / 0.6275 GB, free: 17.13 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005468/1.267, allocations: 2.271 MB / 0.6297 GB, free: 16.85 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01881/1.286, allocations: 9.032 MB / 0.6385 GB, free: 9.113 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005662/1.291, allocations: 1.913 MB / 0.6404 GB, free: 8.129 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002387/1.294, allocations: 0.9807 MB / 0.6414 GB, free: 7.625 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/1.311, allocations: 6.779 MB / 0.648 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003574/1.315, allocations: 0.9568 MB / 0.6489 GB, free: 336 kB / 478.1 MB Notification: Performance of pre-optimization done (n=200): time 6.502e-06/1.315, allocations: 3.938 kB / 0.6489 GB, free: 332 kB / 478.1 MB Notification: Performance of matching and sorting (n=200): time 0.0103/1.325, allocations: 2.998 MB / 0.6518 GB, free: 14.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/1.325, allocations: 75.03 kB / 0.6519 GB, free: 14.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003205/1.329, allocations: 1.236 MB / 0.6531 GB, free: 13.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003459/1.329, allocations: 63.14 kB / 0.6532 GB, free: 13.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/1.331, allocations: 0.8603 MB / 0.654 GB, free: 13.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/1.332, allocations: 0.6604 MB / 0.6547 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009157/1.333, allocations: 329.5 kB / 0.655 GB, free: 12.36 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002487/1.333, allocations: 301.1 kB / 0.6553 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002147/1.335, allocations: 0.6532 MB / 0.6559 GB, free: 11.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00244/1.338, allocations: 0.8895 MB / 0.6568 GB, free: 11.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004557/1.342, allocations: 1.666 MB / 0.6584 GB, free: 10.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.439e-05/1.342, allocations: 3.938 kB / 0.6584 GB, free: 10.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006166/1.348, allocations: 2.154 MB / 0.6605 GB, free: 8.906 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/1.349, allocations: 37.69 kB / 0.6605 GB, free: 8.863 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/1.349, allocations: 4 kB / 0.6606 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009267/1.35, allocations: 158.5 kB / 0.6607 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/1.351, allocations: 399.4 kB / 0.6611 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007638/1.359, allocations: 4.842 MB / 0.6658 GB, free: 3.051 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/1.361, allocations: 162.2 kB / 0.666 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004143/1.362, allocations: 87.95 kB / 0.6661 GB, free: 2.805 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002024/1.364, allocations: 363.5 kB / 0.6664 GB, free: 2.441 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001094/1.365, allocations: 197.6 kB / 0.6666 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/1.377, allocations: 3.425 MB / 0.6699 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.475e-05/1.377, allocations: 31.92 kB / 0.67 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/1.377, allocations: 4 kB / 0.67 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.281e-05/1.377, allocations: 11.95 kB / 0.67 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/1.393, allocations: 4.801 MB / 0.6747 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/1.393, allocations: 0 / 0.6747 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/1.395, allocations: 403.5 kB / 0.675 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/1.396, allocations: 166.5 kB / 0.6752 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003257/1.397, allocations: 75.95 kB / 0.6753 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007944/1.405, allocations: 4.838 MB / 0.68 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/1.405, allocations: 4.031 kB / 0.68 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009967/1.415, allocations: 3.324 MB / 0.6833 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/1.417, allocations: 0.521 MB / 0.6838 GB, free: 208 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008241/1.418, allocations: 51.84 kB / 0.6838 GB, free: 156 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/1.419, allocations: 59.97 kB / 0.6839 GB, free: 96 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004877/1.42, allocations: 169.7 kB / 0.684 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/1.42, allocations: 88.14 kB / 0.6841 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002239/1.422, allocations: 0.8665 MB / 0.685 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/1.423, allocations: 0 / 0.685 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005292/1.428, allocations: 0.85 MB / 0.6858 GB, free: 14.13 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (225): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01366/1.442, allocations: 4.618 MB / 0.6903 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01133/1.453, allocations: 2.364 MB / 0.6926 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.453, allocations: 0 / 0.6926 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003738/1.457, allocations: 1.441 MB / 0.694 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006169/1.463, allocations: 0.6576 MB / 0.6947 GB, free: 5.016 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04796/1.511, allocations: 16.33 MB / 0.7106 GB, free: 3.523 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002658/1.514, allocations: 1.475 MB / 0.7121 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003344/1.517, allocations: 0.5065 MB / 0.7125 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002758/1.52, allocations: 0.9913 MB / 0.7135 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of SimCode: time 2.935e-06/1.52, allocations: 0 / 0.7135 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2144/1.734, allocations: 59.59 MB / 0.7717 GB, free: 5.34 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.65/27.38, allocations: 4 kB / 0.7717 GB, free: 5.336 MB / 0.5919 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches