Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.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.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams",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.001256/0.001256, allocations: 109.9 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.001247/0.001247, allocations: 187.2 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.457/1.457, 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.2051/0.2051, 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.00149/0.001491, allocations: 63.91 kB / 441.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1062, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002061/0.1083, allocations: 490.6 kB / 499.6 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007429/0.1091, allocations: 294 kB / 499.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.1091, allocations: 4 kB / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.689e-05/0.1092, allocations: 0 / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.56e-06/0.1092, allocations: 0 / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008948/0.1101, allocations: 102.2 kB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.243e-05/0.1101, allocations: 4 kB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.1102, allocations: 3.984 kB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.1102, allocations: 0 / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.774e-05/0.1102, allocations: 0 / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-06/0.1102, allocations: 0 / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.1105, allocations: 119.8 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.1105, allocations: 7.938 kB / 0.4884 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.373e-05/0.1106, allocations: 0 / 0.4884 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.1108, allocations: 87.81 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1108, allocations: 0 / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1108, allocations: 0 / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1108, allocations: 0 / 0.4884 GB, free: 11.27 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000438/0.1113, allocations: 361 kB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.1114, allocations: 11.89 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.381e-05/0.1114, allocations: 30.75 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.282e-05/0.1114, allocations: 8.891 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.1116, allocations: 168.4 kB / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.1116, allocations: 4.375 kB / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.1116, allocations: 384 / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.1117, allocations: 34.25 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1118, allocations: 7.875 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.1118, allocations: 0 / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.1118, allocations: 0 / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.18e-05/0.1118, allocations: 0 / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.112, allocations: 145.7 kB / 0.4892 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.772e-05/0.112, allocations: 18.58 kB / 0.4892 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.985e-05/0.1121, allocations: 12.84 kB / 0.4892 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.1121, allocations: 4.094 kB / 0.4892 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.326e-05/0.1121, allocations: 56.27 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.163e-06/0.1121, allocations: 0 / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002201/0.1124, allocations: 67.28 kB / 0.4893 GB, free: 10.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/0.1125, allocations: 81.23 kB / 0.4894 GB, free: 10.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.296e-05/0.1125, allocations: 93.84 kB / 0.4895 GB, free: 9.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.1125, allocations: 25.7 kB / 0.4895 GB, free: 9.926 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.332e-05/0.1126, allocations: 84.14 kB / 0.4896 GB, free: 9.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.1126, allocations: 0 / 0.4896 GB, free: 9.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.1126, allocations: 17.66 kB / 0.4896 GB, free: 9.816 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1127, allocations: 310.8 kB / 0.4899 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.1127, allocations: 0 / 0.4899 GB, free: 9.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-06/0.1128, allocations: 4 kB / 0.4899 GB, free: 9.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.497e-05/0.1128, allocations: 68.27 kB / 0.49 GB, free: 9.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1128, allocations: 0 / 0.49 GB, free: 9.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.619e-05/0.1129, allocations: 67.39 kB / 0.49 GB, free: 9.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.113, allocations: 33.7 kB / 0.4901 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.113, allocations: 3.938 kB / 0.4901 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.113, allocations: 0 / 0.4901 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.113, allocations: 0 / 0.4901 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.113, allocations: 3.984 kB / 0.4901 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.113, allocations: 7.906 kB / 0.4901 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.1131, allocations: 8 kB / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.347e-05/0.1132, allocations: 139.5 kB / 0.4902 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.1132, allocations: 3.984 kB / 0.4902 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.571e-05/0.1132, allocations: 7.062 kB / 0.4902 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-06/0.1132, allocations: 4 kB / 0.4902 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1132, allocations: 0 / 0.4902 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1132, allocations: 0 / 0.4902 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.1133, allocations: 149.7 kB / 0.4904 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1133, allocations: 0 / 0.4904 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.193e-06/0.1133, allocations: 4 kB / 0.4904 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1133, allocations: 0 / 0.4904 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.1134, allocations: 7.938 kB / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1134, allocations: 3.938 kB / 0.4904 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1134, allocations: 0 / 0.4904 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.894e-05/0.1135, allocations: 90.83 kB / 0.4905 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.267e-05/0.1135, allocations: 77.11 kB / 0.4906 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.1135, allocations: 7.969 kB / 0.4906 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.127e-05/0.1136, allocations: 0 / 0.4906 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.1136, allocations: 0 / 0.4906 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.1136, allocations: 4 kB / 0.4906 GB, free: 8.676 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.703e-05/0.1136, allocations: 75.28 kB / 0.4906 GB, free: 8.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1136, allocations: 0 / 0.4906 GB, free: 8.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002574/0.1139, allocations: 35.92 kB / 0.4907 GB, free: 8.566 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008573/0.1148, allocations: 0.787 MB / 0.4915 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.1149, allocations: 63.39 kB / 0.4915 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1149, allocations: 0 / 0.4915 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.152e-05/0.1149, allocations: 55.41 kB / 0.4916 GB, free: 7.625 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.1151, allocations: 8.062 kB / 0.4916 GB, free: 7.617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003015/0.1154, allocations: 126.4 kB / 0.4917 GB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.1156, allocations: 0.6844 MB / 0.4924 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.794e-06/0.1157, allocations: 0 / 0.4924 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.658e-05/0.1157, allocations: 7.438 kB / 0.4924 GB, free: 6.734 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1157, allocations: 0 / 0.4924 GB, free: 6.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.1367, allocations: 1.809 MB / 0.4941 GB, free: 4.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/7.767, allocations: 7.922 kB / 0.4941 GB, free: 4.902 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches