Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",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.001091/0.001091, allocations: 110.3 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.262/1.262, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1962/0.1962, allocations: 43.52 MB / 314.1 MB, free: 472 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 71.91 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09449, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4134/0.508, allocations: 186.3 MB / 0.6693 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.5097, allocations: 0.9019 MB / 0.6702 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001839/0.5099, allocations: 11.94 kB / 0.6702 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006127/0.5106, allocations: 202.7 kB / 0.6704 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0004907/0.5111, allocations: 290.3 kB / 0.6707 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005315/0.5164, allocations: 2.153 MB / 0.6728 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001039/0.5175, allocations: 0.9828 MB / 0.6737 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004386/0.5179, allocations: 340 kB / 0.6741 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003417/0.5214, allocations: 1.703 MB / 0.6757 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004915/0.5219, allocations: 322.7 kB / 0.676 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.888e-05/0.522, allocations: 48 kB / 0.6761 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004868/0.5268, allocations: 2.944 MB / 0.6789 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.5271, allocations: 187.5 kB / 0.6791 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003201/0.5274, allocations: 266.9 kB / 0.6794 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003437/0.5309, allocations: 2.135 MB / 0.6815 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5309, allocations: 0 / 0.6815 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5309, allocations: 0 / 0.6815 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.489e-05/0.5309, allocations: 0 / 0.6815 GB, free: 4.059 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002165/0.5331, allocations: 1.099 MB / 0.6825 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.5331, allocations: 11.89 kB / 0.6825 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.5332, allocations: 74.53 kB / 0.6826 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.5335, allocations: 59.7 kB / 0.6827 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005971/0.5341, allocations: 386.2 kB / 0.683 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.5342, allocations: 21 kB / 0.6831 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.5342, allocations: 43.94 kB / 0.6831 GB, free: 2.262 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008938/0.5351, allocations: 0.5198 MB / 0.6836 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.5352, allocations: 0 / 0.6836 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.5352, allocations: 16 kB / 0.6836 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.5352, allocations: 12 kB / 0.6836 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008676/0.5361, allocations: 495.5 kB / 0.6841 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002812/0.5389, allocations: 1.976 MB / 0.686 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007315/0.5397, allocations: 462.8 kB / 0.6865 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.54, allocations: 178.5 kB / 0.6867 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000734/0.5407, allocations: 0.9494 MB / 0.6876 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.5408, allocations: 42.56 kB / 0.6876 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=30): time 1.984e-06/0.5408, allocations: 0 / 0.6876 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=30): time 0.001066/0.5419, allocations: 0.4941 MB / 0.6881 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.5419, allocations: 106.8 kB / 0.6882 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003908/0.5423, allocations: 393.7 kB / 0.6886 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.5424, allocations: 37.64 kB / 0.6886 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.5425, allocations: 224.5 kB / 0.6888 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 7.866e-05/0.5426, allocations: 107 kB / 0.6889 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.5428, allocations: 82.02 kB / 0.689 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.5429, allocations: 346.8 kB / 0.6893 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.5432, allocations: 156.6 kB / 0.6895 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.5436, allocations: 258 kB / 0.6897 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006986/0.5443, allocations: 492.1 kB / 0.6902 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.5443, allocations: 3.938 kB / 0.6902 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009575/0.5452, allocations: 0.5433 MB / 0.6907 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.337e-05/0.5453, allocations: 63.41 kB / 0.6908 GB, free: 9.746 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.5453, allocations: 4 kB / 0.6908 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.5454, allocations: 8.047 kB / 0.6908 GB, free: 9.734 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.5457, allocations: 87.83 kB / 0.6909 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.5458, allocations: 4 kB / 0.6909 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.5461, allocations: 59.95 kB / 0.691 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.82e-05/0.5462, allocations: 20 kB / 0.691 GB, free: 9.566 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000228/0.5464, allocations: 189.6 kB / 0.6912 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.5466, allocations: 43.72 kB / 0.6912 GB, free: 9.328 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.5476, allocations: 486.7 kB / 0.6917 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.5476, allocations: 7.938 kB / 0.6917 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.5476, allocations: 4 kB / 0.6917 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.5476, allocations: 3.984 kB / 0.6917 GB, free: 8.828 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003041/0.5507, allocations: 2.434 MB / 0.6941 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.5507, allocations: 4.188 kB / 0.6941 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.551, allocations: 67.89 kB / 0.6941 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.551, allocations: 4.281 kB / 0.6941 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.551, allocations: 11.94 kB / 0.6941 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.5511, allocations: 4 kB / 0.6941 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.5511, allocations: 4 kB / 0.6941 GB, free: 5.953 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008099/0.5519, allocations: 0.6437 MB / 0.6948 GB, free: 5.273 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.552, allocations: 124.8 kB / 0.6949 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.372e-05/0.5521, allocations: 15.89 kB / 0.6949 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.5526, allocations: 23.98 kB / 0.6949 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.943e-05/0.5527, allocations: 27.91 kB / 0.695 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.983e-05/0.5528, allocations: 19.98 kB / 0.695 GB, free: 5.047 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004191/0.5532, allocations: 363.1 kB / 0.6953 GB, free: 4.695 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5532, allocations: 0 / 0.6953 GB, free: 4.695 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001095/0.5543, allocations: 382.9 kB / 0.6957 GB, free: 4.32 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002422/0.5568, allocations: 1.677 MB / 0.6973 GB, free: 2.609 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000933/0.5577, allocations: 471 kB / 0.6978 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.5577, allocations: 4 kB / 0.6978 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.558, allocations: 156 kB / 0.6979 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.5595, allocations: 278.1 kB / 0.6982 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005995/0.5655, allocations: 4.613 MB / 0.7027 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.5659, allocations: 0.839 MB / 0.7035 GB, free: 11.99 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004233/0.5664, allocations: 112.2 kB / 0.7036 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002406/0.5666, allocations: 151.4 kB / 0.7038 GB, free: 11.73 MB / 0.545 GB Notification: Performance of SimCode: time 3.81e-07/0.5666, allocations: 3.938 kB / 0.7038 GB, free: 11.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04279/0.6094, allocations: 20.73 MB / 0.724 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.595/9.204, allocations: 0 / 0.724 GB, free: 6.973 MB / 0.5606 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches