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.001168/0.001169, allocations: 112.6 kB / 17.98 MB, free: 4.887 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.001188/0.001188, allocations: 189.3 kB / 18.9 MB, free: 4.141 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.369/1.369, allocations: 222.9 MB / 242.6 MB, free: 13.71 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.2179/0.2179, allocations: 44.17 MB / 336.9 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 64.67 kB / 408.6 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1031, allocations: 60.83 MB / 469.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001817/0.105, allocations: 0.5529 MB / 469.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002735/0.1077, allocations: 1.995 MB / 471.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.308e-05/0.1078, allocations: 0 / 471.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.906e-05/0.1078, allocations: 0 / 471.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.1078, allocations: 0 / 471.9 MB, free: 12.13 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.00137/0.1092, allocations: 458.3 kB / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.149e-05/0.1093, allocations: 0 / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.378e-05/0.1093, allocations: 8 kB / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.555e-05/0.1093, allocations: 0 / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.785e-05/0.1094, allocations: 0 / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.244e-06/0.1094, allocations: 0 / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009562/0.1103, allocations: 0.6667 MB / 473 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.194e-06/0.1103, allocations: 0 / 473 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.119e-05/0.1104, allocations: 4 kB / 473.1 MB, free: 11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003391/0.1107, allocations: 251.5 kB / 473.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1107, allocations: 0 / 473.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1107, allocations: 3.938 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1107, allocations: 0 / 473.3 MB, free: 10.75 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.000447/0.1112, allocations: 405.5 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1112, allocations: 12.03 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.1113, allocations: 0.9375 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.575e-05/0.1114, allocations: 172.3 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1114, allocations: 384 / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.1114, allocations: 384 / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.554e-05/0.1115, allocations: 34.02 kB / 473.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1115, allocations: 3.938 kB / 473.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.1116, allocations: 3.938 kB / 473.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1116, allocations: 3.984 kB / 473.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.93e-05/0.1116, allocations: 4 kB / 473.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/0.1117, allocations: 141.7 kB / 474.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.835e-05/0.1118, allocations: 18.58 kB / 474.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.124e-05/0.1118, allocations: 12.95 kB / 474.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.1118, allocations: 0 / 474.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/0.1119, allocations: 64.19 kB / 474.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1119, allocations: 0 / 474.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001735/0.1121, allocations: 67.33 kB / 474.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.1121, allocations: 81.23 kB / 474.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.949e-05/0.1122, allocations: 89.86 kB / 474.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.1122, allocations: 29.7 kB / 474.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.238e-05/0.1122, allocations: 84.14 kB / 474.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.1123, allocations: 0 / 474.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.1123, allocations: 13.7 kB / 474.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1124, allocations: 314.8 kB / 474.8 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-06/0.1124, allocations: 0 / 474.8 MB, free: 8.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.983e-06/0.1124, allocations: 4 kB / 474.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.61e-05/0.1125, allocations: 64.2 kB / 474.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1125, allocations: 0 / 474.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.524e-05/0.1126, allocations: 67.39 kB / 475 MB, free: 8.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.1126, allocations: 33.64 kB / 475 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1126, allocations: 0 / 475 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.1126, allocations: 0 / 475 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1126, allocations: 0 / 475 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.1126, allocations: 4 kB / 475 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.54e-05/0.1127, allocations: 8.094 kB / 475 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.1127, allocations: 0 / 475 MB, free: 8.781 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 7.491e-05/0.1128, allocations: 131.5 kB / 475.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-06/0.1128, allocations: 7.938 kB / 475.1 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.1128, allocations: 11.06 kB / 475.1 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1128, allocations: 3.938 kB / 475.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1128, allocations: 0 / 475.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1128, allocations: 0 / 475.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.673e-05/0.1129, allocations: 153.6 kB / 475.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1129, allocations: 0 / 475.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1129, allocations: 4 kB / 475.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1129, allocations: 3.938 kB / 475.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-06/0.113, allocations: 0 / 475.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.113, allocations: 3.938 kB / 475.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.113, allocations: 3.984 kB / 475.3 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.728e-05/0.1131, allocations: 90.75 kB / 475.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.347e-05/0.1131, allocations: 77.11 kB / 475.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.1131, allocations: 15.95 kB / 475.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.1131, allocations: 0 / 475.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.088e-05/0.1132, allocations: 0 / 475.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.1132, allocations: 0 / 475.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.026e-05/0.1132, allocations: 75.28 kB / 475.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1132, allocations: 0 / 475.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.1136, allocations: 120 kB / 475.7 MB, free: 7.984 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.0007574/0.1144, allocations: 309.2 kB / 476 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001061/0.1145, allocations: 63.34 kB / 476.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1145, allocations: 0 / 476.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.182e-05/0.1145, allocations: 55.41 kB / 476.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.1146, allocations: 6.469 kB / 476.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001891/0.1148, allocations: 114.6 kB / 476.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.1151, allocations: 0.669 MB / 476.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.415e-05/0.1151, allocations: 15.38 kB / 476.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1151, allocations: 0 / 476.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of Templates: time 0.006078/0.1212, allocations: 3.292 MB / 480.2 MB, free: 3.383 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