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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 105.1 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 193.3 kB / 18.25 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.9 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2212/0.2212, allocations: 44.18 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.19 kB / 407.9 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.109, allocations: 60.82 MB / 468.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001794/0.1108, allocations: 0.5552 MB / 469.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.1135, allocations: 1.999 MB / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.279e-05/0.1135, allocations: 0 / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.883e-05/0.1135, allocations: 0 / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.1136, allocations: 0 / 471.3 MB, free: 12.16 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function ‘ModelicaTest.Math.Random.special‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.1149, allocations: 457.2 kB / 471.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.273e-05/0.1149, allocations: 0 / 471.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.967e-05/0.115, allocations: 0 / 471.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.482e-05/0.115, allocations: 4 kB / 471.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.659e-05/0.115, allocations: 0 / 471.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-06/0.115, allocations: 0 / 471.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009343/0.116, allocations: 0.6706 MB / 472.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.555e-06/0.116, allocations: 0 / 472.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.175e-05/0.116, allocations: 4 kB / 472.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005143/0.1165, allocations: 399.3 kB / 472.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1165, allocations: 7.938 kB / 472.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1165, allocations: 0 / 472.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.1166, allocations: 0 / 472.8 MB, free: 10.64 MB / 350.1 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.0004337/0.117, allocations: 405.3 kB / 473.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.117, allocations: 15.97 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.1171, allocations: 0.9375 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.895e-05/0.1172, allocations: 160.4 kB / 473.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.1172, allocations: 4.359 kB / 473.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-06/0.1172, allocations: 384 / 473.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.886e-05/0.1173, allocations: 42 kB / 473.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.32e-06/0.1173, allocations: 0 / 473.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.1173, allocations: 0 / 473.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1173, allocations: 0 / 473.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.901e-05/0.1173, allocations: 7.938 kB / 473.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.1175, allocations: 145.7 kB / 473.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.281e-05/0.1175, allocations: 14.58 kB / 473.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.533e-05/0.1175, allocations: 8.953 kB / 473.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.1175, allocations: 7.984 kB / 473.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.607e-05/0.1176, allocations: 60.2 kB / 473.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1176, allocations: 0 / 473.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001438/0.1177, allocations: 67.34 kB / 473.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1178, allocations: 77.11 kB / 473.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.268e-05/0.1178, allocations: 89.86 kB / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.1179, allocations: 33.69 kB / 473.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.234e-05/0.1179, allocations: 80.27 kB / 474 MB, free: 9.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.1179, allocations: 4 kB / 474 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.1179, allocations: 13.72 kB / 474 MB, free: 9.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.118, allocations: 314.8 kB / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.757e-06/0.1181, allocations: 0 / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.14e-06/0.1181, allocations: 0 / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.434e-05/0.1181, allocations: 60.27 kB / 474.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1181, allocations: 0 / 474.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.752e-05/0.1182, allocations: 71.39 kB / 474.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.1182, allocations: 37.64 kB / 474.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.1183, allocations: 0 / 474.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.596e-06/0.1183, allocations: 0 / 474.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1183, allocations: 0 / 474.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1183, allocations: 4 kB / 474.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.313e-05/0.1183, allocations: 0 / 474.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-06/0.1183, allocations: 3.984 kB / 474.5 MB, free: 8.68 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.096e-05/0.1184, allocations: 143.5 kB / 474.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.287e-06/0.1184, allocations: 7.969 kB / 474.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.061e-05/0.1184, allocations: 11.02 kB / 474.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1184, allocations: 0 / 474.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1184, allocations: 4 kB / 474.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.1184, allocations: 0 / 474.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.738e-05/0.1185, allocations: 145.7 kB / 474.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1185, allocations: 0 / 474.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.763e-06/0.1186, allocations: 3.984 kB / 474.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1186, allocations: 3.938 kB / 474.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.1186, allocations: 0 / 474.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1186, allocations: 0 / 474.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1186, allocations: 4 kB / 474.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.1187, allocations: 98.67 kB / 474.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.096e-05/0.1188, allocations: 77.11 kB / 475 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.1188, allocations: 7.938 kB / 475 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-06/0.1188, allocations: 4 kB / 475 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.467e-06/0.1188, allocations: 0 / 475 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.1188, allocations: 3.984 kB / 475 MB, free: 8.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.555e-05/0.1188, allocations: 79.31 kB / 475.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1188, allocations: 0 / 475.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000371/0.1192, allocations: 124 kB / 475.2 MB, free: 7.867 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007636/0.12, allocations: 298 kB / 475.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.544e-05/0.1201, allocations: 67.34 kB / 475.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1201, allocations: 0 / 475.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.142e-05/0.1201, allocations: 63.33 kB / 475.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.1203, allocations: 0 / 475.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001469/0.1204, allocations: 72.94 kB / 475.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.1207, allocations: 0.673 MB / 476.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.5e-06/0.1207, allocations: 0 / 476.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.256e-05/0.1207, allocations: 11.44 kB / 476.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1207, allocations: 3.938 kB / 476.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of Templates: time 0.006572/0.1273, allocations: 3.38 MB / 479.7 MB, free: 3.23 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches