Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.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.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 109.8 kB / 17.78 MB, free: 5.309 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.001165/0.001165, allocations: 183.1 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.379/1.379, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2249/0.2249, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4573, allocations: 60.82 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001645/0.459, allocations: 0.5101 MB / 0.5194 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002705/0.4617, allocations: 1.992 MB / 0.5213 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.958e-05/0.4617, allocations: 1.375 kB / 0.5213 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.934e-05/0.4618, allocations: 0 / 0.5213 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.72e-06/0.4618, allocations: 0 / 0.5213 GB, free: 1.906 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.4633, allocations: 497.4 kB / 0.5218 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.086e-05/0.4633, allocations: 7.359 kB / 0.5218 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.295e-05/0.4634, allocations: 0.6562 kB / 0.5218 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.585e-05/0.4634, allocations: 1.469 kB / 0.5218 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.779e-05/0.4634, allocations: 1.75 kB / 0.5218 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.124e-06/0.4634, allocations: 4 kB / 0.5218 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.4645, allocations: 0.6263 MB / 0.5224 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.993e-06/0.4645, allocations: 3.938 kB / 0.5224 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.85e-05/0.4645, allocations: 5 kB / 0.5224 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000586/0.4651, allocations: 373.6 kB / 0.5228 GB, free: 1.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4651, allocations: 0.75 kB / 0.5228 GB, free: 1.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4651, allocations: 0 / 0.5228 GB, free: 1.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.4651, allocations: 1.125 kB / 0.5228 GB, free: 1.418 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.000356/0.4655, allocations: 401.9 kB / 0.5232 GB, free: 1.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.4655, allocations: 9.281 kB / 0.5232 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.496e-05/0.4656, allocations: 6.062 kB / 0.5232 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.033e-05/0.4656, allocations: 165.8 kB / 0.5234 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.4657, allocations: 384 / 0.5234 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-06/0.4657, allocations: 5.719 kB / 0.5234 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.606e-05/0.4658, allocations: 37.67 kB / 0.5234 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.4658, allocations: 0 / 0.5234 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.4658, allocations: 1.188 kB / 0.5234 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.4658, allocations: 0.5156 kB / 0.5234 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.871e-05/0.4658, allocations: 5.156 kB / 0.5234 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.778e-05/0.4659, allocations: 144.9 kB / 0.5235 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.201e-05/0.466, allocations: 16.98 kB / 0.5236 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.327e-05/0.466, allocations: 14.52 kB / 0.5236 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.466, allocations: 0 / 0.5236 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.466, allocations: 63.75 kB / 0.5236 GB, free: 464 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.466, allocations: 0 / 0.5236 GB, free: 464 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001535/0.4662, allocations: 65.22 kB / 0.5237 GB, free: 396 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.4662, allocations: 78.45 kB / 0.5238 GB, free: 300 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.065e-05/0.4663, allocations: 90.66 kB / 0.5239 GB, free: 200 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.252e-06/0.4663, allocations: 29.83 kB / 0.5239 GB, free: 164 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.176e-05/0.4663, allocations: 85.8 kB / 0.524 GB, free: 76 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.4663, allocations: 3.797 kB / 0.524 GB, free: 76 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.108e-05/0.4663, allocations: 12.19 kB / 0.524 GB, free: 60 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4665, allocations: 313.3 kB / 0.5243 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.4665, allocations: 0.75 kB / 0.5243 GB, free: 15.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.56e-06/0.4665, allocations: 2.031 kB / 0.5243 GB, free: 15.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.789e-05/0.4665, allocations: 63.94 kB / 0.5243 GB, free: 15.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.4665, allocations: 0 / 0.5243 GB, free: 15.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.227e-05/0.4666, allocations: 67.89 kB / 0.5244 GB, free: 15.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.4667, allocations: 36.81 kB / 0.5244 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.4667, allocations: 1.5 kB / 0.5244 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.4667, allocations: 0 / 0.5244 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.4667, allocations: 0 / 0.5244 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.4667, allocations: 0.8438 kB / 0.5244 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.56e-05/0.4667, allocations: 1.469 kB / 0.5245 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.4667, allocations: 0 / 0.5245 GB, free: 15.57 MB / 398.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 8.01e-05/0.4668, allocations: 143.6 kB / 0.5246 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.4668, allocations: 9.344 kB / 0.5246 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.879e-05/0.4669, allocations: 11.73 kB / 0.5246 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4669, allocations: 0.6094 kB / 0.5246 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4669, allocations: 1.469 kB / 0.5246 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-06/0.4669, allocations: 0 / 0.5246 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.646e-05/0.467, allocations: 149.2 kB / 0.5248 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.467, allocations: 0 / 0.5248 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-06/0.467, allocations: 2.062 kB / 0.5248 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.467, allocations: 3.938 kB / 0.5248 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.467, allocations: 4.703 kB / 0.5248 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.467, allocations: 5.406 kB / 0.5248 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.467, allocations: 0 / 0.5248 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.803e-05/0.4671, allocations: 93.28 kB / 0.5249 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.946e-05/0.4672, allocations: 77.81 kB / 0.5249 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.4672, allocations: 5.891 kB / 0.5249 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.045e-05/0.4672, allocations: 3.984 kB / 0.5249 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.4672, allocations: 6.25 kB / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.4672, allocations: 1.469 kB / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.355e-05/0.4673, allocations: 75.28 kB / 0.525 GB, free: 14.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4673, allocations: 0 / 0.525 GB, free: 14.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.4677, allocations: 123.5 kB / 0.5251 GB, free: 14.89 MB / 398.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.000767/0.4684, allocations: 297.9 kB / 0.5254 GB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.4685, allocations: 58.66 kB / 0.5255 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4686, allocations: 7.875 kB / 0.5255 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.414e-05/0.4686, allocations: 55.75 kB / 0.5255 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.4687, allocations: 1.875 kB / 0.5255 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001872/0.4689, allocations: 82.47 kB / 0.5256 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.4692, allocations: 0.6757 MB / 0.5263 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.182e-06/0.4692, allocations: 0 / 0.5263 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.587e-05/0.4693, allocations: 8.562 kB / 0.5263 GB, free: 13.8 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4693, allocations: 0 / 0.5263 GB, free: 13.8 MB / 398.1 MB Notification: Performance of Templates: time 0.006832/0.4761, allocations: 3.389 MB / 0.5296 GB, free: 12.28 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches