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.001132/0.001132, allocations: 100.5 kB / 16.4 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.001355/0.001355, allocations: 192.1 kB / 17.34 MB, free: 5.77 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.514/1.514, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2096/0.2096, allocations: 43.52 MB / 314.1 MB, free: 460 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.001461/0.001461, allocations: 63.89 kB / 441.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09502/0.09649, allocations: 57.8 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001721/0.09826, allocations: 487.1 kB / 499.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007305/0.09901, allocations: 293.9 kB / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.796e-05/0.09905, allocations: 4 kB / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.552e-05/0.09909, allocations: 0 / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.62e-06/0.0991, allocations: 0 / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008942/0.1, allocations: 110.1 kB / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.556e-05/0.1001, allocations: 0 / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.1001, allocations: 4 kB / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.631e-05/0.1001, allocations: 3.984 kB / 500 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.204e-05/0.1002, allocations: 0 / 500 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.72e-06/0.1002, allocations: 0 / 500 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.1004, allocations: 111.9 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.919e-06/0.1004, allocations: 3.938 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.965e-05/0.1004, allocations: 4 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.1006, allocations: 83.88 kB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.842e-06/0.1007, allocations: 7.984 kB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1007, allocations: 0 / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1007, allocations: 0 / 0.4884 GB, free: 11.25 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.000319/0.101, allocations: 364.6 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.101, allocations: 15.83 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.77e-05/0.1011, allocations: 30.75 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.395e-05/0.1011, allocations: 0.9375 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.1012, allocations: 168.3 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.1013, allocations: 4.375 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-06/0.1013, allocations: 384 / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.698e-05/0.1014, allocations: 34.25 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1014, allocations: 7.938 kB / 0.489 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.1014, allocations: 0 / 0.489 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1014, allocations: 0 / 0.489 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.728e-05/0.1014, allocations: 0 / 0.489 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001284/0.1016, allocations: 141.7 kB / 0.4892 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.115e-05/0.1016, allocations: 26.55 kB / 0.4892 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.481e-05/0.1016, allocations: 4.859 kB / 0.4892 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-06/0.1016, allocations: 0 / 0.4892 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/0.1017, allocations: 68.31 kB / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.1017, allocations: 0 / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001827/0.1019, allocations: 71.31 kB / 0.4893 GB, free: 10.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.1019, allocations: 77.23 kB / 0.4894 GB, free: 10.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.509e-05/0.102, allocations: 97.8 kB / 0.4895 GB, free: 9.938 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.102, allocations: 25.7 kB / 0.4895 GB, free: 9.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.251e-05/0.102, allocations: 80.14 kB / 0.4896 GB, free: 9.824 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.1021, allocations: 4 kB / 0.4896 GB, free: 9.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.1021, allocations: 21.64 kB / 0.4896 GB, free: 9.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1022, allocations: 310.8 kB / 0.4899 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.868e-06/0.1022, allocations: 0 / 0.4899 GB, free: 9.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-06/0.1022, allocations: 0 / 0.4899 GB, free: 9.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.539e-05/0.1023, allocations: 64.33 kB / 0.49 GB, free: 9.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1023, allocations: 0 / 0.49 GB, free: 9.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.348e-05/0.1024, allocations: 67.39 kB / 0.49 GB, free: 9.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.1024, allocations: 33.7 kB / 0.4901 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.1024, allocations: 3.938 kB / 0.4901 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1024, allocations: 0 / 0.4901 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1025, allocations: 3.938 kB / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.1025, allocations: 0 / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.762e-05/0.1025, allocations: 4 kB / 0.4901 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.1025, allocations: 7.969 kB / 0.4901 GB, free: 9.266 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 8.441e-05/0.1026, allocations: 139.5 kB / 0.4902 GB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-06/0.1026, allocations: 0 / 0.4902 GB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.566e-05/0.1026, allocations: 11.05 kB / 0.4902 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1026, allocations: 0 / 0.4902 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1026, allocations: 0 / 0.4902 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1026, allocations: 4 kB / 0.4902 GB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.381e-05/0.1027, allocations: 145.7 kB / 0.4904 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1027, allocations: 0 / 0.4904 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.1028, allocations: 4 kB / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1028, allocations: 0 / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.1028, allocations: 7.922 kB / 0.4904 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1028, allocations: 4 kB / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1028, allocations: 0 / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.124e-05/0.1029, allocations: 82.84 kB / 0.4905 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.1029, allocations: 89.03 kB / 0.4906 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.1029, allocations: 3.938 kB / 0.4906 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.021e-05/0.103, allocations: 4.031 kB / 0.4906 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.818e-06/0.103, allocations: 0 / 0.4906 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.103, allocations: 0 / 0.4906 GB, free: 8.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.482e-05/0.103, allocations: 75.28 kB / 0.4906 GB, free: 8.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.103, allocations: 4 kB / 0.4906 GB, free: 8.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.1033, allocations: 32 kB / 0.4907 GB, free: 8.559 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.0007689/0.1041, allocations: 0.7806 MB / 0.4914 GB, free: 7.762 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.164e-05/0.1042, allocations: 71.28 kB / 0.4915 GB, free: 7.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1042, allocations: 0 / 0.4915 GB, free: 7.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.118e-05/0.1042, allocations: 59.39 kB / 0.4916 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.1043, allocations: 3.719 kB / 0.4916 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002855/0.1046, allocations: 134.5 kB / 0.4917 GB, free: 7.438 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.1048, allocations: 0.6767 MB / 0.4924 GB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.771e-06/0.1048, allocations: 0 / 0.4924 GB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.338e-05/0.1049, allocations: 7.438 kB / 0.4924 GB, free: 6.727 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.1049, allocations: 0 / 0.4924 GB, free: 6.727 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.1225, allocations: 1.809 MB / 0.4941 GB, free: 4.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.434/7.556, allocations: 15.19 kB / 0.4941 GB, free: 4.887 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