Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001504/0.001504, allocations: 183.7 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009425/0.0009423, allocations: 86.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2161/0.2161, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003007, allocations: 12 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 58.86 MB / 490.2 MB, free: 8.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3971/0.5124, allocations: 86.57 MB / 0.5633 GB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.5127, allocations: 70.91 kB / 0.5634 GB, free: 13.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6631/1.176, allocations: 48.66 MB / 0.6109 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.296e-06/1.176, allocations: 0 / 0.6109 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.916e-06/1.176, allocations: 4 kB / 0.6109 GB, free: 0.6602 MB / 410.7 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.002227/1.178, allocations: 439.3 kB / 0.6113 GB, free: 188 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/1.178, allocations: 8.031 kB / 0.6113 GB, free: 180 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.676e-05/1.178, allocations: 0 / 0.6113 GB, free: 180 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/1.178, allocations: 167 kB / 0.6115 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/1.178, allocations: 7.922 kB / 0.6115 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/1.178, allocations: 4 kB / 0.6115 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.518e-05/1.179, allocations: 25.7 kB / 0.6115 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/1.179, allocations: 4 kB / 0.6115 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/1.179, allocations: 0 / 0.6115 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/1.179, allocations: 0 / 0.6115 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.192e-05/1.179, allocations: 0 / 0.6115 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/1.179, allocations: 149.3 kB / 0.6116 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.234e-05/1.179, allocations: 27.09 kB / 0.6117 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.112e-06/1.179, allocations: 4 kB / 0.6117 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.708e-05/1.179, allocations: 56.27 kB / 0.6117 GB, free: 15.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/1.179, allocations: 0 / 0.6117 GB, free: 15.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002479/1.179, allocations: 61.78 kB / 0.6118 GB, free: 15.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/1.179, allocations: 81.11 kB / 0.6119 GB, free: 15.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.476e-05/1.179, allocations: 88.98 kB / 0.612 GB, free: 15.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/1.179, allocations: 25.7 kB / 0.612 GB, free: 15.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.811e-05/1.179, allocations: 90.77 kB / 0.6121 GB, free: 15.24 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.986e-05/1.179, allocations: 3.984 kB / 0.6121 GB, free: 15.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-06/1.179, allocations: 0 / 0.6121 GB, free: 15.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/1.18, allocations: 314.8 kB / 0.6124 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.184e-05/1.18, allocations: 0 / 0.6124 GB, free: 14.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.498e-06/1.18, allocations: 7.938 kB / 0.6124 GB, free: 14.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.369e-05/1.18, allocations: 25.7 kB / 0.6124 GB, free: 14.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.18, allocations: 0 / 0.6124 GB, free: 14.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.654e-05/1.18, allocations: 70.28 kB / 0.6125 GB, free: 14.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/1.18, allocations: 37.23 kB / 0.6125 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.18, allocations: 0 / 0.6125 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/1.18, allocations: 4 kB / 0.6125 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/1.18, allocations: 0 / 0.6125 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/1.18, allocations: 0 / 0.6125 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/1.18, allocations: 3.984 kB / 0.6125 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.567e-06/1.18, allocations: 0 / 0.6125 GB, free: 14.76 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.827e-05/1.18, allocations: 139.5 kB / 0.6126 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-06/1.18, allocations: 3.953 kB / 0.6126 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.491e-05/1.18, allocations: 14.17 kB / 0.6127 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/1.18, allocations: 0 / 0.6127 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/1.18, allocations: 0 / 0.6127 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/1.18, allocations: 0 / 0.6127 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.574e-05/1.18, allocations: 145.7 kB / 0.6128 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/1.18, allocations: 0 / 0.6128 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/1.18, allocations: 3.938 kB / 0.6128 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/1.18, allocations: 3.953 kB / 0.6128 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/1.18, allocations: 0 / 0.6128 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/1.18, allocations: 4 kB / 0.6128 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.18, allocations: 7.984 kB / 0.6128 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/1.18, allocations: 85.41 kB / 0.6129 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/1.18, allocations: 80.67 kB / 0.613 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/1.18, allocations: 11.94 kB / 0.613 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.146e-06/1.18, allocations: 0 / 0.613 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.158e-05/1.18, allocations: 0 / 0.613 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/1.18, allocations: 0 / 0.613 GB, free: 14.17 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.151e-05/1.18, allocations: 75.28 kB / 0.6131 GB, free: 14.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/1.18, allocations: 4.031 kB / 0.6131 GB, free: 14.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004749/1.185, allocations: 1.311 MB / 0.6143 GB, free: 12.79 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007524/1.193, allocations: 1.2 MB / 0.6155 GB, free: 11.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001648/1.193, allocations: 63.16 kB / 0.6156 GB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.193, allocations: 0 / 0.6156 GB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.301e-05/1.193, allocations: 59.39 kB / 0.6156 GB, free: 11.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001081/1.193, allocations: 0 / 0.6156 GB, free: 11.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002747/1.193, allocations: 75.2 kB / 0.6157 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/1.194, allocations: 0.6732 MB / 0.6164 GB, free: 10.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 9.157e-06/1.194, allocations: 4 kB / 0.6164 GB, free: 10.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.532e-05/1.194, allocations: 15.38 kB / 0.6164 GB, free: 10.62 MB / 426.7 MB Notification: Performance of SimCode: time 3.11e-07/1.194, allocations: 0 / 0.6164 GB, free: 10.62 MB / 426.7 MB Notification: Performance of Templates: time 0.1159/1.31, allocations: 68.14 MB / 0.6829 GB, free: 6.379 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches