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.001254/0.001254, allocations: 108.9 kB / 16.41 MB, free: 6.496 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.001212/0.001212, 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.378/1.378, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2107/0.2107, allocations: 43.53 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.002052/0.002052, allocations: 72.41 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1124, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4311/0.5435, allocations: 186.3 MB / 0.6693 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.5456, allocations: 0.8954 MB / 0.6702 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003881/0.546, allocations: 11.94 kB / 0.6702 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0007229/0.5468, allocations: 206.7 kB / 0.6704 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0006869/0.5475, allocations: 278.3 kB / 0.6707 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005822/0.5533, allocations: 2.141 MB / 0.6727 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00138/0.5547, allocations: 0.9788 MB / 0.6737 GB, free: 12 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005826/0.5553, allocations: 342.5 kB / 0.674 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003862/0.5592, allocations: 1.692 MB / 0.6757 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006067/0.5598, allocations: 314.8 kB / 0.676 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.56, allocations: 48 kB / 0.676 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005373/0.5653, allocations: 2.94 MB / 0.6789 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003282/0.5657, allocations: 191.5 kB / 0.6791 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004697/0.5662, allocations: 274.8 kB / 0.6793 GB, free: 6.219 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004475/0.5707, allocations: 2.127 MB / 0.6814 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.5707, allocations: 0 / 0.6814 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.617e-06/0.5707, allocations: 3.984 kB / 0.6814 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.14e-05/0.5707, allocations: 0 / 0.6814 GB, free: 4.082 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.002359/0.5731, allocations: 1.095 MB / 0.6825 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.5731, allocations: 15.88 kB / 0.6825 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.5733, allocations: 78.53 kB / 0.6826 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000283/0.5735, allocations: 59.72 kB / 0.6826 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.5741, allocations: 382.2 kB / 0.683 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.5742, allocations: 29 kB / 0.683 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.308e-05/0.5743, allocations: 39.94 kB / 0.6831 GB, free: 2.281 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009283/0.5752, allocations: 0.5198 MB / 0.6836 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.5752, allocations: 0 / 0.6836 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.778e-05/0.5753, allocations: 15.94 kB / 0.6836 GB, free: 1.723 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.5753, allocations: 12 kB / 0.6836 GB, free: 1.711 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009002/0.5762, allocations: 491.6 kB / 0.6841 GB, free: 1.23 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002828/0.579, allocations: 1.977 MB / 0.686 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008279/0.5799, allocations: 466.7 kB / 0.6865 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.5802, allocations: 178.5 kB / 0.6866 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009457/0.5812, allocations: 0.9494 MB / 0.6875 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.5813, allocations: 42.56 kB / 0.6876 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=30): time 1.973e-06/0.5813, allocations: 0 / 0.6876 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=30): time 0.001218/0.5825, allocations: 0.4941 MB / 0.6881 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.5826, allocations: 110.8 kB / 0.6882 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004618/0.583, allocations: 393.7 kB / 0.6886 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.5831, allocations: 33.7 kB / 0.6886 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.5833, allocations: 220.5 kB / 0.6888 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.5834, allocations: 119 kB / 0.6889 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.5835, allocations: 78.02 kB / 0.689 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.5837, allocations: 346.8 kB / 0.6893 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.584, allocations: 152.7 kB / 0.6895 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.5845, allocations: 258 kB / 0.6897 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007758/0.5852, allocations: 491.9 kB / 0.6902 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.5853, allocations: 7.938 kB / 0.6902 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001032/0.5863, allocations: 0.5436 MB / 0.6907 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.871e-05/0.5864, allocations: 63.39 kB / 0.6908 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.5864, allocations: 4 kB / 0.6908 GB, free: 9.758 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.5864, allocations: 7.938 kB / 0.6908 GB, free: 9.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/0.5868, allocations: 83.89 kB / 0.6909 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.5868, allocations: 7.938 kB / 0.6909 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.5872, allocations: 59.95 kB / 0.6909 GB, free: 9.602 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.703e-05/0.5872, allocations: 19.98 kB / 0.6909 GB, free: 9.582 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.0002249/0.5875, allocations: 189.6 kB / 0.6911 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.5876, allocations: 43.72 kB / 0.6912 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.5886, allocations: 488.1 kB / 0.6916 GB, free: 8.855 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.5887, allocations: 8.031 kB / 0.6916 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.5887, allocations: 0 / 0.6916 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.5887, allocations: 3.938 kB / 0.6916 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/0.5918, allocations: 2.438 MB / 0.694 GB, free: 6.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.5918, allocations: 4 kB / 0.694 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.5921, allocations: 64.09 kB / 0.6941 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.5921, allocations: 0 / 0.6941 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.5921, allocations: 16 kB / 0.6941 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.126e-06/0.5921, allocations: 7.984 kB / 0.6941 GB, free: 5.969 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.5922, allocations: 7.938 kB / 0.6941 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008953/0.5931, allocations: 0.6398 MB / 0.6947 GB, free: 5.285 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.5932, allocations: 124.8 kB / 0.6949 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.239e-05/0.5933, allocations: 15.89 kB / 0.6949 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004224/0.5937, allocations: 23.98 kB / 0.6949 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.319e-05/0.5938, allocations: 23.97 kB / 0.6949 GB, free: 5.082 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.762e-05/0.5939, allocations: 19.98 kB / 0.6949 GB, free: 5.062 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004308/0.5943, allocations: 363.1 kB / 0.6953 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5943, allocations: 0 / 0.6953 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001196/0.5955, allocations: 386.9 kB / 0.6957 GB, free: 4.332 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.002702/0.5982, allocations: 1.669 MB / 0.6973 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008749/0.5991, allocations: 467 kB / 0.6977 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5991, allocations: 8.062 kB / 0.6977 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.5995, allocations: 163.9 kB / 0.6979 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.6009, allocations: 282.1 kB / 0.6982 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006887/0.6078, allocations: 4.609 MB / 0.7027 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/0.6084, allocations: 0.8312 MB / 0.7035 GB, free: 12.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005416/0.609, allocations: 120 kB / 0.7036 GB, free: 11.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002854/0.6093, allocations: 147.4 kB / 0.7037 GB, free: 11.75 MB / 0.545 GB Notification: Performance of SimCode: time 1.493e-06/0.6093, allocations: 0 / 0.7037 GB, free: 11.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0526/0.6619, allocations: 20.74 MB / 0.724 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.19/9.852, allocations: 7.938 kB / 0.724 GB, free: 6.98 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