Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009772/0.0009771, allocations: 90.98 kB / 18 MB, free: 5.734 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.001086/0.001086, allocations: 177.6 kB / 18.91 MB, free: 4.871 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.352/1.352, allocations: 223.3 MB / 243 MB, free: 4 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1934/0.1934, allocations: 44.25 MB / 338.3 MB, free: 2.613 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003454, allocations: 12.75 kB / 411 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1115, allocations: 61.93 MB / 472.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006462/0.1122, allocations: 230.9 kB / 473.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00344/0.1157, allocations: 2.341 MB / 475.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.001e-05/0.1157, allocations: 3.938 kB / 475.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.186e-05/0.1157, allocations: 4 kB / 475.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.559e-06/0.1157, allocations: 0 / 475.5 MB, free: 10.73 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001536/0.1173, allocations: 466.8 kB / 476 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.303e-05/0.1173, allocations: 4 kB / 476 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.964e-05/0.1174, allocations: 0 / 476 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.052e-05/0.1174, allocations: 0 / 476 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.018e-05/0.1175, allocations: 0 / 476 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-06/0.1175, allocations: 0 / 476 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001281/0.1188, allocations: 0.7252 MB / 476.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.865e-06/0.1188, allocations: 0 / 476.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.163e-05/0.1188, allocations: 25.7 kB / 476.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005517/0.1194, allocations: 299.7 kB / 477 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1194, allocations: 0 / 477 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1194, allocations: 0 / 477 MB, free: 9.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.1194, allocations: 4 kB / 477 MB, free: 9.215 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.0004879/0.1199, allocations: 429.2 kB / 477.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.12, allocations: 12.03 kB / 477.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.12, allocations: 4.938 kB / 477.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.693e-05/0.1201, allocations: 164.3 kB / 477.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.1201, allocations: 384 / 477.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.1201, allocations: 384 / 477.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.939e-05/0.1202, allocations: 34.02 kB / 477.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.1202, allocations: 0 / 477.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.1203, allocations: 0 / 477.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.1203, allocations: 0 / 477.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.087e-05/0.1203, allocations: 7.984 kB / 477.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001284/0.1204, allocations: 149.7 kB / 477.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.859e-05/0.1205, allocations: 18.52 kB / 477.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.86e-05/0.1205, allocations: 8.953 kB / 477.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.139e-06/0.1205, allocations: 0 / 477.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.1206, allocations: 60.2 kB / 477.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1206, allocations: 0 / 477.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.1207, allocations: 71.5 kB / 477.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.1208, allocations: 81.11 kB / 478 MB, free: 7.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.104e-05/0.1209, allocations: 93.86 kB / 478.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.1209, allocations: 33.58 kB / 478.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.418e-05/0.1209, allocations: 80.14 kB / 478.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.1209, allocations: 0 / 478.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.361e-05/0.121, allocations: 9.719 kB / 478.2 MB, free: 7.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1211, allocations: 314.8 kB / 478.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.876e-06/0.1211, allocations: 0 / 478.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.624e-06/0.1211, allocations: 8 kB / 478.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.298e-05/0.1212, allocations: 64.27 kB / 478.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1212, allocations: 0 / 478.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.104e-05/0.1212, allocations: 55.41 kB / 478.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.821e-05/0.1213, allocations: 41.62 kB / 478.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1213, allocations: 0 / 478.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1213, allocations: 0 / 478.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.037e-06/0.1213, allocations: 3.938 kB / 478.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1213, allocations: 3.938 kB / 478.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.689e-05/0.1214, allocations: 4.094 kB / 478.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.1214, allocations: 4 kB / 478.7 MB, free: 7.223 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 9.237e-05/0.1215, allocations: 136.1 kB / 478.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-06/0.1215, allocations: 3.938 kB / 478.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.1215, allocations: 11.08 kB / 478.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1215, allocations: 0 / 478.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1215, allocations: 0 / 478.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1215, allocations: 3.984 kB / 478.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.7e-05/0.1216, allocations: 145.6 kB / 479 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1217, allocations: 8 kB / 479 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.1217, allocations: 0 / 479 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1217, allocations: 11.92 kB / 479 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.1217, allocations: 0 / 479 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1217, allocations: 0 / 479 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1217, allocations: 0 / 479 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.1218, allocations: 90.83 kB / 479.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.1218, allocations: 77.11 kB / 479.2 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.1219, allocations: 11.91 kB / 479.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-06/0.1219, allocations: 0 / 479.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.685e-05/0.1219, allocations: 7.984 kB / 479.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.1219, allocations: 0 / 479.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.734e-05/0.1219, allocations: 75.28 kB / 479.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1219, allocations: 0 / 479.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004786/0.1224, allocations: 155.9 kB / 479.4 MB, free: 6.391 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.0009021/0.1233, allocations: 345.5 kB / 479.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.692e-05/0.1234, allocations: 59.41 kB / 479.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1234, allocations: 0 / 479.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.309e-05/0.1235, allocations: 51.41 kB / 479.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.1236, allocations: 4 kB / 479.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001888/0.1238, allocations: 112.6 kB / 480 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.124, allocations: 0.6731 MB / 480.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.216e-05/0.1241, allocations: 7.438 kB / 480.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1241, allocations: 0 / 480.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of Templates: time 0.006224/0.1303, allocations: 3.284 MB / 484 MB, free: 1.777 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches