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.001782/0.001782, allocations: 106.7 kB / 16.27 MB, free: 6.41 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.001996/0.001996, allocations: 191.1 kB / 17.2 MB, free: 5.953 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.587/1.587, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2216/0.2216, allocations: 43.52 MB / 313.9 MB, free: 0.5195 MB / 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.001499/0.001499, allocations: 70.41 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1043, allocations: 57.8 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sensors): time 0.003239/0.1076, allocations: 1.865 MB / 442.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008332/0.1084, allocations: 0.6126 MB / 443.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.152e-05/0.1085, allocations: 0 / 443.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.1087, allocations: 35.7 kB / 443.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.1089, allocations: 31.72 kB / 443.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.109, allocations: 39.94 kB / 443.2 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001469/0.1092, allocations: 151.5 kB / 443.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.1094, allocations: 65.39 kB / 443.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.1095, allocations: 67.7 kB / 443.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.872e-05/0.1096, allocations: 63.7 kB / 443.5 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.1096, allocations: 12 kB / 443.6 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.261e-05/0.1096, allocations: 19.94 kB / 443.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.909e-05/0.1097, allocations: 31.91 kB / 443.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.024e-05/0.1097, allocations: 63.67 kB / 443.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.1099, allocations: 155.5 kB / 443.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1099, allocations: 0 / 443.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1099, allocations: 4 kB / 443.8 MB, free: 3.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.11, allocations: 0 / 443.8 MB, free: 3.582 MB / 318.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.00063/0.1106, allocations: 439.3 kB / 444.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.1107, allocations: 15.89 kB / 444.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.614e-05/0.1107, allocations: 46.73 kB / 444.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.1108, allocations: 20.75 kB / 444.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.111, allocations: 204.1 kB / 444.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.111, allocations: 12.66 kB / 444.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.389e-05/0.111, allocations: 16.38 kB / 444.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.1114, allocations: 139.9 kB / 444.7 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.1114, allocations: 4 kB / 444.7 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.1114, allocations: 4 kB / 444.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1115, allocations: 7.984 kB / 444.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.1117, allocations: 108.1 kB / 444.8 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009294/0.1127, allocations: 0.5987 MB / 445.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.1129, allocations: 78.56 kB / 445.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.478e-05/0.113, allocations: 24.97 kB / 445.5 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.1131, allocations: 0 / 445.5 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.1131, allocations: 34.56 kB / 445.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 8.52e-07/0.1131, allocations: 0 / 445.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003931/0.1135, allocations: 117.5 kB / 445.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.1135, allocations: 51.41 kB / 445.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.1137, allocations: 149.8 kB / 445.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.1137, allocations: 33.64 kB / 445.9 MB, free: 1.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.139e-05/0.1137, allocations: 135.5 kB / 446 MB, free: 1.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.338e-05/0.1138, allocations: 15.72 kB / 446 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.1138, allocations: 29.7 kB / 446.1 MB, free: 1.098 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.1139, allocations: 326.8 kB / 446.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.93e-05/0.114, allocations: 23.98 kB / 446.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.1142, allocations: 60.27 kB / 446.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.1143, allocations: 92.19 kB / 446.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1144, allocations: 4 kB / 446.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000245/0.1146, allocations: 125.5 kB / 446.7 MB, free: 444 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1146, allocations: 8 kB / 446.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1146, allocations: 7.984 kB / 446.7 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1147, allocations: 7.875 kB / 446.7 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.1148, allocations: 23.98 kB / 446.7 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.1148, allocations: 7.938 kB / 446.7 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.711e-05/0.1149, allocations: 15.83 kB / 446.8 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.1149, allocations: 8.328 kB / 446.8 MB, free: 364 kB / 318.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 6.891e-05/0.115, allocations: 125.8 kB / 446.9 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.115, allocations: 7.906 kB / 446.9 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.1151, allocations: 12.31 kB / 446.9 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1151, allocations: 3.938 kB / 446.9 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1151, allocations: 4 kB / 446.9 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1151, allocations: 4 kB / 446.9 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.1153, allocations: 201.6 kB / 447.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1153, allocations: 0 / 447.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.322e-05/0.1154, allocations: 19.98 kB / 447.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1154, allocations: 3.984 kB / 447.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.1154, allocations: 4 kB / 447.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.199e-05/0.1154, allocations: 7.922 kB / 447.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1155, allocations: 7.875 kB / 447.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.1157, allocations: 179.4 kB / 447.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.296e-05/0.1158, allocations: 89 kB / 447.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.1158, allocations: 4 kB / 447.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.775e-05/0.1159, allocations: 11.94 kB / 447.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.051e-05/0.116, allocations: 3.984 kB / 447.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.116, allocations: 4 kB / 447.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.187e-05/0.1161, allocations: 112.5 kB / 447.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1161, allocations: 0 / 447.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002547/0.1164, allocations: 27.84 kB / 447.6 MB, free: 15.45 MB / 334.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.0005974/0.117, allocations: 0.7201 MB / 448.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000265/0.1172, allocations: 71.89 kB / 448.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.1173, allocations: 0 / 448.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.591e-05/0.1174, allocations: 31.97 kB / 448.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.1177, allocations: 8.25 kB / 448.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.1195, allocations: 1.633 MB / 450 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.1199, allocations: 0.7015 MB / 450.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.491e-05/0.12, allocations: 12.66 kB / 450.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.322e-05/0.1201, allocations: 39.36 kB / 450.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1201, allocations: 0 / 450.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.1388, allocations: 2.062 MB / 452.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.39/7.529, allocations: 0 / 452.9 MB, free: 10.02 MB / 334.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