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.001125/0.001125, allocations: 117.8 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.001275/0.001275, allocations: 208.6 kB / 18.74 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.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2319/0.2319, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4211, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00161/0.4228, allocations: 0.5053 MB / 0.5315 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002858/0.4257, allocations: 2.024 MB / 0.5334 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.564e-05/0.4257, allocations: 1.375 kB / 0.5334 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.544e-05/0.4257, allocations: 0 / 0.5334 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.054e-06/0.4257, allocations: 0 / 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.001391/0.4271, allocations: 0.5001 MB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.749e-05/0.4272, allocations: 1.375 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.322e-05/0.4272, allocations: 1.375 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.399e-05/0.4273, allocations: 1.375 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.624e-05/0.4273, allocations: 5.375 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.656e-06/0.4273, allocations: 3.984 kB / 0.534 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009417/0.4282, allocations: 0.6323 MB / 0.5346 GB, free: 11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.4283, allocations: 7.922 kB / 0.5346 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.062e-05/0.4283, allocations: 1.219 kB / 0.5346 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005284/0.4288, allocations: 383.5 kB / 0.5349 GB, free: 10.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.4288, allocations: 0 / 0.5349 GB, free: 10.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4288, allocations: 1.125 kB / 0.5349 GB, free: 10.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.4289, allocations: 0 / 0.5349 GB, free: 10.76 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.0004831/0.4293, allocations: 411 kB / 0.5353 GB, free: 10.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.4294, allocations: 9 kB / 0.5353 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.37e-05/0.4294, allocations: 6.062 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.4296, allocations: 168.3 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.4296, allocations: 4.375 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.4296, allocations: 1.531 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.333e-05/0.4297, allocations: 32.33 kB / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.4297, allocations: 1.188 kB / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.4297, allocations: 0 / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4297, allocations: 0 / 0.5355 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.021e-05/0.4297, allocations: 2.281 kB / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.4299, allocations: 150.6 kB / 0.5357 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.569e-05/0.43, allocations: 28.78 kB / 0.5357 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.571e-05/0.43, allocations: 5.953 kB / 0.5357 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.24e-06/0.43, allocations: 0 / 0.5357 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.959e-05/0.43, allocations: 61.3 kB / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.43, allocations: 0 / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002067/0.4303, allocations: 67.33 kB / 0.5358 GB, free: 9.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.4303, allocations: 82.14 kB / 0.5359 GB, free: 9.605 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.886e-05/0.4304, allocations: 93.98 kB / 0.536 GB, free: 9.504 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.4304, allocations: 26.73 kB / 0.536 GB, free: 9.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.685e-05/0.4304, allocations: 80.14 kB / 0.5361 GB, free: 9.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.4305, allocations: 5.047 kB / 0.5361 GB, free: 9.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-05/0.4305, allocations: 11.78 kB / 0.5361 GB, free: 9.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4306, allocations: 315.8 kB / 0.5364 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.335e-05/0.4306, allocations: 1.031 kB / 0.5364 GB, free: 9.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.56e-06/0.4306, allocations: 4.875 kB / 0.5364 GB, free: 9.051 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.689e-05/0.4307, allocations: 67.34 kB / 0.5365 GB, free: 8.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.4307, allocations: 0 / 0.5365 GB, free: 8.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.355e-05/0.4308, allocations: 59.72 kB / 0.5366 GB, free: 8.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.368e-05/0.4308, allocations: 35.05 kB / 0.5366 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4308, allocations: 0 / 0.5366 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.4309, allocations: 3.938 kB / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.4309, allocations: 1.062 kB / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.4309, allocations: 0 / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.4309, allocations: 1.031 kB / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.4309, allocations: 5.062 kB / 0.5366 GB, free: 8.867 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.487e-05/0.431, allocations: 146.1 kB / 0.5367 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.431, allocations: 3.938 kB / 0.5368 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.431, allocations: 8.703 kB / 0.5368 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.431, allocations: 0 / 0.5368 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.431, allocations: 0 / 0.5368 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4311, allocations: 0 / 0.5368 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001011/0.4312, allocations: 152.2 kB / 0.5369 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.4312, allocations: 0 / 0.5369 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.733e-06/0.4312, allocations: 7.938 kB / 0.5369 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.4312, allocations: 9.062 kB / 0.5369 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.4312, allocations: 0 / 0.5369 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.4312, allocations: 1.406 kB / 0.5369 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4312, allocations: 0 / 0.5369 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.267e-05/0.4313, allocations: 94.33 kB / 0.537 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.4314, allocations: 77.11 kB / 0.5371 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.4314, allocations: 5.094 kB / 0.5371 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-06/0.4314, allocations: 5.031 kB / 0.5371 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.06e-05/0.4314, allocations: 0 / 0.5371 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.4314, allocations: 1.5 kB / 0.5371 GB, free: 8.285 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.594e-05/0.4314, allocations: 79.28 kB / 0.5372 GB, free: 8.207 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4314, allocations: 0 / 0.5372 GB, free: 8.207 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004202/0.4319, allocations: 127.1 kB / 0.5373 GB, free: 8.176 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.0007878/0.4327, allocations: 302.8 kB / 0.5376 GB, free: 8.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.301e-05/0.4328, allocations: 60.97 kB / 0.5376 GB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4328, allocations: 0 / 0.5376 GB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.53e-05/0.4328, allocations: 59.14 kB / 0.5377 GB, free: 7.871 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.433, allocations: 7.875 kB / 0.5377 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002008/0.4332, allocations: 89.81 kB / 0.5378 GB, free: 7.762 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.4334, allocations: 0.6705 MB / 0.5384 GB, free: 7.066 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.001e-06/0.4334, allocations: 0 / 0.5384 GB, free: 7.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.396e-05/0.4334, allocations: 8.781 kB / 0.5385 GB, free: 7.059 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4334, allocations: 0 / 0.5385 GB, free: 7.059 MB / 398.1 MB Notification: Performance of Templates: time 0.007293/0.4407, allocations: 3.512 MB / 0.5419 GB, free: 5.27 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