Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors.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.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sensors",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.001208/0.001208, allocations: 109.5 kB / 16.41 MB, free: 6.445 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.00125/0.00125, allocations: 185.4 kB / 17.34 MB, free: 5.738 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.403/1.403, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2006/0.2006, 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.001484/0.001484, allocations: 71.89 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1066, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sensors): time 0.003236/0.1098, allocations: 1.873 MB / 0.4892 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.1111, allocations: 0.6046 MB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.1113, allocations: 4 kB / 0.4898 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.1115, allocations: 39.7 kB / 0.4898 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.1117, allocations: 35.7 kB / 0.4899 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.1119, allocations: 43.89 kB / 0.4899 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002245/0.1122, allocations: 151.5 kB / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.1123, allocations: 57.44 kB / 0.4901 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.1125, allocations: 63.78 kB / 0.4902 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.7e-05/0.1126, allocations: 63.7 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.1126, allocations: 12 kB / 0.4902 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.46e-05/0.1127, allocations: 19.94 kB / 0.4903 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.144e-05/0.1127, allocations: 27.92 kB / 0.4903 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.585e-05/0.1128, allocations: 71.66 kB / 0.4904 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.113, allocations: 163.3 kB / 0.4905 GB, free: 9.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.113, allocations: 0 / 0.4905 GB, free: 9.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.113, allocations: 0 / 0.4905 GB, free: 9.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.113, allocations: 0 / 0.4905 GB, free: 9.094 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006489/0.1137, allocations: 442.6 kB / 0.4909 GB, free: 8.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1137, allocations: 15.89 kB / 0.491 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.756e-05/0.1138, allocations: 46.73 kB / 0.491 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.1138, allocations: 16.84 kB / 0.491 GB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002663/0.1141, allocations: 204.1 kB / 0.4912 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.1141, allocations: 12.59 kB / 0.4912 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.1142, allocations: 12.38 kB / 0.4912 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/0.1145, allocations: 143.9 kB / 0.4914 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.1145, allocations: 0 / 0.4914 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.1145, allocations: 8 kB / 0.4914 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.1145, allocations: 7.938 kB / 0.4914 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.1148, allocations: 108.1 kB / 0.4915 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009472/0.1158, allocations: 0.6027 MB / 0.4921 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.116, allocations: 78.52 kB / 0.4921 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.1162, allocations: 29 kB / 0.4922 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.1162, allocations: 0 / 0.4922 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.1162, allocations: 34.56 kB / 0.4922 GB, free: 7.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 8.81e-07/0.1162, allocations: 0 / 0.4922 GB, free: 7.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003877/0.1166, allocations: 109.6 kB / 0.4923 GB, free: 7.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.1167, allocations: 51.41 kB / 0.4924 GB, free: 6.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.1168, allocations: 165.6 kB / 0.4925 GB, free: 6.824 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.1168, allocations: 25.7 kB / 0.4925 GB, free: 6.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.894e-05/0.1169, allocations: 135.8 kB / 0.4927 GB, free: 6.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.1169, allocations: 11.91 kB / 0.4927 GB, free: 6.645 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.117, allocations: 25.67 kB / 0.4927 GB, free: 6.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1171, allocations: 326.8 kB / 0.493 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.1172, allocations: 31.97 kB / 0.4931 GB, free: 6.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.1173, allocations: 60.27 kB / 0.4931 GB, free: 6.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.1175, allocations: 92.19 kB / 0.4932 GB, free: 6.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1176, allocations: 4 kB / 0.4932 GB, free: 6.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002897/0.1178, allocations: 129.6 kB / 0.4933 GB, free: 5.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1179, allocations: 4 kB / 0.4933 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1179, allocations: 4 kB / 0.4933 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.1179, allocations: 3.938 kB / 0.4933 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.118, allocations: 23.98 kB / 0.4934 GB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.1181, allocations: 4 kB / 0.4934 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1182, allocations: 15.88 kB / 0.4934 GB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.1182, allocations: 4 kB / 0.4934 GB, free: 5.879 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 8.913e-05/0.1183, allocations: 133.8 kB / 0.4935 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.1183, allocations: 11.89 kB / 0.4935 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.1184, allocations: 12.3 kB / 0.4935 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1184, allocations: 3.938 kB / 0.4935 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1184, allocations: 0 / 0.4935 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1184, allocations: 4 kB / 0.4935 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.1186, allocations: 205.6 kB / 0.4937 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1186, allocations: 0 / 0.4937 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.169e-05/0.1187, allocations: 15.98 kB / 0.4938 GB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1187, allocations: 3.938 kB / 0.4938 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.1187, allocations: 4 kB / 0.4938 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.423e-06/0.1187, allocations: 3.938 kB / 0.4938 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1187, allocations: 256 / 0.4938 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.119, allocations: 191.4 kB / 0.4939 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-05/0.1191, allocations: 85.06 kB / 0.494 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.1191, allocations: 0 / 0.494 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.912e-05/0.1192, allocations: 15.92 kB / 0.494 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.1192, allocations: 4 kB / 0.494 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.1192, allocations: 4 kB / 0.4941 GB, free: 5.098 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.356e-05/0.1193, allocations: 111.9 kB / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1193, allocations: 0 / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.1196, allocations: 31.89 kB / 0.4942 GB, free: 4.957 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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.0005071/0.1201, allocations: 0.7162 MB / 0.4949 GB, free: 4.215 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002661/0.1204, allocations: 75.88 kB / 0.495 GB, free: 4.141 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1204, allocations: 0 / 0.495 GB, free: 4.141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.686e-05/0.1205, allocations: 23.98 kB / 0.495 GB, free: 4.117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.1208, allocations: 14.91 kB / 0.495 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.1226, allocations: 1.648 MB / 0.4966 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.1229, allocations: 0.7119 MB / 0.4973 GB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.835e-05/0.1229, allocations: 8.656 kB / 0.4973 GB, free: 1.602 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.193e-05/0.123, allocations: 39.42 kB / 0.4973 GB, free: 1.566 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.123, allocations: 0 / 0.4973 GB, free: 1.566 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.1405, allocations: 2.125 MB / 0.4994 GB, free: 15.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/7.393, allocations: 0 / 0.4994 GB, free: 15.43 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sensors.fmu > ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches