Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_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.001186/0.001186, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001278/0.001278, allocations: 179.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2157/0.2157, allocations: 44.2 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3072, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00141/0.3086, allocations: 490.6 kB / 0.5189 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006764/0.3093, allocations: 304.2 kB / 0.5192 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.648e-05/0.3093, allocations: 0 / 0.5192 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.312e-05/0.3093, allocations: 0 / 0.5192 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.792e-06/0.3094, allocations: 1.125 kB / 0.5192 GB, free: 2.82 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007419/0.3101, allocations: 102.8 kB / 0.5193 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.048e-05/0.3102, allocations: 1.219 kB / 0.5193 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.439e-05/0.3102, allocations: 5.812 kB / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.396e-05/0.3102, allocations: 1.828 kB / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.017e-05/0.3102, allocations: 1.219 kB / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-06/0.3103, allocations: 0 / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.3105, allocations: 106.5 kB / 0.5194 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-06/0.3105, allocations: 3.984 kB / 0.5194 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.712e-05/0.3105, allocations: 0.75 kB / 0.5194 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.3107, allocations: 82.88 kB / 0.5195 GB, free: 2.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3107, allocations: 6.5 kB / 0.5195 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3107, allocations: 4 kB / 0.5195 GB, free: 2.703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.3107, allocations: 0 / 0.5195 GB, free: 2.703 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.0002435/0.311, allocations: 361.1 kB / 0.5198 GB, free: 2.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.311, allocations: 13.97 kB / 0.5198 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.015e-05/0.311, allocations: 30.75 kB / 0.5198 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.509e-05/0.3111, allocations: 2.375 kB / 0.5199 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.668e-05/0.3111, allocations: 165.8 kB / 0.52 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.3111, allocations: 384 / 0.52 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-06/0.3111, allocations: 1.844 kB / 0.52 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.134e-05/0.3112, allocations: 33.97 kB / 0.52 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.3112, allocations: 3.938 kB / 0.52 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-06/0.3112, allocations: 1.219 kB / 0.52 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.706e-06/0.3112, allocations: 0 / 0.52 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.642e-05/0.3113, allocations: 1.984 kB / 0.5201 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.757e-05/0.3113, allocations: 148.4 kB / 0.5202 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.879e-05/0.3114, allocations: 21.44 kB / 0.5202 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.206e-05/0.3114, allocations: 14.05 kB / 0.5202 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-06/0.3114, allocations: 1.188 kB / 0.5202 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.3114, allocations: 58.2 kB / 0.5203 GB, free: 1.727 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3115, allocations: 0 / 0.5203 GB, free: 1.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.3116, allocations: 69.64 kB / 0.5203 GB, free: 1.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.3116, allocations: 77.91 kB / 0.5204 GB, free: 1.562 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.723e-05/0.3116, allocations: 91.2 kB / 0.5205 GB, free: 1.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.712e-06/0.3117, allocations: 25.7 kB / 0.5205 GB, free: 1.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.205e-06/0.3117, allocations: 92.14 kB / 0.5206 GB, free: 1.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.3117, allocations: 6.094 kB / 0.5206 GB, free: 1.336 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.406e-05/0.3117, allocations: 11.16 kB / 0.5206 GB, free: 1.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.843e-05/0.3118, allocations: 313 kB / 0.5209 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.3118, allocations: 2.062 kB / 0.5209 GB, free: 1.008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.558e-06/0.3118, allocations: 1.375 kB / 0.5209 GB, free: 1.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.931e-05/0.3118, allocations: 63.92 kB / 0.521 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.3118, allocations: 4.062 kB / 0.521 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.155e-05/0.3119, allocations: 60.88 kB / 0.5211 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.3119, allocations: 31.27 kB / 0.5211 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3119, allocations: 3.938 kB / 0.5211 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.3119, allocations: 4.062 kB / 0.5211 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.312, allocations: 0 / 0.5211 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.312, allocations: 3.938 kB / 0.5211 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.609e-05/0.312, allocations: 1.375 kB / 0.5211 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.312, allocations: 0 / 0.5211 GB, free: 0.8281 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 4.377e-05/0.312, allocations: 142.2 kB / 0.5212 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.3121, allocations: 9.469 kB / 0.5213 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.027e-05/0.3121, allocations: 11.72 kB / 0.5213 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-06/0.3121, allocations: 0 / 0.5213 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3121, allocations: 1.344 kB / 0.5213 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.3121, allocations: 4.594 kB / 0.5213 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.397e-05/0.3121, allocations: 145.2 kB / 0.5214 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3121, allocations: 0 / 0.5214 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.3122, allocations: 1.438 kB / 0.5214 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3122, allocations: 0.6094 kB / 0.5214 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.3122, allocations: 9.469 kB / 0.5214 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.3122, allocations: 0 / 0.5214 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3122, allocations: 0.6094 kB / 0.5214 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.666e-05/0.3122, allocations: 92.05 kB / 0.5215 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.397e-05/0.3123, allocations: 79.28 kB / 0.5216 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.3123, allocations: 6.078 kB / 0.5216 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.3123, allocations: 3.938 kB / 0.5216 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.3123, allocations: 6.156 kB / 0.5216 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.3123, allocations: 0 / 0.5216 GB, free: 256 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.037e-05/0.3123, allocations: 75.28 kB / 0.5217 GB, free: 180 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3123, allocations: 5.125 kB / 0.5217 GB, free: 176 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.3126, allocations: 34.02 kB / 0.5217 GB, free: 168 kB / 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.0007588/0.3134, allocations: 0.7975 MB / 0.5225 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.3135, allocations: 61.23 kB / 0.5225 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3135, allocations: 5.469 kB / 0.5225 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.557e-05/0.3136, allocations: 54.98 kB / 0.5226 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.3137, allocations: 2.656 kB / 0.5226 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002958/0.314, allocations: 121.3 kB / 0.5227 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.3143, allocations: 0.6752 MB / 0.5234 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.173e-06/0.3143, allocations: 1.062 kB / 0.5234 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.569e-05/0.3143, allocations: 7.438 kB / 0.5234 GB, free: 14.5 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3143, allocations: 1.156 kB / 0.5234 GB, free: 14.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.3326, allocations: 1.812 MB / 0.5252 GB, free: 14.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/7.96, allocations: 16.09 kB / 0.5252 GB, free: 14 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches