Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 177 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008251/0.0008251, allocations: 84.12 kB / 292.1 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3156/0.3156, allocations: 44.21 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003936, allocations: 8 kB / 459.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3212, allocations: 61.89 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1106/0.4318, allocations: 87.63 MB / 0.5951 GB, free: 7.523 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.432, allocations: 63.97 kB / 0.5952 GB, free: 7.461 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6577/1.09, allocations: 48.73 MB / 0.6428 GB, free: 6.668 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.09, allocations: 4 kB / 0.6428 GB, free: 6.664 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/1.09, allocations: 0 / 0.6428 GB, free: 6.664 MB / 458.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.001544/1.091, allocations: 440.8 kB / 0.6432 GB, free: 6.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/1.091, allocations: 8.031 kB / 0.6432 GB, free: 6.172 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/1.091, allocations: 4 kB / 0.6432 GB, free: 6.168 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.972e-05/1.092, allocations: 163 kB / 0.6434 GB, free: 5.969 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/1.092, allocations: 0 / 0.6434 GB, free: 5.969 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/1.092, allocations: 7.953 kB / 0.6434 GB, free: 5.961 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.993e-05/1.092, allocations: 33.69 kB / 0.6434 GB, free: 5.922 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/1.092, allocations: 4 kB / 0.6434 GB, free: 5.918 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/1.092, allocations: 0 / 0.6434 GB, free: 5.918 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/1.092, allocations: 0 / 0.6434 GB, free: 5.918 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.95e-05/1.092, allocations: 4 kB / 0.6434 GB, free: 5.914 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/1.092, allocations: 149.7 kB / 0.6436 GB, free: 5.719 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.896e-05/1.092, allocations: 22.45 kB / 0.6436 GB, free: 5.688 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.293e-06/1.092, allocations: 4 kB / 0.6436 GB, free: 5.684 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/1.092, allocations: 60.22 kB / 0.6436 GB, free: 5.609 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/1.092, allocations: 4.062 kB / 0.6436 GB, free: 5.605 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001659/1.092, allocations: 63.39 kB / 0.6437 GB, free: 5.531 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/1.092, allocations: 81.11 kB / 0.6438 GB, free: 5.434 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.161e-05/1.092, allocations: 85 kB / 0.6439 GB, free: 5.344 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/1.092, allocations: 25.7 kB / 0.6439 GB, free: 5.312 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.756e-05/1.092, allocations: 84.27 kB / 0.644 GB, free: 5.227 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/1.092, allocations: 3.938 kB / 0.644 GB, free: 5.223 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.904e-06/1.092, allocations: 0 / 0.644 GB, free: 5.223 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/1.092, allocations: 310.8 kB / 0.6443 GB, free: 4.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/1.092, allocations: 8 kB / 0.6443 GB, free: 4.902 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.532e-06/1.092, allocations: 3.984 kB / 0.6443 GB, free: 4.898 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.464e-05/1.092, allocations: 25.7 kB / 0.6443 GB, free: 4.867 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/1.092, allocations: 0 / 0.6443 GB, free: 4.867 MB / 458.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.933e-05/1.093, allocations: 63.47 kB / 0.6444 GB, free: 4.793 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/1.093, allocations: 35.27 kB / 0.6444 GB, free: 4.754 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/1.093, allocations: 0 / 0.6444 GB, free: 4.754 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/1.093, allocations: 3.953 kB / 0.6444 GB, free: 4.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/1.093, allocations: 3.984 kB / 0.6444 GB, free: 4.746 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/1.093, allocations: 0 / 0.6444 GB, free: 4.746 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.313e-05/1.093, allocations: 0 / 0.6444 GB, free: 4.746 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/1.093, allocations: 0 / 0.6444 GB, free: 4.746 MB / 458.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 7.773e-05/1.093, allocations: 137.5 kB / 0.6445 GB, free: 4.598 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.088e-05/1.093, allocations: 12.02 kB / 0.6445 GB, free: 4.586 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.374e-05/1.093, allocations: 10.66 kB / 0.6446 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.093, allocations: 3.953 kB / 0.6446 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/1.093, allocations: 0 / 0.6446 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/1.093, allocations: 4 kB / 0.6446 GB, free: 4.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.747e-05/1.093, allocations: 145.7 kB / 0.6447 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/1.093, allocations: 0 / 0.6447 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/1.093, allocations: 0 / 0.6447 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/1.093, allocations: 0 / 0.6447 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/1.093, allocations: 0 / 0.6447 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/1.093, allocations: 4 kB / 0.6447 GB, free: 4.375 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.093, allocations: 11.89 kB / 0.6447 GB, free: 4.363 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.329e-05/1.093, allocations: 86.83 kB / 0.6448 GB, free: 4.254 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.869e-05/1.093, allocations: 81.11 kB / 0.6449 GB, free: 4.156 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/1.093, allocations: 0 / 0.6449 GB, free: 4.156 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/1.093, allocations: 0 / 0.6449 GB, free: 4.156 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.322e-05/1.093, allocations: 3.938 kB / 0.6449 GB, free: 4.152 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/1.093, allocations: 3.953 kB / 0.6449 GB, free: 4.148 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.202e-05/1.093, allocations: 79.31 kB / 0.645 GB, free: 4.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.523e-06/1.093, allocations: 4 kB / 0.645 GB, free: 4.066 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003468/1.097, allocations: 1.316 MB / 0.6463 GB, free: 2.75 MB / 458.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.005202/1.102, allocations: 1.205 MB / 0.6474 GB, free: 1.539 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001027/1.102, allocations: 55.41 kB / 0.6475 GB, free: 1.473 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.102, allocations: 0 / 0.6475 GB, free: 1.473 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/1.102, allocations: 59.41 kB / 0.6475 GB, free: 1.402 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.097e-05/1.102, allocations: 1.562 kB / 0.6475 GB, free: 1.402 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000177/1.102, allocations: 82.81 kB / 0.6476 GB, free: 1.293 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/1.102, allocations: 0.6692 MB / 0.6483 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 5.951e-06/1.102, allocations: 4 kB / 0.6483 GB, free: 0.5938 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.353e-05/1.103, allocations: 7.438 kB / 0.6483 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of SimCode: time 2.11e-07/1.103, allocations: 0 / 0.6483 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of Templates: time 0.3369/1.439, allocations: 68.14 MB / 0.7148 GB, free: 104.6 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches