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.001138/0.001138, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 198 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.433/1.433, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2272/0.2272, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 76.2 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4246/0.4259, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00164/0.4276, allocations: 0.502 MB / 0.5315 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.4304, allocations: 2.018 MB / 0.5335 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.563e-05/0.4304, allocations: 0 / 0.5335 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.67e-05/0.4304, allocations: 0 / 0.5335 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.4305, allocations: 0 / 0.5335 GB, free: 11.65 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.001853/0.4323, allocations: 0.5002 MB / 0.5339 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.558e-05/0.4324, allocations: 13.36 kB / 0.534 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.588e-05/0.4324, allocations: 1.312 kB / 0.534 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.635e-05/0.4325, allocations: 1.375 kB / 0.534 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.776e-05/0.4325, allocations: 1.062 kB / 0.534 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.4325, allocations: 0 / 0.534 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001204/0.4337, allocations: 0.6316 MB / 0.5346 GB, free: 11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.908e-06/0.4337, allocations: 9.125 kB / 0.5346 GB, free: 11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.188e-05/0.4338, allocations: 3.984 kB / 0.5346 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008497/0.4346, allocations: 389.3 kB / 0.535 GB, free: 10.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.4346, allocations: 0 / 0.535 GB, free: 10.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4346, allocations: 0 / 0.535 GB, free: 10.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.4346, allocations: 1.438 kB / 0.535 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.0005861/0.4352, allocations: 417.6 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.4353, allocations: 9.188 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.21e-05/0.4353, allocations: 6.188 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.426e-05/0.4354, allocations: 164.3 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.4354, allocations: 384 / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.4355, allocations: 1.594 kB / 0.5355 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.532e-05/0.4356, allocations: 32.61 kB / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.4356, allocations: 0 / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.4356, allocations: 1.438 kB / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.4356, allocations: 0 / 0.5356 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.321e-05/0.4356, allocations: 9.234 kB / 0.5356 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.4358, allocations: 150.9 kB / 0.5357 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.932e-05/0.4358, allocations: 15.86 kB / 0.5357 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.485e-05/0.4358, allocations: 6.266 kB / 0.5357 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.4358, allocations: 1.344 kB / 0.5357 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.4359, allocations: 61.48 kB / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.4359, allocations: 0 / 0.5358 GB, free: 9.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001897/0.4361, allocations: 78.72 kB / 0.5359 GB, free: 9.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.4361, allocations: 78.39 kB / 0.5359 GB, free: 9.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.177e-05/0.4362, allocations: 89.86 kB / 0.536 GB, free: 9.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.4362, allocations: 25.7 kB / 0.5361 GB, free: 9.469 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.889e-05/0.4362, allocations: 81.17 kB / 0.5361 GB, free: 9.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.4363, allocations: 0 / 0.5361 GB, free: 9.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.4363, allocations: 13 kB / 0.5361 GB, free: 9.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4364, allocations: 314.8 kB / 0.5364 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.4364, allocations: 9.156 kB / 0.5365 GB, free: 9.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.73e-06/0.4364, allocations: 1.062 kB / 0.5365 GB, free: 9.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.508e-05/0.4365, allocations: 64.36 kB / 0.5365 GB, free: 8.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4365, allocations: 0 / 0.5365 GB, free: 8.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.769e-05/0.4366, allocations: 62.12 kB / 0.5366 GB, free: 8.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.4366, allocations: 39.19 kB / 0.5366 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.4366, allocations: 0 / 0.5366 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.4367, allocations: 1.188 kB / 0.5366 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.4367, allocations: 0 / 0.5366 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.4367, allocations: 5.094 kB / 0.5366 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.518e-05/0.4367, allocations: 0 / 0.5366 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.4367, allocations: 1.094 kB / 0.5366 GB, free: 8.863 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.12e-05/0.4368, allocations: 141.9 kB / 0.5368 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.4368, allocations: 5.031 kB / 0.5368 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.127e-06/0.4368, allocations: 3.125 kB / 0.5368 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.4368, allocations: 1.25 kB / 0.5368 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.4368, allocations: 3.984 kB / 0.5368 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.4369, allocations: 0 / 0.5368 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.911e-05/0.437, allocations: 147.9 kB / 0.5369 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.437, allocations: 0 / 0.5369 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.92e-07/0.437, allocations: 3.938 kB / 0.5369 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.437, allocations: 5.031 kB / 0.5369 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.437, allocations: 1.062 kB / 0.5369 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.437, allocations: 4 kB / 0.5369 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.437, allocations: 0 / 0.5369 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000105/0.4371, allocations: 106 kB / 0.537 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-05/0.4372, allocations: 82.08 kB / 0.5371 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.4372, allocations: 5.219 kB / 0.5371 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.272e-05/0.4372, allocations: 3.984 kB / 0.5371 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.268e-05/0.4372, allocations: 1.062 kB / 0.5371 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.4372, allocations: 1.125 kB / 0.5371 GB, free: 8.277 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.969e-05/0.4372, allocations: 75.28 kB / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4373, allocations: 0 / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004935/0.4378, allocations: 127.7 kB / 0.5373 GB, free: 8.172 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.0009382/0.4387, allocations: 307.6 kB / 0.5376 GB, free: 7.996 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.4388, allocations: 59.84 kB / 0.5377 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4388, allocations: 9.25 kB / 0.5377 GB, free: 7.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.187e-05/0.4389, allocations: 57.8 kB / 0.5377 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.439, allocations: 2.094 kB / 0.5377 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002039/0.4392, allocations: 80.62 kB / 0.5378 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.4394, allocations: 0.67 MB / 0.5385 GB, free: 7.062 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.013e-06/0.4394, allocations: 0 / 0.5385 GB, free: 7.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.4395, allocations: 10.06 kB / 0.5385 GB, free: 7.055 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4395, allocations: 0 / 0.5385 GB, free: 7.055 MB / 398.1 MB Notification: Performance of Templates: time 0.007804/0.4473, allocations: 3.526 MB / 0.5419 GB, free: 5.25 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