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.001578/0.001578, allocations: 110 kB / 17.78 MB, free: 5.289 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.001751/0.001751, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.444/1.444, 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.2327/0.2327, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5037/0.5049, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001831/0.5068, allocations: 0.5058 MB / 0.5194 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002995/0.5099, allocations: 1.993 MB / 0.5213 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.834e-05/0.5099, allocations: 0 / 0.5213 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.5099, allocations: 4 kB / 0.5213 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.615e-06/0.51, allocations: 0 / 0.5213 GB, free: 1.895 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.001766/0.5117, allocations: 0.4904 MB / 0.5218 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.67e-05/0.5118, allocations: 2.156 kB / 0.5218 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.841e-05/0.5119, allocations: 1.688 kB / 0.5218 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.112e-05/0.5119, allocations: 1.781 kB / 0.5218 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.257e-05/0.5119, allocations: 1.188 kB / 0.5218 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.646e-06/0.5119, allocations: 0 / 0.5218 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.5132, allocations: 0.6259 MB / 0.5224 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.5132, allocations: 0 / 0.5224 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.541e-05/0.5132, allocations: 6.094 kB / 0.5224 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007286/0.514, allocations: 377.7 kB / 0.5228 GB, free: 1.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.514, allocations: 0 / 0.5228 GB, free: 1.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.514, allocations: 0 / 0.5228 GB, free: 1.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.514, allocations: 4.969 kB / 0.5228 GB, free: 1.406 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.0004488/0.5144, allocations: 405.8 kB / 0.5232 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.5145, allocations: 9.219 kB / 0.5232 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.5145, allocations: 2.125 kB / 0.5232 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.759e-05/0.5146, allocations: 165.3 kB / 0.5234 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.5146, allocations: 2.078 kB / 0.5234 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.5147, allocations: 384 / 0.5234 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.691e-05/0.5148, allocations: 41.3 kB / 0.5234 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.5148, allocations: 1.125 kB / 0.5234 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.5148, allocations: 0.5625 kB / 0.5234 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.5148, allocations: 1.156 kB / 0.5234 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.335e-05/0.5148, allocations: 5.766 kB / 0.5234 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.515, allocations: 144.2 kB / 0.5235 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.437e-05/0.515, allocations: 20.55 kB / 0.5236 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.386e-05/0.515, allocations: 6.172 kB / 0.5236 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/0.5151, allocations: 2.125 kB / 0.5236 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.246e-05/0.5151, allocations: 65.27 kB / 0.5236 GB, free: 452 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.5151, allocations: 4 kB / 0.5236 GB, free: 448 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002031/0.5153, allocations: 66.05 kB / 0.5237 GB, free: 380 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.5154, allocations: 78.75 kB / 0.5238 GB, free: 284 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.274e-05/0.5154, allocations: 90.61 kB / 0.5239 GB, free: 184 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.059e-05/0.5154, allocations: 25.7 kB / 0.5239 GB, free: 152 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.16e-05/0.5155, allocations: 81.2 kB / 0.524 GB, free: 68 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.5155, allocations: 3.797 kB / 0.524 GB, free: 68 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.5155, allocations: 16.84 kB / 0.524 GB, free: 48 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.5157, allocations: 317.3 kB / 0.5243 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.236e-05/0.5157, allocations: 1.625 kB / 0.5243 GB, free: 15.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.079e-06/0.5157, allocations: 0 / 0.5243 GB, free: 15.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.645e-05/0.5158, allocations: 59.95 kB / 0.5244 GB, free: 15.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.5158, allocations: 5.938 kB / 0.5244 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.504e-05/0.5159, allocations: 67.47 kB / 0.5244 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/0.516, allocations: 36 kB / 0.5245 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.516, allocations: 0.75 kB / 0.5245 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.516, allocations: 5.562 kB / 0.5245 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.516, allocations: 0 / 0.5245 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.516, allocations: 0.7969 kB / 0.5245 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.516, allocations: 1.438 kB / 0.5245 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.516, allocations: 0 / 0.5245 GB, free: 15.55 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 9.905e-05/0.5161, allocations: 135.5 kB / 0.5246 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.319e-05/0.5162, allocations: 4.734 kB / 0.5246 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.264e-05/0.5162, allocations: 12.52 kB / 0.5246 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.5162, allocations: 0.6094 kB / 0.5246 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.5162, allocations: 4 kB / 0.5246 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5162, allocations: 1.344 kB / 0.5246 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.5163, allocations: 149.6 kB / 0.5248 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.5164, allocations: 0 / 0.5248 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.5164, allocations: 0 / 0.5248 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.5164, allocations: 4.641 kB / 0.5248 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.5164, allocations: 1.469 kB / 0.5248 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.5164, allocations: 3.938 kB / 0.5248 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.5164, allocations: 1.953 kB / 0.5248 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.5165, allocations: 99.73 kB / 0.5249 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.945e-05/0.5166, allocations: 79.09 kB / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.5166, allocations: 6.203 kB / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.5166, allocations: 0 / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.5166, allocations: 2.281 kB / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.5166, allocations: 0 / 0.5249 GB, free: 14.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.214e-05/0.5167, allocations: 75.28 kB / 0.525 GB, free: 14.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5167, allocations: 0 / 0.525 GB, free: 14.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004914/0.5172, allocations: 127.2 kB / 0.5251 GB, free: 14.88 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.0008507/0.518, allocations: 292.2 kB / 0.5254 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.5182, allocations: 66.66 kB / 0.5255 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5182, allocations: 0 / 0.5255 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.463e-05/0.5182, allocations: 58.05 kB / 0.5255 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.5184, allocations: 4.141 kB / 0.5255 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002135/0.5186, allocations: 81.02 kB / 0.5256 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.5189, allocations: 0.6753 MB / 0.5263 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.985e-06/0.5189, allocations: 1.281 kB / 0.5263 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.625e-05/0.5189, allocations: 9.156 kB / 0.5263 GB, free: 13.79 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5189, allocations: 4.125 kB / 0.5263 GB, free: 13.79 MB / 398.1 MB Notification: Performance of Templates: time 0.00813/0.5271, allocations: 3.393 MB / 0.5296 GB, free: 12.29 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