Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 104.1 kB / 18.45 MB, free: 4.625 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.001282/0.001282, allocations: 184.2 kB / 19.37 MB, free: 3.707 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.295/1.295, allocations: 222.9 MB / 243.1 MB, free: 15.15 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.1967/0.1967, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 59.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3144, allocations: 60.82 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001484/0.316, allocations: 0.5018 MB / 0.52 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.3184, allocations: 2.04 MB / 0.522 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.508e-05/0.3184, allocations: 0 / 0.522 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.3184, allocations: 3.938 kB / 0.522 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.64e-06/0.3185, allocations: 0 / 0.522 GB, free: 1.867 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001517/0.32, allocations: 0.5053 MB / 0.5225 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.225e-05/0.32, allocations: 1.156 kB / 0.5225 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.28e-05/0.3201, allocations: 1.969 kB / 0.5225 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.613e-05/0.3201, allocations: 1.156 kB / 0.5225 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.72e-05/0.3201, allocations: 1.125 kB / 0.5225 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.173e-06/0.3201, allocations: 0 / 0.5225 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.3213, allocations: 0.6057 MB / 0.5231 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-06/0.3213, allocations: 6.578 kB / 0.5231 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.996e-05/0.3214, allocations: 0 / 0.5231 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006312/0.322, allocations: 388.3 kB / 0.5235 GB, free: 1.355 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.322, allocations: 0 / 0.5235 GB, free: 1.355 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.322, allocations: 0 / 0.5235 GB, free: 1.355 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.322, allocations: 0 / 0.5235 GB, free: 1.355 MB / 382.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.0003567/0.3224, allocations: 416.1 kB / 0.5239 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3224, allocations: 8.75 kB / 0.5239 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.3225, allocations: 6.312 kB / 0.5239 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.305e-05/0.3225, allocations: 161.9 kB / 0.5241 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.3225, allocations: 384 / 0.5241 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-06/0.3226, allocations: 1.844 kB / 0.5241 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.519e-05/0.3226, allocations: 32.78 kB / 0.5241 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.3226, allocations: 1.469 kB / 0.5241 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.3227, allocations: 0 / 0.5241 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3227, allocations: 4 kB / 0.5241 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.749e-05/0.3227, allocations: 6.078 kB / 0.5241 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.251e-05/0.3228, allocations: 148.6 kB / 0.5243 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.322e-05/0.3228, allocations: 18.05 kB / 0.5243 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.337e-05/0.3228, allocations: 5.656 kB / 0.5243 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.3229, allocations: 1.469 kB / 0.5243 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.3229, allocations: 66.27 kB / 0.5243 GB, free: 400 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3229, allocations: 0 / 0.5243 GB, free: 400 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001457/0.323, allocations: 68.56 kB / 0.5244 GB, free: 328 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.3231, allocations: 79.12 kB / 0.5245 GB, free: 232 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.957e-05/0.3231, allocations: 90.42 kB / 0.5246 GB, free: 132 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-06/0.3231, allocations: 25.7 kB / 0.5246 GB, free: 100 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.718e-06/0.3231, allocations: 84.08 kB / 0.5247 GB, free: 12 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.3232, allocations: 1.469 kB / 0.5247 GB, free: 12 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.3232, allocations: 12 kB / 0.5247 GB, free: 16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.3233, allocations: 320.7 kB / 0.525 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.788e-06/0.3234, allocations: 1.344 kB / 0.525 GB, free: 15.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.851e-06/0.3234, allocations: 1.703 kB / 0.525 GB, free: 15.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.476e-05/0.3234, allocations: 60.28 kB / 0.5251 GB, free: 15.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3234, allocations: 0 / 0.5251 GB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.382e-05/0.3235, allocations: 64.69 kB / 0.5251 GB, free: 15.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.3235, allocations: 38.58 kB / 0.5252 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.3235, allocations: 4.094 kB / 0.5252 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.3236, allocations: 1.156 kB / 0.5252 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.353e-06/0.3236, allocations: 0.5156 kB / 0.5252 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.3236, allocations: 0 / 0.5252 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.437e-05/0.3236, allocations: 1.156 kB / 0.5252 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.3236, allocations: 5.781 kB / 0.5252 GB, free: 15.5 MB / 398.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.439e-05/0.3237, allocations: 134.8 kB / 0.5253 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-06/0.3237, allocations: 8.625 kB / 0.5253 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.038e-05/0.3237, allocations: 8.625 kB / 0.5253 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3237, allocations: 4 kB / 0.5253 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3237, allocations: 1.188 kB / 0.5253 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3238, allocations: 0.8438 kB / 0.5253 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.825e-05/0.3239, allocations: 145.1 kB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3239, allocations: 0.6562 kB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-06/0.3239, allocations: 4 kB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3239, allocations: 5.062 kB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.3239, allocations: 0.7969 kB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3239, allocations: 1.031 kB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3239, allocations: 0 / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.324, allocations: 96.92 kB / 0.5256 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.3241, allocations: 79.39 kB / 0.5256 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.3241, allocations: 5.062 kB / 0.5256 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.548e-06/0.3241, allocations: 0.8438 kB / 0.5256 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.064e-05/0.3241, allocations: 1.25 kB / 0.5256 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.3241, allocations: 5.219 kB / 0.5256 GB, free: 14.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.492e-05/0.3241, allocations: 75.28 kB / 0.5257 GB, free: 14.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3242, allocations: 4.031 kB / 0.5257 GB, free: 14.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004687/0.3246, allocations: 125.1 kB / 0.5258 GB, free: 14.82 MB / 398.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.0006954/0.3253, allocations: 305 kB / 0.5261 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.3254, allocations: 63.06 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3255, allocations: 8 kB / 0.5262 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.222e-05/0.3255, allocations: 55.67 kB / 0.5263 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.3256, allocations: 1.438 kB / 0.5263 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002442/0.3259, allocations: 107.7 kB / 0.5264 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.3261, allocations: 0.6754 MB / 0.527 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.073e-05/0.3261, allocations: 8.844 kB / 0.527 GB, free: 13.7 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3261, allocations: 0 / 0.527 GB, free: 13.7 MB / 398.1 MB Notification: Performance of Templates: time 0.006226/0.3324, allocations: 3.239 MB / 0.5302 GB, free: 12.32 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches