Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000934/0.000934, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000751/0.0007511, allocations: 95.78 kB / 299.9 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.307/0.307, allocations: 45.01 MB / 397 MB, free: 31.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002396/0.0002396, allocations: 8 kB / 470.8 MB, free: 7.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3147, allocations: 63.1 MB / 0.5214 GB, free: 38.36 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006838/0.3155, allocations: 234.7 kB / 0.5216 GB, free: 38.2 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003083/0.3186, allocations: 4.182 MB / 0.5257 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.173e-05/0.3186, allocations: 0 / 0.5257 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.588e-05/0.3186, allocations: 2.938 kB / 0.5257 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.3186, allocations: 0 / 0.5257 GB, free: 34.35 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/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.001128/0.3198, allocations: 472.7 kB / 0.5261 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.444e-05/0.3198, allocations: 2.562 kB / 0.5261 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.501e-05/0.3199, allocations: 0 / 0.5261 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.3199, allocations: 2.594 kB / 0.5261 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.605e-05/0.3199, allocations: 0 / 0.5261 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-06/0.3199, allocations: 0 / 0.5261 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009592/0.3209, allocations: 0.7105 MB / 0.5268 GB, free: 33.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.747e-06/0.3209, allocations: 0 / 0.5268 GB, free: 33.93 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.337e-05/0.3209, allocations: 32.52 kB / 0.5269 GB, free: 33.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.3215, allocations: 460.3 kB / 0.5273 GB, free: 33.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3215, allocations: 3.938 kB / 0.5273 GB, free: 33.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3216, allocations: 0 / 0.5273 GB, free: 33.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.3216, allocations: 0 / 0.5273 GB, free: 33.75 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.0003203/0.3219, allocations: 439.2 kB / 0.5277 GB, free: 33.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3219, allocations: 12.11 kB / 0.5277 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.65e-05/0.322, allocations: 0.9375 kB / 0.5277 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.708e-05/0.322, allocations: 160.4 kB / 0.5279 GB, free: 33.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.3221, allocations: 7.219 kB / 0.5279 GB, free: 33.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.848e-06/0.3221, allocations: 384 / 0.5279 GB, free: 33.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.884e-05/0.3222, allocations: 36.81 kB / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3222, allocations: 0 / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.3222, allocations: 0 / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3222, allocations: 3.938 kB / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.759e-05/0.3222, allocations: 6.375 kB / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.853e-05/0.3223, allocations: 145.7 kB / 0.5281 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.199e-05/0.3223, allocations: 25.55 kB / 0.5281 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.136e-05/0.3224, allocations: 4.859 kB / 0.5281 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/0.3224, allocations: 0 / 0.5281 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.3224, allocations: 70.42 kB / 0.5282 GB, free: 32.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3224, allocations: 0 / 0.5282 GB, free: 32.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001513/0.3226, allocations: 67.84 kB / 0.5282 GB, free: 32.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.3226, allocations: 77.11 kB / 0.5283 GB, free: 32.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.004e-05/0.3226, allocations: 97.17 kB / 0.5284 GB, free: 32.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-06/0.3227, allocations: 25.7 kB / 0.5284 GB, free: 32.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.045e-05/0.3227, allocations: 80.14 kB / 0.5285 GB, free: 32.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.3227, allocations: 2.969 kB / 0.5285 GB, free: 32.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.883e-06/0.3227, allocations: 0 / 0.5285 GB, free: 32.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.553e-05/0.3227, allocations: 310.8 kB / 0.5288 GB, free: 32.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-06/0.3228, allocations: 0 / 0.5288 GB, free: 32.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.689e-06/0.3228, allocations: 2.969 kB / 0.5288 GB, free: 32.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.229e-05/0.3228, allocations: 67.33 kB / 0.5289 GB, free: 31.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3228, allocations: 0 / 0.5289 GB, free: 31.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.783e-05/0.3229, allocations: 64.48 kB / 0.5289 GB, free: 31.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3229, allocations: 35.2 kB / 0.529 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3229, allocations: 0 / 0.529 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3229, allocations: 2.969 kB / 0.529 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.3229, allocations: 0 / 0.529 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3229, allocations: 0 / 0.529 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.323, allocations: 0 / 0.529 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.323, allocations: 0 / 0.529 GB, free: 31.89 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.885e-05/0.323, allocations: 142.4 kB / 0.5291 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.313e-06/0.323, allocations: 7 kB / 0.5291 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.428e-06/0.3231, allocations: 10.7 kB / 0.5291 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3231, allocations: 4 kB / 0.5291 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3231, allocations: 0 / 0.5291 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.3231, allocations: 0 / 0.5291 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.986e-05/0.3231, allocations: 152.2 kB / 0.5293 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3231, allocations: 0 / 0.5293 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-07/0.3231, allocations: 0 / 0.5293 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3231, allocations: 7.938 kB / 0.5293 GB, free: 31.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.3232, allocations: 0 / 0.5293 GB, free: 31.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.3232, allocations: 0 / 0.5293 GB, free: 31.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3232, allocations: 3.125 kB / 0.5293 GB, free: 31.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.258e-05/0.3232, allocations: 90.67 kB / 0.5294 GB, free: 31.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.487e-05/0.3233, allocations: 87.8 kB / 0.5295 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.3233, allocations: 3.938 kB / 0.5295 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-06/0.3233, allocations: 0 / 0.5295 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.375e-05/0.3233, allocations: 4.031 kB / 0.5295 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.3233, allocations: 6.141 kB / 0.5295 GB, free: 31.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.154e-05/0.3233, allocations: 75.28 kB / 0.5295 GB, free: 31.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3233, allocations: 0 / 0.5295 GB, free: 31.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003711/0.3237, allocations: 154 kB / 0.5297 GB, free: 31.2 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.0006647/0.3244, allocations: 346.4 kB / 0.53 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.105e-05/0.3245, allocations: 57.34 kB / 0.5301 GB, free: 30.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3245, allocations: 0 / 0.5301 GB, free: 30.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.789e-05/0.3245, allocations: 54.28 kB / 0.5301 GB, free: 30.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001065/0.3246, allocations: 18.09 kB / 0.5301 GB, free: 30.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001377/0.3247, allocations: 84.2 kB / 0.5302 GB, free: 30.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.523e-05/0.3248, allocations: 0.6733 MB / 0.5309 GB, free: 30.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.3249, allocations: 0 / 0.5309 GB, free: 30.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.6e-06/0.3249, allocations: 10.25 kB / 0.5309 GB, free: 30.09 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3249, allocations: 0 / 0.5309 GB, free: 30.09 MB / 378.7 MB Notification: Performance of Templates: time 0.00572/0.3306, allocations: 3.577 MB / 0.5344 GB, free: 29.77 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches