Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 118.1 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001672/0.001672, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2266/0.2266, allocations: 46.12 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 79.86 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5/0.5015, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002341/0.5039, allocations: 0.4999 MB / 0.5315 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003481/0.5074, allocations: 2.019 MB / 0.5334 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.936e-05/0.5074, allocations: 0 / 0.5334 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.205e-05/0.5074, allocations: 0 / 0.5334 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.382e-06/0.5075, allocations: 1.375 kB / 0.5334 GB, free: 11.64 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001807/0.5093, allocations: 0.4963 MB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.817e-05/0.5094, allocations: 9.297 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.083e-05/0.5094, allocations: 1.375 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.102e-05/0.5094, allocations: 1.375 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.004e-05/0.5095, allocations: 0 / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.5095, allocations: 1.375 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.5109, allocations: 0.6393 MB / 0.5346 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.511, allocations: 0 / 0.5346 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.829e-05/0.511, allocations: 1.188 kB / 0.5346 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.5121, allocations: 388.1 kB / 0.5349 GB, free: 10.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.5121, allocations: 5.031 kB / 0.5349 GB, free: 10.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5121, allocations: 0 / 0.5349 GB, free: 10.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.5121, allocations: 0 / 0.5349 GB, free: 10.75 MB / 398.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.0008651/0.513, allocations: 418.5 kB / 0.5353 GB, free: 10.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.5131, allocations: 8.625 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.5131, allocations: 2.156 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.5133, allocations: 164.3 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.5133, allocations: 1.781 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.5133, allocations: 384 / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.5134, allocations: 36.48 kB / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.5135, allocations: 1.219 kB / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.5135, allocations: 0 / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.5135, allocations: 0 / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.189e-05/0.5135, allocations: 9.469 kB / 0.5356 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001927/0.5137, allocations: 147.1 kB / 0.5357 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.953e-05/0.5138, allocations: 21.14 kB / 0.5357 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.39e-05/0.5138, allocations: 6.172 kB / 0.5357 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.162e-06/0.5138, allocations: 4 kB / 0.5357 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.429e-05/0.5139, allocations: 61.42 kB / 0.5358 GB, free: 9.766 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.5139, allocations: 0 / 0.5358 GB, free: 9.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002257/0.5142, allocations: 68.17 kB / 0.5359 GB, free: 9.695 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.5142, allocations: 77.11 kB / 0.5359 GB, free: 9.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.566e-05/0.5143, allocations: 93.81 kB / 0.536 GB, free: 9.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.5143, allocations: 27.17 kB / 0.536 GB, free: 9.469 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.5144, allocations: 84.27 kB / 0.5361 GB, free: 9.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.5144, allocations: 5.531 kB / 0.5361 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.763e-05/0.5145, allocations: 10.47 kB / 0.5361 GB, free: 9.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.5146, allocations: 324.2 kB / 0.5364 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.27e-05/0.5146, allocations: 1.438 kB / 0.5364 GB, free: 9.039 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.053e-06/0.5146, allocations: 0 / 0.5364 GB, free: 9.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.195e-05/0.5147, allocations: 59.83 kB / 0.5365 GB, free: 8.969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.5147, allocations: 0 / 0.5365 GB, free: 8.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.155e-05/0.5148, allocations: 63.28 kB / 0.5366 GB, free: 8.902 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.02e-05/0.5148, allocations: 42.91 kB / 0.5366 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.5148, allocations: 0 / 0.5366 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.5149, allocations: 1 kB / 0.5366 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.5149, allocations: 0 / 0.5366 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.5149, allocations: 5.062 kB / 0.5366 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.007e-05/0.5149, allocations: 0 / 0.5366 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.5149, allocations: 5.031 kB / 0.5366 GB, free: 8.852 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 0.0001072/0.515, allocations: 141.9 kB / 0.5368 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.5151, allocations: 5.094 kB / 0.5368 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.137e-06/0.5151, allocations: 3.125 kB / 0.5368 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.5151, allocations: 5.016 kB / 0.5368 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.5151, allocations: 0 / 0.5368 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.5151, allocations: 1.5 kB / 0.5368 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.5152, allocations: 147.1 kB / 0.5369 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5152, allocations: 0 / 0.5369 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.032e-06/0.5152, allocations: 0 / 0.5369 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.5152, allocations: 3.938 kB / 0.5369 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.5152, allocations: 1.156 kB / 0.5369 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.585e-05/0.5153, allocations: 9.047 kB / 0.5369 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5153, allocations: 0 / 0.5369 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.5154, allocations: 90.58 kB / 0.537 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.87e-05/0.5155, allocations: 81.05 kB / 0.5371 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.5155, allocations: 9.234 kB / 0.5371 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.476e-05/0.5155, allocations: 1.312 kB / 0.5371 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.612e-05/0.5155, allocations: 3.938 kB / 0.5371 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.5156, allocations: 9.031 kB / 0.5371 GB, free: 8.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.23e-05/0.5156, allocations: 75.28 kB / 0.5372 GB, free: 8.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5156, allocations: 0 / 0.5372 GB, free: 8.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007153/0.5163, allocations: 122.9 kB / 0.5373 GB, free: 8.168 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.001153/0.5175, allocations: 325 kB / 0.5376 GB, free: 7.973 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001157/0.5176, allocations: 56.88 kB / 0.5377 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5176, allocations: 0 / 0.5377 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.046e-05/0.5177, allocations: 58.64 kB / 0.5377 GB, free: 7.844 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.5178, allocations: 2.156 kB / 0.5377 GB, free: 7.844 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002298/0.5181, allocations: 83.62 kB / 0.5378 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.5184, allocations: 0.674 MB / 0.5385 GB, free: 7.043 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.346e-06/0.5184, allocations: 3.938 kB / 0.5385 GB, free: 7.039 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.156e-05/0.5184, allocations: 13.58 kB / 0.5385 GB, free: 7.027 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5184, allocations: 0 / 0.5385 GB, free: 7.027 MB / 398.1 MB Notification: Performance of Templates: time 0.01037/0.5288, allocations: 3.508 MB / 0.5419 GB, free: 5.246 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches