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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 110.5 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3196/0.3196, allocations: 44.13 MB / 386.1 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 59.91 kB / 457.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3151, allocations: 60.8 MB / 0.5064 GB, free: 38.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001713/0.3169, allocations: 0.5612 MB / 0.5069 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.3196, allocations: 2.386 MB / 0.5093 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.253e-05/0.3196, allocations: 1.062 kB / 0.5093 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.013e-05/0.3196, allocations: 4 kB / 0.5093 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.3197, allocations: 3.938 kB / 0.5093 GB, free: 36.2 MB / 378.7 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.001119/0.3208, allocations: 459.1 kB / 0.5097 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.04e-05/0.3208, allocations: 3.984 kB / 0.5097 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.001e-05/0.3209, allocations: 10.33 kB / 0.5097 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.3209, allocations: 0 / 0.5097 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.491e-05/0.3209, allocations: 0 / 0.5097 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.401e-06/0.3209, allocations: 4 kB / 0.5097 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008466/0.3218, allocations: 0.7154 MB / 0.5104 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.3218, allocations: 3 kB / 0.5104 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.3218, allocations: 7.984 kB / 0.5104 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000544/0.3224, allocations: 458.3 kB / 0.5109 GB, free: 35.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3224, allocations: 0 / 0.5109 GB, free: 35.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.3224, allocations: 0 / 0.5109 GB, free: 35.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.3224, allocations: 0 / 0.5109 GB, free: 35.64 MB / 378.7 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.0003663/0.3228, allocations: 439.6 kB / 0.5113 GB, free: 35.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.3228, allocations: 15.31 kB / 0.5113 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.3228, allocations: 0.9375 kB / 0.5113 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.345e-05/0.3229, allocations: 163.6 kB / 0.5115 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.316e-06/0.3229, allocations: 384 / 0.5115 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-06/0.3229, allocations: 384 / 0.5115 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.695e-05/0.323, allocations: 36.83 kB / 0.5115 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.323, allocations: 0 / 0.5115 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.323, allocations: 2.75 kB / 0.5115 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.323, allocations: 0 / 0.5115 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.497e-05/0.3231, allocations: 0 / 0.5115 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.16e-05/0.3232, allocations: 151.7 kB / 0.5117 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.869e-05/0.3232, allocations: 22.56 kB / 0.5117 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.159e-05/0.3232, allocations: 7.734 kB / 0.5117 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.973e-06/0.3232, allocations: 0 / 0.5117 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.3233, allocations: 67.23 kB / 0.5117 GB, free: 34.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3233, allocations: 0 / 0.5117 GB, free: 34.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001336/0.3234, allocations: 67.94 kB / 0.5118 GB, free: 34.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.3234, allocations: 83.95 kB / 0.5119 GB, free: 34.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.149e-05/0.3235, allocations: 93.09 kB / 0.512 GB, free: 34.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.442e-06/0.3235, allocations: 25.7 kB / 0.512 GB, free: 34.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.838e-06/0.3235, allocations: 80.14 kB / 0.5121 GB, free: 34.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.307e-05/0.3235, allocations: 0 / 0.5121 GB, free: 34.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.3235, allocations: 12.59 kB / 0.5121 GB, free: 34.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.35e-05/0.3236, allocations: 310.8 kB / 0.5124 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-06/0.3236, allocations: 7.031 kB / 0.5124 GB, free: 33.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.99e-06/0.3236, allocations: 0 / 0.5124 GB, free: 33.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.17e-05/0.3236, allocations: 70.22 kB / 0.5125 GB, free: 33.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3237, allocations: 0 / 0.5125 GB, free: 33.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.599e-05/0.3237, allocations: 59.97 kB / 0.5125 GB, free: 33.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.3237, allocations: 35.45 kB / 0.5126 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3237, allocations: 3.938 kB / 0.5126 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3238, allocations: 3.328 kB / 0.5126 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.3238, allocations: 0 / 0.5126 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3238, allocations: 4.094 kB / 0.5126 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.3238, allocations: 0 / 0.5126 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.3238, allocations: 2.906 kB / 0.5126 GB, free: 33.75 MB / 378.7 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 4.958e-05/0.3239, allocations: 135.2 kB / 0.5127 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-06/0.3239, allocations: 7.938 kB / 0.5127 GB, free: 33.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-06/0.3239, allocations: 6.719 kB / 0.5127 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.82e-07/0.3239, allocations: 0 / 0.5127 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3239, allocations: 0 / 0.5127 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3239, allocations: 3.281 kB / 0.5127 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.665e-05/0.324, allocations: 152.6 kB / 0.5129 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.324, allocations: 0 / 0.5129 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.324, allocations: 0 / 0.5129 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.324, allocations: 3.938 kB / 0.5129 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.324, allocations: 6.875 kB / 0.5129 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.324, allocations: 3.234 kB / 0.5129 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.324, allocations: 0 / 0.5129 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001763/0.3242, allocations: 0.6355 MB / 0.5135 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.426e-05/0.3242, allocations: 80.48 kB / 0.5136 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.3242, allocations: 6.938 kB / 0.5136 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.3242, allocations: 0 / 0.5136 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.251e-05/0.3242, allocations: 0 / 0.5136 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.3243, allocations: 2.906 kB / 0.5136 GB, free: 32.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.151e-05/0.3243, allocations: 75.28 kB / 0.5136 GB, free: 32.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3243, allocations: 0 / 0.5136 GB, free: 32.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004912/0.3248, allocations: 159.2 kB / 0.5138 GB, free: 32.49 MB / 378.7 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.0006595/0.3254, allocations: 340.1 kB / 0.5141 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.7e-05/0.3255, allocations: 62.94 kB / 0.5142 GB, free: 32.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3255, allocations: 0 / 0.5142 GB, free: 32.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.918e-05/0.3255, allocations: 65.06 kB / 0.5142 GB, free: 32.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.3257, allocations: 6.438 kB / 0.5143 GB, free: 32.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001846/0.3259, allocations: 172.9 kB / 0.5144 GB, free: 31.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.235e-05/0.326, allocations: 0.6726 MB / 0.5151 GB, free: 31.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.326, allocations: 2.531 kB / 0.5151 GB, free: 31.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.562e-06/0.326, allocations: 11.38 kB / 0.5151 GB, free: 31.28 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.326, allocations: 0 / 0.5151 GB, free: 31.28 MB / 378.7 MB Notification: Performance of Templates: time 0.005585/0.3316, allocations: 3.518 MB / 0.5185 GB, free: 30.96 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches