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.001504/0.001504, allocations: 108.2 kB / 16.41 MB, free: 6.461 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.001919/0.001919, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.673/1.673, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2054/0.2054, allocations: 43.53 MB / 314.1 MB, free: 444 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.002159/0.002159, allocations: 65.62 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1195, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001532/0.1211, allocations: 498.2 kB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006883/0.1218, allocations: 302 kB / 499.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.609e-05/0.1218, allocations: 0 / 499.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.01e-05/0.1218, allocations: 0 / 499.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.1219, allocations: 0 / 499.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007698/0.1226, allocations: 98.31 kB / 499.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.069e-05/0.1227, allocations: 7.984 kB / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.972e-05/0.1227, allocations: 0 / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.328e-05/0.1227, allocations: 0 / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.904e-05/0.1228, allocations: 0 / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-06/0.1228, allocations: 3.984 kB / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.123, allocations: 115.8 kB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.123, allocations: 7.938 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.95e-05/0.123, allocations: 0 / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.1232, allocations: 87.88 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1232, allocations: 0 / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1232, allocations: 0 / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1232, allocations: 0 / 0.4884 GB, free: 11.23 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.0003158/0.1235, allocations: 365.2 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.1236, allocations: 15.83 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.993e-05/0.1236, allocations: 30.75 kB / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.1236, allocations: 4.938 kB / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.227e-05/0.1237, allocations: 168.4 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.1237, allocations: 384 / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.1238, allocations: 384 / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.794e-05/0.1239, allocations: 34.2 kB / 0.489 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.1239, allocations: 3.938 kB / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.1239, allocations: 0 / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1239, allocations: 0 / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.671e-05/0.1239, allocations: 0 / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.124, allocations: 149.7 kB / 0.4892 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.582e-05/0.1241, allocations: 22.58 kB / 0.4892 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.291e-05/0.1241, allocations: 4.859 kB / 0.4892 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.1241, allocations: 0 / 0.4892 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.1242, allocations: 64.27 kB / 0.4893 GB, free: 10.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1242, allocations: 0 / 0.4893 GB, free: 10.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001611/0.1243, allocations: 67.33 kB / 0.4893 GB, free: 10.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.1244, allocations: 85.23 kB / 0.4894 GB, free: 10.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.33e-05/0.1244, allocations: 89.86 kB / 0.4895 GB, free: 9.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.1244, allocations: 25.7 kB / 0.4895 GB, free: 9.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.194e-05/0.1245, allocations: 80.14 kB / 0.4896 GB, free: 9.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.413e-05/0.1245, allocations: 0 / 0.4896 GB, free: 9.809 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.1245, allocations: 13.72 kB / 0.4896 GB, free: 9.789 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.943e-05/0.1246, allocations: 310.8 kB / 0.4899 GB, free: 9.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.327e-06/0.1246, allocations: 0 / 0.4899 GB, free: 9.477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.176e-06/0.1246, allocations: 7.938 kB / 0.4899 GB, free: 9.469 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.143e-05/0.1247, allocations: 72.25 kB / 0.49 GB, free: 9.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1247, allocations: 4 kB / 0.49 GB, free: 9.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.466e-05/0.1248, allocations: 55.41 kB / 0.49 GB, free: 9.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.1248, allocations: 33.7 kB / 0.4901 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1248, allocations: 3.938 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.1249, allocations: 0 / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-06/0.1249, allocations: 3.984 kB / 0.4901 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1249, allocations: 0 / 0.4901 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.761e-05/0.1249, allocations: 4.031 kB / 0.4901 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.1249, allocations: 3.938 kB / 0.4901 GB, free: 9.258 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 7.472e-05/0.125, allocations: 139.5 kB / 0.4902 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.578e-06/0.125, allocations: 4 kB / 0.4902 GB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.125e-05/0.125, allocations: 7.062 kB / 0.4902 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.125, allocations: 0 / 0.4902 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.125, allocations: 4 kB / 0.4902 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.125, allocations: 0 / 0.4902 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.423e-05/0.1251, allocations: 153.7 kB / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1251, allocations: 0 / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.964e-06/0.1251, allocations: 7.938 kB / 0.4904 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1251, allocations: 0 / 0.4904 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.1252, allocations: 7.938 kB / 0.4904 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1252, allocations: 0 / 0.4904 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1252, allocations: 3.984 kB / 0.4904 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.55e-05/0.1253, allocations: 90.83 kB / 0.4905 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.1253, allocations: 77.11 kB / 0.4906 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.1253, allocations: 7.969 kB / 0.4906 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.1253, allocations: 0 / 0.4906 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.1253, allocations: 0 / 0.4906 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.1254, allocations: 4 kB / 0.4906 GB, free: 8.648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.122e-05/0.1254, allocations: 75.28 kB / 0.4906 GB, free: 8.574 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1254, allocations: 0 / 0.4906 GB, free: 8.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.1256, allocations: 35.98 kB / 0.4907 GB, free: 8.539 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.0006977/0.1263, allocations: 0.7888 MB / 0.4914 GB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.769e-05/0.1264, allocations: 59.34 kB / 0.4915 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1264, allocations: 0 / 0.4915 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.024e-05/0.1265, allocations: 55.41 kB / 0.4916 GB, free: 7.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.1266, allocations: 4.125 kB / 0.4916 GB, free: 7.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002824/0.1269, allocations: 138.4 kB / 0.4917 GB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.1271, allocations: 0.6729 MB / 0.4924 GB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.531e-06/0.1271, allocations: 0 / 0.4924 GB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.473e-05/0.1271, allocations: 15.36 kB / 0.4924 GB, free: 6.703 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1271, allocations: 0 / 0.4924 GB, free: 6.703 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01742/0.1446, allocations: 1.813 MB / 0.4941 GB, free: 4.875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.66, allocations: 11.36 kB / 0.4941 GB, free: 4.867 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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