Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001156/0.001156, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001491/0.001491, allocations: 167.4 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.035/1.035, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.17/0.17, allocations: 34.87 MB / 297.4 MB, free: 13.43 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.818e-05, allocations: 5.312 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001191/0.001219, allocations: 0.5114 MB / 380.5 MB, free: 22.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.003589, allocations: 2.284 MB / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.203e-05/0.003611, allocations: 0 / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.844e-05/0.003629, allocations: 4 kB / 382.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.604e-06/0.003637, allocations: 0 / 382.8 MB, free: 19.95 MB / 314.7 MB [/home/hudson/saved_omc/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.001197/0.004834, allocations: 0.5878 MB / 383.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.804e-05/0.004892, allocations: 0 / 383.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.59e-05/0.004938, allocations: 4 kB / 383.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.113e-05/0.004969, allocations: 4 kB / 383.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.376e-05/0.004993, allocations: 0 / 383.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.826e-06/0.005002, allocations: 4 kB / 383.4 MB, free: 19.35 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008089/0.005811, allocations: 0.6743 MB / 384.1 MB, free: 18.68 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.376e-06/0.005819, allocations: 0 / 384.1 MB, free: 18.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.452e-05/0.005834, allocations: 3.938 kB / 384.1 MB, free: 18.67 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004905/0.006324, allocations: 0.5298 MB / 384.6 MB, free: 18.14 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.006328, allocations: 0 / 384.6 MB, free: 18.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.006329, allocations: 0 / 384.6 MB, free: 18.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.006334, allocations: 0 / 384.6 MB, free: 18.14 MB / 314.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.0002963/0.00663, allocations: 469 kB / 385.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.006666, allocations: 8.031 kB / 385.1 MB, free: 17.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.006696, allocations: 4.938 kB / 385.1 MB, free: 17.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.54e-05/0.006742, allocations: 104.6 kB / 385.2 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.006754, allocations: 384 / 385.2 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.782e-06/0.006761, allocations: 4.312 kB / 385.2 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.799e-05/0.006829, allocations: 63.95 kB / 385.2 MB, free: 17.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.006837, allocations: 4.188 kB / 385.2 MB, free: 17.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.006843, allocations: 384 / 385.2 MB, free: 17.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.006849, allocations: 7.875 kB / 385.3 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.318e-05/0.006862, allocations: 29.7 kB / 385.3 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.385e-05/0.006926, allocations: 89.27 kB / 385.4 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.743e-05/0.006963, allocations: 52.8 kB / 385.4 MB, free: 17.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.283e-05/0.006976, allocations: 37.33 kB / 385.5 MB, free: 17.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-06/0.00698, allocations: 0 / 385.5 MB, free: 17.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.007005, allocations: 71.12 kB / 385.5 MB, free: 17.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.007006, allocations: 3.984 kB / 385.5 MB, free: 17.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001517/0.007158, allocations: 118.8 kB / 385.6 MB, free: 16.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/0.007183, allocations: 77.11 kB / 385.7 MB, free: 16.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.3e-05/0.007206, allocations: 142.2 kB / 385.9 MB, free: 16.67 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-06/0.00721, allocations: 29.7 kB / 385.9 MB, free: 16.63 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.137e-05/0.007221, allocations: 130.9 kB / 386 MB, free: 16.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.007237, allocations: 0 / 386 MB, free: 16.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.007257, allocations: 15.38 kB / 386 MB, free: 16.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.007309, allocations: 0.4883 MB / 386.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.346e-05/0.007323, allocations: 29.64 kB / 386.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.426e-06/0.007331, allocations: 29.83 kB / 386.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.281e-05/0.007364, allocations: 63.09 kB / 386.6 MB, free: 15.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.007366, allocations: 0 / 386.6 MB, free: 15.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.673e-05/0.007413, allocations: 93.09 kB / 386.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.007436, allocations: 33.7 kB / 386.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.007442, allocations: 3.984 kB / 386.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.506e-06/0.007451, allocations: 0 / 386.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.007452, allocations: 0 / 386.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.007455, allocations: 0 / 386.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.16e-05/0.007467, allocations: 3.938 kB / 386.8 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.007474, allocations: 12.03 kB / 386.8 MB, free: 15.66 MB / 314.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.683e-05/0.007521, allocations: 182.3 kB / 387 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-06/0.007526, allocations: 4.344 kB / 387 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.536e-06/0.007534, allocations: 3 kB / 387 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.007535, allocations: 0 / 387 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.007537, allocations: 0 / 387 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.00754, allocations: 0 / 387 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.75e-05/0.007577, allocations: 93.2 kB / 387.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.007578, allocations: 4 kB / 387.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.007578, allocations: 3.938 kB / 387.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.21e-07/0.007578, allocations: 4 kB / 387.1 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.007585, allocations: 11.97 kB / 387.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.007585, allocations: 0 / 387.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.007586, allocations: 0 / 387.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.33e-05/0.007649, allocations: 131.8 kB / 387.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-06/0.007653, allocations: 7.984 kB / 387.2 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.007663, allocations: 0 / 387.2 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.769e-06/0.007667, allocations: 3.938 kB / 387.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.788e-06/0.007677, allocations: 0 / 387.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.00768, allocations: 4 kB / 387.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.745e-05/0.007697, allocations: 119.2 kB / 387.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007698, allocations: 4.031 kB / 387.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002762/0.007974, allocations: 163.3 kB / 387.5 MB, free: 14.86 MB / 314.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.000572/0.008546, allocations: 370.6 kB / 387.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.645e-05/0.008642, allocations: 126.5 kB / 388 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.008644, allocations: 0 / 388 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.971e-05/0.008663, allocations: 92.78 kB / 388.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.61e-05/0.00876, allocations: 3.938 kB / 388.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001617/0.008921, allocations: 104.5 kB / 388.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.154e-05/0.008943, allocations: 63.14 kB / 388.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.67e-06/0.008949, allocations: 0 / 388.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.072e-05/0.008979, allocations: 74.2 kB / 388.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.00898, allocations: 0 / 388.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of Templates: time 0.005682/0.01466, allocations: 4.311 MB / 392.6 MB, free: 9.629 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.501759181730449]