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.0009049/0.0009049, allocations: 102.6 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 179.1 kB / 16.92 MB, free: 6.922 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.366/1.366, allocations: 205.4 MB / 223.1 MB, free: 5.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3236/0.3236, allocations: 43.58 MB / 315 MB, free: 8.684 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.0004656/0.0004657, allocations: 12 kB / 384.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.09904, allocations: 58.86 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006337/0.09971, allocations: 220.4 kB / 443.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006501/0.1004, allocations: 298.6 kB / 444 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.155e-06/0.1004, allocations: 4 kB / 444 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.021e-05/0.1004, allocations: 0 / 444 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-06/0.1004, allocations: 0 / 444 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000728/0.1012, allocations: 75.86 kB / 444.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.181e-05/0.1012, allocations: 0 / 444.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.429e-05/0.1012, allocations: 7.984 kB / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.651e-05/0.1013, allocations: 3.984 kB / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.058e-05/0.1013, allocations: 4 kB / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-06/0.1013, allocations: 0 / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.1015, allocations: 103.8 kB / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.1015, allocations: 3.938 kB / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.127e-05/0.1015, allocations: 25.7 kB / 444.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001791/0.1017, allocations: 79.88 kB / 444.3 MB, free: 11.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1017, allocations: 0 / 444.3 MB, free: 11.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1017, allocations: 0 / 444.3 MB, free: 11.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.858e-06/0.1017, allocations: 0 / 444.3 MB, free: 11.78 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.0003142/0.1021, allocations: 361.3 kB / 444.7 MB, free: 11.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1021, allocations: 15.97 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.1022, allocations: 30.75 kB / 444.7 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.586e-05/0.1022, allocations: 8.781 kB / 444.7 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.376e-05/0.1023, allocations: 164.4 kB / 444.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.1023, allocations: 4.375 kB / 444.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-06/0.1023, allocations: 384 / 444.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.804e-05/0.1024, allocations: 30.2 kB / 444.9 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.1024, allocations: 7.938 kB / 445 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-06/0.1024, allocations: 0 / 445 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.1024, allocations: 4 kB / 445 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.665e-05/0.1025, allocations: 0 / 445 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00013/0.1026, allocations: 149.7 kB / 445.1 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.638e-05/0.1026, allocations: 18.61 kB / 445.1 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.392e-05/0.1027, allocations: 4.859 kB / 445.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.723e-06/0.1027, allocations: 0 / 445.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.1027, allocations: 64.27 kB / 445.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1027, allocations: 4 kB / 445.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001556/0.1029, allocations: 75.31 kB / 445.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.103, allocations: 77.11 kB / 445.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.931e-05/0.103, allocations: 89.86 kB / 445.4 MB, free: 10.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.103, allocations: 25.7 kB / 445.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.1031, allocations: 80.14 kB / 445.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.1031, allocations: 0 / 445.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.075e-05/0.1031, allocations: 9.719 kB / 445.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1032, allocations: 323 kB / 445.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.1032, allocations: 0 / 445.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.098e-06/0.1032, allocations: 0 / 445.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.586e-05/0.1033, allocations: 68.19 kB / 445.9 MB, free: 9.934 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1033, allocations: 0 / 445.9 MB, free: 9.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.691e-05/0.1034, allocations: 59.41 kB / 446 MB, free: 9.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.1034, allocations: 29.7 kB / 446 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1034, allocations: 3.938 kB / 446 MB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1034, allocations: 96 / 446 MB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1035, allocations: 4 kB / 446 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.1035, allocations: 4 kB / 446 MB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.78e-05/0.1035, allocations: 4.281 kB / 446 MB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.1035, allocations: 3.938 kB / 446 MB, free: 9.809 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.432e-05/0.1036, allocations: 135.5 kB / 446.2 MB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.792e-06/0.1036, allocations: 4 kB / 446.2 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.15e-05/0.1036, allocations: 7.062 kB / 446.2 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1036, allocations: 0 / 446.2 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1036, allocations: 0 / 446.2 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.1036, allocations: 4 kB / 446.2 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.504e-05/0.1037, allocations: 153.6 kB / 446.3 MB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1038, allocations: 3.938 kB / 446.3 MB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1038, allocations: 3.938 kB / 446.3 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1038, allocations: 0 / 446.3 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.1038, allocations: 3.938 kB / 446.3 MB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1038, allocations: 7.984 kB / 446.3 MB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1038, allocations: 0 / 446.3 MB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.15e-05/0.1039, allocations: 94.83 kB / 446.4 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.229e-05/0.1039, allocations: 77.11 kB / 446.5 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.104, allocations: 3.938 kB / 446.5 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.705e-05/0.104, allocations: 4 kB / 446.5 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.204e-05/0.104, allocations: 3.984 kB / 446.5 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.104, allocations: 4 kB / 446.5 MB, free: 9.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.592e-05/0.104, allocations: 75.28 kB / 446.6 MB, free: 9.125 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.104, allocations: 0 / 446.6 MB, free: 9.125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.1043, allocations: 35.98 kB / 446.6 MB, free: 9.09 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.0008402/0.1051, allocations: 0.7957 MB / 447.4 MB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.1052, allocations: 67.33 kB / 447.5 MB, free: 8.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1053, allocations: 0 / 447.5 MB, free: 8.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.151e-05/0.1053, allocations: 55.41 kB / 447.6 MB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001183/0.1054, allocations: 4 kB / 447.6 MB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002863/0.1057, allocations: 120.3 kB / 447.7 MB, free: 7.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.1059, allocations: 0.6731 MB / 448.3 MB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.03e-06/0.106, allocations: 0 / 448.3 MB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.092e-05/0.106, allocations: 7.438 kB / 448.4 MB, free: 7.273 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.106, allocations: 0 / 448.4 MB, free: 7.273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01121/0.1172, allocations: 1.577 MB / 449.9 MB, free: 5.711 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/0.1174, allocations: 231.1 kB / 450.2 MB, free: 5.453 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.683/1.801, allocations: 3.938 kB / 450.2 MB, free: 5.449 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","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches