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.001086/0.001086, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001164/0.001164, allocations: 188 kB / 18.71 MB, free: 4.387 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.303/1.303, allocations: 222.9 MB / 242.4 MB, free: 15.19 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.1972/0.1972, allocations: 44.18 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 59.91 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2992, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001399/0.3006, allocations: 487.5 kB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006041/0.3012, allocations: 299.8 kB / 0.5191 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.3013, allocations: 1.438 kB / 0.5191 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.076e-05/0.3013, allocations: 0 / 0.5191 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.14e-06/0.3013, allocations: 0 / 0.5191 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.0007275/0.302, allocations: 105.6 kB / 0.5192 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.457e-05/0.3021, allocations: 0.9688 kB / 0.5192 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.895e-05/0.3021, allocations: 2.547 kB / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.329e-05/0.3021, allocations: 3.984 kB / 0.5193 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.649e-05/0.3021, allocations: 1.344 kB / 0.5193 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.491e-06/0.3022, allocations: 0 / 0.5193 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.3023, allocations: 110.9 kB / 0.5194 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.351e-06/0.3023, allocations: 0 / 0.5194 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.3024, allocations: 1.094 kB / 0.5194 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.3025, allocations: 79.05 kB / 0.5194 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3025, allocations: 4 kB / 0.5194 GB, free: 2.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3026, allocations: 5.156 kB / 0.5194 GB, free: 2.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.3026, allocations: 0 / 0.5194 GB, free: 2.699 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.0002321/0.3028, allocations: 361.3 kB / 0.5198 GB, free: 2.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.3028, allocations: 10.12 kB / 0.5198 GB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.994e-05/0.3029, allocations: 31.59 kB / 0.5198 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.223e-05/0.3029, allocations: 0.9375 kB / 0.5198 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.535e-05/0.3029, allocations: 166.4 kB / 0.52 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.303, allocations: 384 / 0.52 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.802e-06/0.303, allocations: 1.844 kB / 0.52 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.942e-05/0.303, allocations: 37.17 kB / 0.52 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3031, allocations: 5.312 kB / 0.52 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.3031, allocations: 0.7031 kB / 0.52 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.3031, allocations: 0 / 0.52 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.603e-05/0.3031, allocations: 5.375 kB / 0.52 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.804e-05/0.3032, allocations: 148.1 kB / 0.5202 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.022e-05/0.3032, allocations: 21.72 kB / 0.5202 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.217e-05/0.3032, allocations: 11.19 kB / 0.5202 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.3032, allocations: 0 / 0.5202 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.3033, allocations: 66.8 kB / 0.5203 GB, free: 1.711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.3033, allocations: 0 / 0.5203 GB, free: 1.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001385/0.3034, allocations: 65.34 kB / 0.5203 GB, free: 1.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.3035, allocations: 77.91 kB / 0.5204 GB, free: 1.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.536e-05/0.3035, allocations: 95.55 kB / 0.5205 GB, free: 1.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.661e-06/0.3035, allocations: 25.7 kB / 0.5205 GB, free: 1.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.606e-06/0.3035, allocations: 84.27 kB / 0.5206 GB, free: 1.332 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.3035, allocations: 3.938 kB / 0.5206 GB, free: 1.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.3036, allocations: 17.16 kB / 0.5206 GB, free: 1.309 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.757e-05/0.3036, allocations: 312.9 kB / 0.5209 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.939e-06/0.3036, allocations: 0.6562 kB / 0.5209 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.442e-06/0.3036, allocations: 1.906 kB / 0.5209 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.038e-05/0.3037, allocations: 60.25 kB / 0.521 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3037, allocations: 5 kB / 0.521 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.208e-05/0.3037, allocations: 63.11 kB / 0.5211 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3038, allocations: 32.62 kB / 0.5211 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3038, allocations: 3.938 kB / 0.5211 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.3038, allocations: 1.125 kB / 0.5211 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.3038, allocations: 4.922 kB / 0.5211 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.3038, allocations: 3.984 kB / 0.5211 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.356e-05/0.3038, allocations: 1.094 kB / 0.5211 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.3038, allocations: 1.125 kB / 0.5211 GB, free: 0.8125 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.413e-05/0.3039, allocations: 139 kB / 0.5212 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-06/0.3039, allocations: 1.094 kB / 0.5212 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.092e-05/0.3039, allocations: 15.7 kB / 0.5212 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3039, allocations: 1.094 kB / 0.5212 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3039, allocations: 0.7031 kB / 0.5212 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3039, allocations: 1.062 kB / 0.5212 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.396e-05/0.304, allocations: 147.1 kB / 0.5214 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.304, allocations: 0 / 0.5214 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.684e-06/0.304, allocations: 1.656 kB / 0.5214 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.304, allocations: 0 / 0.5214 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.304, allocations: 12.78 kB / 0.5214 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.304, allocations: 1.438 kB / 0.5214 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.304, allocations: 0 / 0.5214 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.111e-05/0.3041, allocations: 88.95 kB / 0.5215 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.228e-05/0.3041, allocations: 82.08 kB / 0.5216 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.3041, allocations: 9.688 kB / 0.5216 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.3041, allocations: 0.9062 kB / 0.5216 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.198e-05/0.3042, allocations: 4.594 kB / 0.5216 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.3042, allocations: 4.906 kB / 0.5216 GB, free: 244 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.016e-05/0.3042, allocations: 77.23 kB / 0.5217 GB, free: 168 kB / 382.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.3042, allocations: 0 / 0.5217 GB, free: 168 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000238/0.3044, allocations: 36.92 kB / 0.5217 GB, free: 156 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.0007195/0.3052, allocations: 0.7948 MB / 0.5225 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.18e-05/0.3053, allocations: 69.61 kB / 0.5225 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3053, allocations: 1.031 kB / 0.5225 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.367e-05/0.3053, allocations: 55.27 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.0001204/0.3054, allocations: 3.016 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.0002738/0.3057, allocations: 122.5 kB / 0.5227 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.3059, allocations: 0.6747 MB / 0.5234 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.951e-06/0.3059, allocations: 1.188 kB / 0.5234 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.306, allocations: 7.438 kB / 0.5234 GB, free: 14.49 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.306, allocations: 1.031 kB / 0.5234 GB, free: 14.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01588/0.3219, allocations: 1.818 MB / 0.5252 GB, free: 14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/8.02, allocations: 10 kB / 0.5252 GB, free: 13.99 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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