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.001345/0.001345, allocations: 113 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 206.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2148/0.2148, allocations: 46.09 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 71.88 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3415, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0015/0.3431, allocations: 0.5053 MB / 0.5321 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.3458, allocations: 2.022 MB / 0.5341 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.091e-05/0.3458, allocations: 0 / 0.5341 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.164e-05/0.3459, allocations: 0 / 0.5341 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.953e-06/0.3459, allocations: 1.375 kB / 0.5341 GB, free: 11.62 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.001376/0.3473, allocations: 0.4961 MB / 0.5346 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.614e-05/0.3473, allocations: 5.359 kB / 0.5346 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.247e-05/0.3474, allocations: 1.375 kB / 0.5346 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.57e-05/0.3474, allocations: 1.375 kB / 0.5346 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.615e-05/0.3474, allocations: 0 / 0.5346 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.971e-06/0.3474, allocations: 0 / 0.5346 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009934/0.3484, allocations: 0.6443 MB / 0.5352 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.384e-06/0.3485, allocations: 3.938 kB / 0.5352 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.77e-05/0.3485, allocations: 1.062 kB / 0.5352 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005355/0.349, allocations: 384.7 kB / 0.5356 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.349, allocations: 0 / 0.5356 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.609e-06/0.3491, allocations: 4 kB / 0.5356 GB, free: 10.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3491, allocations: 0 / 0.5356 GB, free: 10.73 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.0004098/0.3495, allocations: 414.8 kB / 0.536 GB, free: 10.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.3495, allocations: 9.844 kB / 0.536 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.625e-05/0.3496, allocations: 1.875 kB / 0.536 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.928e-05/0.3497, allocations: 160.4 kB / 0.5362 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.3497, allocations: 1.531 kB / 0.5362 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.3497, allocations: 384 / 0.5362 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.917e-05/0.3498, allocations: 41.2 kB / 0.5362 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.3498, allocations: 0 / 0.5362 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.525e-06/0.3498, allocations: 0 / 0.5362 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-06/0.3498, allocations: 0.9375 kB / 0.5362 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.095e-05/0.3498, allocations: 9.109 kB / 0.5362 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.35, allocations: 146.8 kB / 0.5364 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.616e-05/0.35, allocations: 17.42 kB / 0.5364 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.665e-05/0.35, allocations: 6.078 kB / 0.5364 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.35, allocations: 4 kB / 0.5364 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.171e-05/0.3501, allocations: 65.52 kB / 0.5365 GB, free: 9.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3501, allocations: 0 / 0.5365 GB, free: 9.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001627/0.3503, allocations: 67.17 kB / 0.5365 GB, free: 9.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.3503, allocations: 78.08 kB / 0.5366 GB, free: 9.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.247e-05/0.3504, allocations: 89.86 kB / 0.5367 GB, free: 9.488 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.3504, allocations: 27.02 kB / 0.5367 GB, free: 9.457 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.23e-05/0.3504, allocations: 80.27 kB / 0.5368 GB, free: 9.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.3504, allocations: 8 kB / 0.5368 GB, free: 9.367 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.3505, allocations: 12.5 kB / 0.5368 GB, free: 9.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3506, allocations: 316.1 kB / 0.5371 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/0.3506, allocations: 0 / 0.5371 GB, free: 9.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.532e-06/0.3506, allocations: 5.156 kB / 0.5371 GB, free: 9.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.708e-05/0.3507, allocations: 60.27 kB / 0.5372 GB, free: 8.961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3507, allocations: 0 / 0.5372 GB, free: 8.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.8e-05/0.3508, allocations: 70.81 kB / 0.5372 GB, free: 8.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.3508, allocations: 41.34 kB / 0.5373 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3508, allocations: 0 / 0.5373 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.3508, allocations: 1.281 kB / 0.5373 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.3508, allocations: 0 / 0.5373 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3508, allocations: 0 / 0.5373 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.576e-05/0.3509, allocations: 5.281 kB / 0.5373 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3509, allocations: 0 / 0.5373 GB, free: 8.844 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 7.961e-05/0.351, allocations: 137.9 kB / 0.5374 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-06/0.351, allocations: 9.062 kB / 0.5374 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.364e-06/0.351, allocations: 3.125 kB / 0.5374 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.71e-07/0.351, allocations: 1.219 kB / 0.5374 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.351, allocations: 3.984 kB / 0.5374 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.351, allocations: 1.25 kB / 0.5374 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.328e-05/0.3511, allocations: 150.9 kB / 0.5376 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3511, allocations: 0 / 0.5376 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.997e-06/0.3511, allocations: 7.984 kB / 0.5376 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3511, allocations: 5.469 kB / 0.5376 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.3511, allocations: 0 / 0.5376 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3512, allocations: 1.094 kB / 0.5376 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3512, allocations: 4 kB / 0.5376 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.412e-05/0.3513, allocations: 93.7 kB / 0.5377 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.03e-05/0.3513, allocations: 79.02 kB / 0.5378 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.3513, allocations: 3.938 kB / 0.5378 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.3513, allocations: 5.734 kB / 0.5378 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.246e-05/0.3514, allocations: 0 / 0.5378 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.3514, allocations: 1.094 kB / 0.5378 GB, free: 8.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.275e-05/0.3514, allocations: 79.31 kB / 0.5378 GB, free: 8.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3514, allocations: 0 / 0.5378 GB, free: 8.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004051/0.3518, allocations: 123.6 kB / 0.538 GB, free: 8.16 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.0007237/0.3525, allocations: 308.8 kB / 0.5383 GB, free: 7.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.391e-05/0.3526, allocations: 60.84 kB / 0.5383 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3527, allocations: 3.938 kB / 0.5383 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.972e-05/0.3527, allocations: 58.67 kB / 0.5384 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.0001229/0.3528, allocations: 6.094 kB / 0.5384 GB, free: 7.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001803/0.353, allocations: 101.3 kB / 0.5385 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.3533, allocations: 0.6741 MB / 0.5391 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.221e-05/0.3533, allocations: 9.875 kB / 0.5391 GB, free: 7.008 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3533, allocations: 0 / 0.5391 GB, free: 7.008 MB / 398.1 MB Notification: Performance of Templates: time 0.006677/0.36, allocations: 3.41 MB / 0.5425 GB, free: 5.332 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches