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.00149/0.00149, allocations: 101.9 kB / 16.27 MB, free: 5.902 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.001689/0.001689, allocations: 187.3 kB / 17.19 MB, free: 5.547 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.546/1.546, 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.22/0.22, allocations: 43.52 MB / 313.9 MB, free: 0.5352 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.001475/0.001475, allocations: 69.98 kB / 382.8 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.117, allocations: 57.78 MB / 440.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001818/0.1189, allocations: 493.4 kB / 441.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000647/0.1195, allocations: 299.6 kB / 441.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.212e-05/0.1196, allocations: 4 kB / 441.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.4e-05/0.1196, allocations: 0 / 441.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.469e-06/0.1196, allocations: 0 / 441.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007504/0.1204, allocations: 95.72 kB / 441.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.058e-05/0.1204, allocations: 0 / 441.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.375e-05/0.1205, allocations: 0 / 441.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.478e-05/0.1205, allocations: 11.98 kB / 441.5 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.994e-05/0.1205, allocations: 0 / 441.5 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.453e-06/0.1205, allocations: 0 / 441.5 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.1207, allocations: 99.91 kB / 441.6 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.464e-06/0.1207, allocations: 0 / 441.6 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.794e-05/0.1207, allocations: 0 / 441.6 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.1208, allocations: 91.81 kB / 441.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1208, allocations: 0 / 441.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1209, allocations: 0 / 441.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1209, allocations: 0 / 441.7 MB, free: 5.77 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.00026/0.1211, allocations: 373.2 kB / 442 MB, free: 5.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1212, allocations: 15.89 kB / 442.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.562e-05/0.1212, allocations: 34.69 kB / 442.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.1212, allocations: 0.9375 kB / 442.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.453e-05/0.1213, allocations: 160.7 kB / 442.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.1213, allocations: 384 / 442.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-06/0.1213, allocations: 384 / 442.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.674e-05/0.1214, allocations: 38.2 kB / 442.3 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1214, allocations: 3.938 kB / 442.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.1214, allocations: 0 / 442.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1215, allocations: 4 kB / 442.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.404e-05/0.1215, allocations: 15.91 kB / 442.3 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001016/0.1216, allocations: 145.7 kB / 442.5 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.645e-05/0.1216, allocations: 18.52 kB / 442.5 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.414e-05/0.1217, allocations: 8.953 kB / 442.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.959e-06/0.1217, allocations: 0 / 442.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.1217, allocations: 56.27 kB / 442.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.1217, allocations: 4 kB / 442.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001778/0.1219, allocations: 75.31 kB / 442.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.122, allocations: 81.05 kB / 442.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.317e-05/0.122, allocations: 89.86 kB / 442.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.122, allocations: 29.7 kB / 442.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.567e-05/0.122, allocations: 80.14 kB / 442.9 MB, free: 4.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.1221, allocations: 3.938 kB / 442.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/0.1221, allocations: 9.719 kB / 442.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.966e-05/0.1222, allocations: 323 kB / 443.2 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.016e-05/0.1222, allocations: 4 kB / 443.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.95e-06/0.1222, allocations: 0 / 443.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.665e-05/0.1222, allocations: 60.27 kB / 443.3 MB, free: 3.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.436e-05/0.1222, allocations: 0 / 443.3 MB, free: 3.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.049e-05/0.1223, allocations: 63.34 kB / 443.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.1224, allocations: 33.69 kB / 443.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1224, allocations: 4.031 kB / 443.4 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1224, allocations: 4 kB / 443.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1224, allocations: 0 / 443.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1224, allocations: 0 / 443.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.816e-05/0.1224, allocations: 4 kB / 443.4 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.1224, allocations: 0 / 443.4 MB, free: 3.777 MB / 318.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 5.511e-05/0.1225, allocations: 139.5 kB / 443.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.105e-06/0.1225, allocations: 4 kB / 443.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.072e-05/0.1225, allocations: 7.062 kB / 443.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1225, allocations: 4 kB / 443.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.1225, allocations: 3.984 kB / 443.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1225, allocations: 3.938 kB / 443.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.383e-05/0.1226, allocations: 141.7 kB / 443.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1226, allocations: 4 kB / 443.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1226, allocations: 0 / 443.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.1226, allocations: 0 / 443.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1226, allocations: 3.938 kB / 443.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.1227, allocations: 0 / 443.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1227, allocations: 0 / 443.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.107e-05/0.1227, allocations: 98.77 kB / 443.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.963e-05/0.1228, allocations: 77.11 kB / 443.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1228, allocations: 7.875 kB / 443.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.1228, allocations: 11.98 kB / 443.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.1228, allocations: 0 / 443.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.1228, allocations: 0 / 443.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.745e-05/0.1228, allocations: 75.28 kB / 444 MB, free: 3.098 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1228, allocations: 0 / 444 MB, free: 3.098 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.1231, allocations: 36.03 kB / 444 MB, free: 3.062 MB / 318.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.0005993/0.1237, allocations: 0.7878 MB / 444.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.561e-05/0.1238, allocations: 63.34 kB / 444.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.1238, allocations: 0 / 444.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.821e-05/0.1238, allocations: 55.41 kB / 444.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.1239, allocations: 4 kB / 444.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000263/0.1242, allocations: 126.6 kB / 445 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.1243, allocations: 0.6729 MB / 445.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.382e-06/0.1244, allocations: 0 / 445.7 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.108e-05/0.1244, allocations: 7.438 kB / 445.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1244, allocations: 8.125 kB / 445.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.1441, allocations: 1.771 MB / 447.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.341/7.485, allocations: 8.891 kB / 447.5 MB, free: 15.48 MB / 334.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