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.001596/0.001596, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001886/0.001886, allocations: 194 kB / 18.12 MB, free: 5.383 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.444/1.444, allocations: 222.9 MB / 241.8 MB, free: 13.81 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.2172/0.2172, allocations: 44.18 MB / 336.1 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 61.25 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.133, allocations: 60.83 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002111/0.1352, allocations: 0.5565 MB / 469.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003695/0.1389, allocations: 2.384 MB / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.161e-05/0.1389, allocations: 0 / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.083e-05/0.1389, allocations: 0 / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.139, allocations: 0 / 471.5 MB, free: 11.87 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.001348/0.1403, allocations: 466 kB / 471.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.759e-05/0.1404, allocations: 4 kB / 471.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.477e-05/0.1404, allocations: 7.938 kB / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.764e-05/0.1404, allocations: 0 / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.808e-05/0.1405, allocations: 4 kB / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-06/0.1405, allocations: 0 / 471.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.1416, allocations: 0.7213 MB / 472.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.014e-05/0.1416, allocations: 0 / 472.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.485e-05/0.1416, allocations: 4 kB / 472.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006666/0.1423, allocations: 459.3 kB / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1423, allocations: 0 / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1423, allocations: 0 / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.1423, allocations: 4 kB / 473.1 MB, free: 10.22 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.0005012/0.1428, allocations: 439.8 kB / 473.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1429, allocations: 8.031 kB / 473.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.294e-05/0.1429, allocations: 4.938 kB / 473.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.143, allocations: 160.4 kB / 473.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1431, allocations: 384 / 473.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-06/0.1431, allocations: 384 / 473.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.858e-05/0.1432, allocations: 41.94 kB / 473.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1432, allocations: 0 / 473.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1432, allocations: 4 kB / 473.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1432, allocations: 3.938 kB / 473.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.716e-05/0.1432, allocations: 0 / 473.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001486/0.1434, allocations: 145.7 kB / 473.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.546e-05/0.1435, allocations: 26.55 kB / 473.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.509e-05/0.1435, allocations: 4.859 kB / 473.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-06/0.1435, allocations: 96 / 473.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.937e-05/0.1435, allocations: 72.14 kB / 474 MB, free: 9.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1435, allocations: 0 / 474 MB, free: 9.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001899/0.1437, allocations: 59.41 kB / 474.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.1438, allocations: 85.09 kB / 474.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.812e-05/0.1438, allocations: 89.86 kB / 474.2 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.1439, allocations: 25.7 kB / 474.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.98e-05/0.1439, allocations: 80.14 kB / 474.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.1439, allocations: 4 kB / 474.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.144, allocations: 13.84 kB / 474.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1441, allocations: 310.8 kB / 474.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.384e-05/0.1441, allocations: 0 / 474.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.681e-06/0.1441, allocations: 7.938 kB / 474.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.135e-05/0.1442, allocations: 68.2 kB / 474.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1442, allocations: 0 / 474.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.427e-05/0.1443, allocations: 59.39 kB / 474.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.1443, allocations: 37.73 kB / 474.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1443, allocations: 4 kB / 474.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1443, allocations: 0 / 474.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.1443, allocations: 0 / 474.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1443, allocations: 0 / 474.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.544e-05/0.1444, allocations: 0 / 474.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.1444, allocations: 4 kB / 474.8 MB, free: 8.227 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 0.0001015/0.1445, allocations: 136.1 kB / 475 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.168e-05/0.1445, allocations: 7.938 kB / 475 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.597e-05/0.1445, allocations: 15.08 kB / 475 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1445, allocations: 0 / 475 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1446, allocations: 0 / 475 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1446, allocations: 0 / 475 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.1447, allocations: 153.5 kB / 475.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1447, allocations: 0 / 475.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1447, allocations: 0 / 475.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.1447, allocations: 11.94 kB / 475.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1447, allocations: 0 / 475.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1447, allocations: 0 / 475.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1447, allocations: 0 / 475.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.419e-05/0.1448, allocations: 94.83 kB / 475.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.1449, allocations: 81.05 kB / 475.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.1449, allocations: 3.938 kB / 475.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-06/0.1449, allocations: 0 / 475.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/0.1449, allocations: 4 kB / 475.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.1449, allocations: 0 / 475.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.425e-05/0.145, allocations: 75.28 kB / 475.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.145, allocations: 4.031 kB / 475.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004257/0.1454, allocations: 151.9 kB / 475.6 MB, free: 7.395 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.0008917/0.1463, allocations: 342.8 kB / 475.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001499/0.1465, allocations: 67.33 kB / 476 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1465, allocations: 4.062 kB / 476 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.1465, allocations: 55.41 kB / 476 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.1467, allocations: 0 / 476 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002357/0.1469, allocations: 82.7 kB / 476.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.1473, allocations: 0.6731 MB / 476.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.933e-06/0.1473, allocations: 0 / 476.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.657e-05/0.1473, allocations: 11.44 kB / 476.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1473, allocations: 0 / 476.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of Templates: time 0.007366/0.1547, allocations: 3.505 MB / 480.3 MB, free: 2.586 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/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