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.001092/0.001092, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.3 MB / 213.7 MB, free: 1.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009121/0.0009121, allocations: 86.17 kB / 261.7 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1929/0.1929, allocations: 43.48 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.778e-05, allocations: 0 / 418.2 MB, free: 28.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1179, allocations: 58.86 MB / 477.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4132/0.5312, allocations: 85.82 MB / 0.5497 GB, free: 8.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.5315, allocations: 66.78 kB / 0.5498 GB, free: 8.852 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.683/1.215, allocations: 48.46 MB / 0.5971 GB, free: 13.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.285e-06/1.215, allocations: 0 / 0.5971 GB, free: 13.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.331e-06/1.215, allocations: 4 kB / 0.5971 GB, free: 13.94 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.001646/1.216, allocations: 431 kB / 0.5975 GB, free: 13.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/1.216, allocations: 12.03 kB / 0.5976 GB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/1.216, allocations: 0.8438 kB / 0.5976 GB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/1.216, allocations: 167 kB / 0.5977 GB, free: 13.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/1.217, allocations: 0 / 0.5977 GB, free: 13.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/1.217, allocations: 0 / 0.5977 GB, free: 13.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.612e-05/1.217, allocations: 3.984 kB / 0.5977 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.614e-05/1.217, allocations: 29.7 kB / 0.5977 GB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/1.217, allocations: 4 kB / 0.5977 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/1.217, allocations: 0 / 0.5977 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/1.217, allocations: 0 / 0.5977 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001589/1.217, allocations: 130.1 kB / 0.5979 GB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.364e-05/1.217, allocations: 19.17 kB / 0.5979 GB, free: 13.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.383e-05/1.217, allocations: 8.734 kB / 0.5979 GB, free: 13.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/1.217, allocations: 3.938 kB / 0.5979 GB, free: 13.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.55e-05/1.217, allocations: 72.3 kB / 0.598 GB, free: 12.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/1.217, allocations: 0 / 0.598 GB, free: 12.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001837/1.217, allocations: 29.7 kB / 0.598 GB, free: 12.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/1.217, allocations: 77.11 kB / 0.5981 GB, free: 12.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.359e-05/1.217, allocations: 85 kB / 0.5982 GB, free: 12.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/1.217, allocations: 25.7 kB / 0.5982 GB, free: 12.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.618e-05/1.217, allocations: 84.14 kB / 0.5983 GB, free: 12.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/1.217, allocations: 0 / 0.5983 GB, free: 12.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/1.217, allocations: 4.031 kB / 0.5983 GB, free: 12.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/1.218, allocations: 317.7 kB / 0.5986 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.354e-06/1.218, allocations: 0 / 0.5986 GB, free: 12.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.877e-06/1.218, allocations: 0 / 0.5986 GB, free: 12.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.842e-05/1.218, allocations: 7.984 kB / 0.5986 GB, free: 12.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.218, allocations: 0 / 0.5986 GB, free: 12.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.468e-05/1.218, allocations: 37.59 kB / 0.5986 GB, free: 12.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/1.218, allocations: 33.7 kB / 0.5986 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/1.218, allocations: 0 / 0.5986 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/1.218, allocations: 4.094 kB / 0.5986 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.415e-06/1.218, allocations: 4 kB / 0.5986 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/1.218, allocations: 0 / 0.5986 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.215e-05/1.218, allocations: 0 / 0.5986 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/1.218, allocations: 7.984 kB / 0.5987 GB, free: 12.16 MB / 410.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 () * 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 9.297e-05/1.218, allocations: 129.8 kB / 0.5988 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-06/1.218, allocations: 3.953 kB / 0.5988 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.192e-05/1.218, allocations: 3.75 kB / 0.5988 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/1.218, allocations: 4 kB / 0.5988 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/1.218, allocations: 4 kB / 0.5988 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/1.218, allocations: 0 / 0.5988 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.846e-05/1.218, allocations: 126.2 kB / 0.5989 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/1.218, allocations: 0 / 0.5989 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/1.218, allocations: 0 / 0.5989 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/1.218, allocations: 0 / 0.5989 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/1.218, allocations: 4 kB / 0.5989 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/1.218, allocations: 3.953 kB / 0.5989 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.218, allocations: 0 / 0.5989 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.999e-05/1.218, allocations: 64.95 kB / 0.599 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.479e-05/1.218, allocations: 81.09 kB / 0.5991 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/1.218, allocations: 4 kB / 0.5991 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-06/1.218, allocations: 3.938 kB / 0.5991 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.393e-05/1.218, allocations: 3.953 kB / 0.5991 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/1.218, allocations: 0 / 0.5991 GB, free: 11.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.098e-05/1.218, allocations: 79.28 kB / 0.5991 GB, free: 11.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.218, allocations: 0 / 0.5991 GB, free: 11.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003582/1.222, allocations: 1.311 MB / 0.6004 GB, free: 10.27 MB / 410.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) * 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.005158/1.227, allocations: 1.199 MB / 0.6016 GB, free: 9.066 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001068/1.227, allocations: 66.64 kB / 0.6017 GB, free: 8.992 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.227, allocations: 0 / 0.6017 GB, free: 8.992 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.84e-05/1.227, allocations: 55.41 kB / 0.6017 GB, free: 8.926 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.797e-05/1.227, allocations: 3.281 kB / 0.6017 GB, free: 8.926 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001954/1.228, allocations: 48 kB / 0.6018 GB, free: 8.855 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/1.228, allocations: 0.6768 MB / 0.6024 GB, free: 8.152 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.983e-06/1.228, allocations: 0 / 0.6024 GB, free: 8.152 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.492e-05/1.228, allocations: 11.56 kB / 0.6024 GB, free: 8.141 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/1.228, allocations: 4 kB / 0.6024 GB, free: 8.137 MB / 410.7 MB Notification: Performance of Templates: time 0.1179/1.346, allocations: 68.71 MB / 0.6695 GB, free: 3.332 MB / 474.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