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.0009589/0.000959, allocations: 171.2 kB / 16.72 MB, free: 5.055 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.404/1.404, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0008049/0.000805, allocations: 96.92 kB / 271.2 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.2901/0.2901, allocations: 43.56 MB / 363.1 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003138, allocations: 8 kB / 432 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09141/0.09174, allocations: 58.86 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0004634/0.09223, allocations: 244.3 kB / 491.1 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002074/0.09432, allocations: 1.931 MB / 493 MB, free: 8.715 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.187e-05/0.09434, allocations: 0 / 493 MB, free: 8.715 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.025e-06/0.09436, allocations: 4 kB / 493 MB, free: 8.711 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.308e-06/0.09437, allocations: 0 / 493 MB, free: 8.711 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009316/0.09531, allocations: 407.1 kB / 493.4 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 1.928e-05/0.09534, allocations: 0 / 493.4 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.69e-05/0.09537, allocations: 0 / 493.4 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.758e-06/0.09538, allocations: 0 / 493.4 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.516e-05/0.0954, allocations: 4 kB / 493.4 MB, free: 8.309 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.222e-06/0.09541, allocations: 0 / 493.4 MB, free: 8.309 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008401/0.09626, allocations: 0.6589 MB / 494.1 MB, free: 7.648 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.594e-06/0.09628, allocations: 0 / 494.1 MB, free: 7.648 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.499e-05/0.09631, allocations: 33.64 kB / 494.1 MB, free: 7.609 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003114/0.09663, allocations: 243.6 kB / 494.3 MB, free: 7.371 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.09664, allocations: 3.984 kB / 494.3 MB, free: 7.367 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09665, allocations: 0 / 494.3 MB, free: 7.367 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.09666, allocations: 4 kB / 494.3 MB, free: 7.363 MB / 378.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.0003491/0.09701, allocations: 397.3 kB / 494.7 MB, free: 6.922 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.09705, allocations: 16.02 kB / 494.7 MB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.11e-05/0.09708, allocations: 0.9375 kB / 494.7 MB, free: 6.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.473e-05/0.09717, allocations: 164.4 kB / 494.9 MB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.09719, allocations: 4.375 kB / 494.9 MB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.0972, allocations: 4.312 kB / 494.9 MB, free: 6.699 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.448e-05/0.09729, allocations: 38.02 kB / 494.9 MB, free: 6.656 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-06/0.09731, allocations: 0 / 494.9 MB, free: 6.656 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.09732, allocations: 0 / 494.9 MB, free: 6.656 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.09733, allocations: 0 / 494.9 MB, free: 6.656 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.756e-05/0.09735, allocations: 3.938 kB / 494.9 MB, free: 6.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.09746, allocations: 149.7 kB / 495.1 MB, free: 6.457 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.187e-05/0.0975, allocations: 18.58 kB / 495.1 MB, free: 6.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.261e-05/0.09752, allocations: 12.89 kB / 495.1 MB, free: 6.414 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.224e-06/0.09753, allocations: 0 / 495.1 MB, free: 6.414 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.09758, allocations: 64.2 kB / 495.2 MB, free: 6.336 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.09758, allocations: 0 / 495.2 MB, free: 6.336 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001271/0.09771, allocations: 71.23 kB / 495.3 MB, free: 6.254 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.09776, allocations: 77.11 kB / 495.3 MB, free: 6.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.034e-05/0.0978, allocations: 93.98 kB / 495.4 MB, free: 6.059 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.09781, allocations: 25.7 kB / 495.4 MB, free: 6.027 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.896e-05/0.09784, allocations: 80.14 kB / 495.5 MB, free: 5.945 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.35e-05/0.09786, allocations: 4 kB / 495.5 MB, free: 5.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-06/0.09786, allocations: 0 / 495.5 MB, free: 5.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.958e-05/0.09795, allocations: 314.8 kB / 495.8 MB, free: 5.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.422e-06/0.09796, allocations: 0 / 495.8 MB, free: 5.625 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.897e-06/0.09797, allocations: 0 / 495.8 MB, free: 5.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.079e-05/0.09801, allocations: 68.31 kB / 495.9 MB, free: 5.543 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.09802, allocations: 0 / 495.9 MB, free: 5.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.867e-05/0.09808, allocations: 63.34 kB / 496 MB, free: 5.469 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.09812, allocations: 41.23 kB / 496 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.09813, allocations: 4 kB / 496 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.953e-06/0.09814, allocations: 0 / 496 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.475e-06/0.09814, allocations: 3.984 kB / 496 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.09815, allocations: 0 / 496 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.365e-05/0.09817, allocations: 0 / 496 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-06/0.09818, allocations: 0 / 496 MB, free: 5.418 MB / 378.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 6.66e-05/0.09825, allocations: 139.6 kB / 496.1 MB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-06/0.09827, allocations: 7.938 kB / 496.2 MB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.254e-06/0.09828, allocations: 3.125 kB / 496.2 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.09828, allocations: 0 / 496.2 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.09829, allocations: 3.938 kB / 496.2 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.0983, allocations: 7.984 kB / 496.2 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.486e-05/0.09838, allocations: 145.7 kB / 496.3 MB, free: 5.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.09839, allocations: 0 / 496.3 MB, free: 5.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.09839, allocations: 0 / 496.3 MB, free: 5.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.0984, allocations: 7.938 kB / 496.3 MB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-06/0.09841, allocations: 0 / 496.3 MB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.09842, allocations: 4 kB / 496.3 MB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.09842, allocations: 0 / 496.3 MB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.601e-05/0.0985, allocations: 90.77 kB / 496.4 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.39e-05/0.09854, allocations: 81.11 kB / 496.5 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.09856, allocations: 3.938 kB / 496.5 MB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.09857, allocations: 0 / 496.5 MB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.199e-05/0.09859, allocations: 8.031 kB / 496.5 MB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.0986, allocations: 3.938 kB / 496.5 MB, free: 4.812 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.182e-05/0.09863, allocations: 79.28 kB / 496.6 MB, free: 4.734 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.09863, allocations: 0 / 496.6 MB, free: 4.734 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003677/0.099, allocations: 124 kB / 496.7 MB, free: 4.613 MB / 378.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.0007008/0.09971, allocations: 298.9 kB / 497 MB, free: 4.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.216e-05/0.09979, allocations: 67.33 kB / 497.1 MB, free: 4.238 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.0998, allocations: 0 / 497.1 MB, free: 4.238 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.619e-05/0.09983, allocations: 55.41 kB / 497.1 MB, free: 4.172 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.09994, allocations: 3.938 kB / 497.1 MB, free: 4.168 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001306/0.1001, allocations: 108.5 kB / 497.2 MB, free: 4.031 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.1003, allocations: 0.6731 MB / 497.9 MB, free: 3.332 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.686e-06/0.1003, allocations: 11.44 kB / 497.9 MB, free: 3.32 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.1003, allocations: 0 / 497.9 MB, free: 3.32 MB / 378.7 MB Notification: Performance of Templates: time 0.00435/0.1046, allocations: 3.28 MB / 0.4894 GB, free: 36 kB / 378.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/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_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches