Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_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.0009333/0.0009333, allocations: 184.5 kB / 17.41 MB, free: 4.395 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.422/1.422, allocations: 205.4 MB / 223.6 MB, free: 8.938 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.0009788/0.0009789, allocations: 90.36 kB / 271.9 MB, free: 8.238 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.2989/0.2989, allocations: 43.56 MB / 363.8 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004015/0.0004016, allocations: 12 kB / 432.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1075, allocations: 58.85 MB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2825/0.39, allocations: 86.61 MB / 0.5645 GB, free: 15.64 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.3902, allocations: 63.97 kB / 0.5646 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7214/1.112, allocations: 37.5 MB / 0.6012 GB, free: 10.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.325e-06/1.112, allocations: 4 kB / 0.6012 GB, free: 10.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.129e-06/1.112, allocations: 0 / 0.6012 GB, free: 10.06 MB / 426.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.001823/1.114, allocations: 441 kB / 0.6016 GB, free: 9.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/1.114, allocations: 8.031 kB / 0.6016 GB, free: 9.562 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/1.114, allocations: 0.9375 kB / 0.6016 GB, free: 9.562 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.862e-05/1.114, allocations: 164.4 kB / 0.6018 GB, free: 9.363 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/1.114, allocations: 4.375 kB / 0.6018 GB, free: 9.359 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/1.114, allocations: 4.359 kB / 0.6018 GB, free: 9.355 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.032e-05/1.114, allocations: 34.25 kB / 0.6018 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/1.114, allocations: 192 / 0.6018 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/1.114, allocations: 7.938 kB / 0.6018 GB, free: 9.309 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/1.114, allocations: 3.938 kB / 0.6018 GB, free: 9.305 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.575e-05/1.114, allocations: 0 / 0.6018 GB, free: 9.305 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/1.114, allocations: 145.7 kB / 0.602 GB, free: 9.113 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.789e-05/1.114, allocations: 23.16 kB / 0.602 GB, free: 9.082 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.421e-05/1.114, allocations: 5.516 kB / 0.602 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-06/1.114, allocations: 4 kB / 0.602 GB, free: 9.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.257e-05/1.114, allocations: 60.33 kB / 0.6021 GB, free: 8.996 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/1.114, allocations: 0 / 0.6021 GB, free: 8.996 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001653/1.114, allocations: 76.2 kB / 0.6021 GB, free: 8.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.522e-05/1.114, allocations: 77.11 kB / 0.6022 GB, free: 8.816 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.101e-05/1.114, allocations: 89.86 kB / 0.6023 GB, free: 8.719 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/1.114, allocations: 28.98 kB / 0.6023 GB, free: 8.688 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.361e-05/1.114, allocations: 80.27 kB / 0.6024 GB, free: 8.605 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/1.115, allocations: 9.969 kB / 0.6024 GB, free: 8.598 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/1.115, allocations: 0 / 0.6024 GB, free: 8.598 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.411e-05/1.115, allocations: 314.8 kB / 0.6027 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-06/1.115, allocations: 0 / 0.6027 GB, free: 8.281 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-06/1.115, allocations: 0 / 0.6027 GB, free: 8.281 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.238e-05/1.115, allocations: 68.2 kB / 0.6028 GB, free: 8.199 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.115, allocations: 0 / 0.6028 GB, free: 8.199 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.338e-05/1.115, allocations: 67.45 kB / 0.6028 GB, free: 8.121 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/1.115, allocations: 29.7 kB / 0.6029 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/1.115, allocations: 0 / 0.6029 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/1.115, allocations: 3.938 kB / 0.6029 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/1.115, allocations: 0 / 0.6029 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/1.115, allocations: 0 / 0.6029 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.268e-05/1.115, allocations: 4 kB / 0.6029 GB, free: 8.078 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/1.115, allocations: 0 / 0.6029 GB, free: 8.078 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 7.816e-05/1.115, allocations: 135.5 kB / 0.603 GB, free: 7.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-06/1.115, allocations: 4 kB / 0.603 GB, free: 7.926 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.207e-05/1.115, allocations: 11.09 kB / 0.603 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/1.115, allocations: 0 / 0.603 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/1.115, allocations: 0 / 0.603 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/1.115, allocations: 0 / 0.603 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.87e-05/1.115, allocations: 149.7 kB / 0.6031 GB, free: 7.723 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/1.115, allocations: 4 kB / 0.6032 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/1.115, allocations: 0 / 0.6032 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/1.115, allocations: 0 / 0.6032 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/1.115, allocations: 3.938 kB / 0.6032 GB, free: 7.715 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/1.115, allocations: 0 / 0.6032 GB, free: 7.715 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/1.115, allocations: 7.938 kB / 0.6032 GB, free: 7.707 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.361e-05/1.115, allocations: 90.83 kB / 0.6033 GB, free: 7.594 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-05/1.115, allocations: 77.11 kB / 0.6033 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/1.115, allocations: 3.938 kB / 0.6033 GB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.323e-05/1.115, allocations: 12 kB / 0.6033 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/1.115, allocations: 0 / 0.6033 GB, free: 7.484 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-06/1.115, allocations: 0.75 kB / 0.6033 GB, free: 7.484 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.506e-05/1.115, allocations: 79.31 kB / 0.6034 GB, free: 7.406 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.552e-06/1.115, allocations: 0 / 0.6034 GB, free: 7.406 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003921/1.119, allocations: 1.316 MB / 0.6047 GB, free: 6.09 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.005966/1.125, allocations: 1.202 MB / 0.6059 GB, free: 4.883 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001284/1.125, allocations: 67.33 kB / 0.6059 GB, free: 4.805 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/1.125, allocations: 0 / 0.6059 GB, free: 4.805 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.35e-05/1.125, allocations: 55.41 kB / 0.606 GB, free: 4.738 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/1.126, allocations: 0 / 0.606 GB, free: 4.738 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001936/1.126, allocations: 104.9 kB / 0.6061 GB, free: 4.605 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/1.126, allocations: 0.6848 MB / 0.6068 GB, free: 3.895 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.073e-05/1.126, allocations: 7.438 kB / 0.6068 GB, free: 3.891 MB / 426.7 MB Notification: Performance of SimCode: time 3.11e-07/1.126, allocations: 0 / 0.6068 GB, free: 3.891 MB / 426.7 MB Notification: Performance of Templates: time 0.0901/1.216, allocations: 58.49 MB / 0.6639 GB, free: 9.312 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches