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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 110 kB / 18.45 MB, free: 4.602 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.00117/0.00117, allocations: 182.3 kB / 19.38 MB, free: 3.684 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.266/1.266, allocations: 222.9 MB / 243.1 MB, free: 15.04 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.1961/0.1961, allocations: 44.18 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 55.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2891, allocations: 60.82 MB / 0.5195 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00163/0.2907, allocations: 492.6 kB / 0.52 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000645/0.2914, allocations: 299.1 kB / 0.5203 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.008e-05/0.2914, allocations: 0 / 0.5203 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.734e-05/0.2915, allocations: 3.938 kB / 0.5203 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-06/0.2915, allocations: 0 / 0.5203 GB, free: 3.117 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.0009396/0.2924, allocations: 92.75 kB / 0.5204 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.552e-05/0.2925, allocations: 6.672 kB / 0.5204 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.649e-05/0.2925, allocations: 1.875 kB / 0.5204 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.2926, allocations: 4 kB / 0.5204 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.067e-05/0.2926, allocations: 5.062 kB / 0.5204 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.2926, allocations: 0 / 0.5204 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002354/0.2928, allocations: 110.4 kB / 0.5205 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-06/0.2928, allocations: 1.562 kB / 0.5205 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.999e-05/0.2929, allocations: 0 / 0.5205 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002/0.2931, allocations: 87.05 kB / 0.5206 GB, free: 3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2931, allocations: 0.6562 kB / 0.5206 GB, free: 3 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2931, allocations: 0.9375 kB / 0.5206 GB, free: 3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.2931, allocations: 3.938 kB / 0.5206 GB, free: 2.996 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.0002794/0.2934, allocations: 365.3 kB / 0.5209 GB, free: 2.598 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2934, allocations: 9.844 kB / 0.521 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.2935, allocations: 0.9375 kB / 0.521 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.061e-05/0.2935, allocations: 161.2 kB / 0.5211 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-06/0.2935, allocations: 1.25 kB / 0.5211 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.2935, allocations: 6.047 kB / 0.5211 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.412e-05/0.2936, allocations: 33.64 kB / 0.5211 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.2936, allocations: 1.188 kB / 0.5211 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.2937, allocations: 3.938 kB / 0.5212 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2937, allocations: 4 kB / 0.5212 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.861e-05/0.2937, allocations: 2.75 kB / 0.5212 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.616e-05/0.2938, allocations: 144.1 kB / 0.5213 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.874e-05/0.2938, allocations: 21.28 kB / 0.5213 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.215e-05/0.2938, allocations: 6.438 kB / 0.5213 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.2938, allocations: 1.188 kB / 0.5213 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.2939, allocations: 62.53 kB / 0.5214 GB, free: 2.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.2939, allocations: 4 kB / 0.5214 GB, free: 2.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001401/0.294, allocations: 64.42 kB / 0.5214 GB, free: 1.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.642e-05/0.2941, allocations: 83.19 kB / 0.5215 GB, free: 1.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.891e-05/0.2941, allocations: 93.8 kB / 0.5216 GB, free: 1.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-06/0.2941, allocations: 25.7 kB / 0.5216 GB, free: 1.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.678e-06/0.2941, allocations: 81.52 kB / 0.5217 GB, free: 1.676 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.2941, allocations: 0 / 0.5217 GB, free: 1.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.634e-05/0.2942, allocations: 13.78 kB / 0.5217 GB, free: 1.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.776e-05/0.2942, allocations: 318.9 kB / 0.522 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.2942, allocations: 1.766 kB / 0.522 GB, free: 1.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.44e-06/0.2942, allocations: 1 kB / 0.522 GB, free: 1.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.238e-05/0.2943, allocations: 68.27 kB / 0.5221 GB, free: 1.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2943, allocations: 1.25 kB / 0.5221 GB, free: 1.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.218e-05/0.2943, allocations: 60.36 kB / 0.5222 GB, free: 1.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.2944, allocations: 32.2 kB / 0.5222 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.2944, allocations: 96 / 0.5222 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.2944, allocations: 8.781 kB / 0.5222 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.2944, allocations: 1.344 kB / 0.5222 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.2944, allocations: 3.984 kB / 0.5222 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.2944, allocations: 1.156 kB / 0.5222 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.2944, allocations: 0.5156 kB / 0.5222 GB, free: 1.156 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.656e-05/0.2945, allocations: 134.5 kB / 0.5223 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.437e-06/0.2945, allocations: 5.578 kB / 0.5223 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.014e-05/0.2945, allocations: 12.69 kB / 0.5224 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2945, allocations: 4 kB / 0.5224 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2945, allocations: 0 / 0.5224 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.2945, allocations: 1.703 kB / 0.5224 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.058e-05/0.2946, allocations: 145.2 kB / 0.5225 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2946, allocations: 3.938 kB / 0.5225 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.2946, allocations: 1.219 kB / 0.5225 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2946, allocations: 4 kB / 0.5225 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.2946, allocations: 5.953 kB / 0.5225 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.2946, allocations: 0 / 0.5225 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2946, allocations: 0 / 0.5225 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.033e-05/0.2947, allocations: 93.98 kB / 0.5226 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.532e-05/0.2947, allocations: 77.77 kB / 0.5227 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.2947, allocations: 5.453 kB / 0.5227 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.2948, allocations: 1.25 kB / 0.5227 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.501e-05/0.2948, allocations: 0.7969 kB / 0.5227 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.2948, allocations: 1.156 kB / 0.5227 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.004e-05/0.2948, allocations: 75.28 kB / 0.5228 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2948, allocations: 1.156 kB / 0.5228 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002809/0.2951, allocations: 37.97 kB / 0.5228 GB, free: 0.5078 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.0004829/0.2956, allocations: 286.1 kB / 0.5231 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.328e-05/0.2957, allocations: 65.53 kB / 0.5231 GB, free: 292 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2957, allocations: 1.281 kB / 0.5231 GB, free: 292 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.691e-05/0.2957, allocations: 55.16 kB / 0.5232 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.2958, allocations: 2.469 kB / 0.5232 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001525/0.296, allocations: 102.5 kB / 0.5233 GB, free: 100 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.2962, allocations: 0.6755 MB / 0.5239 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.038e-05/0.2963, allocations: 9 kB / 0.524 GB, free: 15.39 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2963, allocations: 4 kB / 0.524 GB, free: 15.39 MB / 398.1 MB Notification: Performance of Templates: time 0.003055/0.2993, allocations: 1.16 MB / 0.5251 GB, free: 15.26 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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