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.0008918/0.0008915, allocations: 97.2 kB / 18.01 MB, free: 5.602 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.00106/0.00106, allocations: 177.6 kB / 18.91 MB, free: 4.738 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.363/1.363, allocations: 223.3 MB / 243 MB, free: 14.29 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.2059/0.2059, allocations: 44.25 MB / 338.3 MB, free: 2.488 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003063, allocations: 8 kB / 411 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1113, allocations: 61.93 MB / 472.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006724/0.112, allocations: 235 kB / 473.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.1149, allocations: 2.033 MB / 475.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.265e-05/0.1149, allocations: 0 / 475.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.293e-05/0.1149, allocations: 3.938 kB / 475.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.189e-06/0.1149, allocations: 0 / 475.2 MB, free: 11.04 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.001377/0.1163, allocations: 401.3 kB / 475.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.085e-05/0.1164, allocations: 7.938 kB / 475.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.1164, allocations: 8 kB / 475.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.1164, allocations: 4 kB / 475.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.923e-05/0.1164, allocations: 0 / 475.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-06/0.1165, allocations: 0 / 475.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.1175, allocations: 0.6667 MB / 476.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.666e-06/0.1176, allocations: 0 / 476.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.358e-05/0.1176, allocations: 29.7 kB / 476.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004302/0.118, allocations: 255.5 kB / 476.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.118, allocations: 0 / 476.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1181, allocations: 4 kB / 476.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1181, allocations: 0 / 476.5 MB, free: 9.672 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.0004623/0.1185, allocations: 404.3 kB / 476.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1186, allocations: 8.031 kB / 476.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.1186, allocations: 4.938 kB / 476.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.735e-05/0.1187, allocations: 164.3 kB / 477.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1187, allocations: 384 / 477.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-06/0.1187, allocations: 4.312 kB / 477.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.52e-05/0.1188, allocations: 38.02 kB / 477.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1188, allocations: 3.984 kB / 477.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1189, allocations: 0 / 477.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1189, allocations: 0 / 477.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.793e-05/0.1189, allocations: 0 / 477.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001259/0.119, allocations: 153.6 kB / 477.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.787e-05/0.1191, allocations: 18.58 kB / 477.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.42e-05/0.1191, allocations: 8.797 kB / 477.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-06/0.1191, allocations: 8.094 kB / 477.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.1191, allocations: 60.2 kB / 477.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.1192, allocations: 0 / 477.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001859/0.1193, allocations: 63.39 kB / 477.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1194, allocations: 77.11 kB / 477.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.955e-05/0.1194, allocations: 93.86 kB / 477.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.1195, allocations: 25.7 kB / 477.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.244e-05/0.1195, allocations: 80.27 kB / 477.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.1195, allocations: 8 kB / 477.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.1195, allocations: 9.719 kB / 477.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.1196, allocations: 310.8 kB / 478.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-06/0.1197, allocations: 3.938 kB / 478.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.1197, allocations: 3.984 kB / 478.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.643e-05/0.1197, allocations: 60.27 kB / 478.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1197, allocations: 0 / 478.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.999e-05/0.1198, allocations: 67.47 kB / 478.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.1198, allocations: 41.58 kB / 478.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.1199, allocations: 3.984 kB / 478.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.1199, allocations: 0 / 478.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.343e-06/0.1199, allocations: 0 / 478.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1199, allocations: 0 / 478.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.1199, allocations: 0 / 478.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1199, allocations: 0 / 478.2 MB, free: 7.715 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.318e-05/0.12, allocations: 139.5 kB / 478.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-06/0.12, allocations: 3.938 kB / 478.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.104e-05/0.12, allocations: 11.11 kB / 478.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.12, allocations: 0 / 478.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1201, allocations: 0 / 478.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1201, allocations: 4 kB / 478.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.6e-05/0.1202, allocations: 149.7 kB / 478.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1202, allocations: 0 / 478.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-07/0.1202, allocations: 0 / 478.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.029e-05/0.1202, allocations: 3.938 kB / 478.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-06/0.1202, allocations: 3.938 kB / 478.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1202, allocations: 8 kB / 478.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1202, allocations: 4 kB / 478.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.875e-05/0.1203, allocations: 94.73 kB / 478.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.1203, allocations: 77.11 kB / 478.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.1204, allocations: 3.938 kB / 478.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-06/0.1204, allocations: 0 / 478.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.157e-06/0.1204, allocations: 0 / 478.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1204, allocations: 7.984 kB / 478.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.718e-05/0.1204, allocations: 83.25 kB / 478.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1204, allocations: 0 / 478.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004055/0.1208, allocations: 120 kB / 478.9 MB, free: 6.906 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.0008059/0.1217, allocations: 304.8 kB / 479.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.878e-05/0.1217, allocations: 59.39 kB / 479.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1218, allocations: 3.938 kB / 479.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.215e-05/0.1218, allocations: 55.41 kB / 479.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.1219, allocations: 3.234 kB / 479.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001848/0.1221, allocations: 112.4 kB / 479.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.1223, allocations: 0.6694 MB / 480.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.1224, allocations: 15.44 kB / 480.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1224, allocations: 0 / 480.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of Templates: time 0.005929/0.1283, allocations: 3.28 MB / 483.4 MB, free: 2.328 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/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