Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 80.31 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 167.1 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9842/0.9842, allocations: 177.1 MB / 206 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1484/0.1484, allocations: 34.26 MB / 296.9 MB, free: 13.93 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.202e-05/1.333e-05, allocations: 6.312 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0008779/0.0008912, allocations: 0.497 MB / 379.8 MB, free: 22.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.002816, allocations: 2.288 MB / 382.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.939e-05/0.002836, allocations: 0 / 382.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.00285, allocations: 0 / 382.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.002855, allocations: 0 / 382.1 MB, free: 20.62 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001048/0.003903, allocations: 0.5839 MB / 382.7 MB, free: 20.04 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.129e-05/0.003945, allocations: 4 kB / 382.7 MB, free: 20.03 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.363e-05/0.003978, allocations: 0 / 382.7 MB, free: 20.03 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.115e-05/0.003999, allocations: 7.984 kB / 382.7 MB, free: 20.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.652e-05/0.004016, allocations: 3.984 kB / 382.7 MB, free: 20.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.182e-06/0.004022, allocations: 0 / 382.7 MB, free: 20.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006714/0.004693, allocations: 0.6742 MB / 383.3 MB, free: 19.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.166e-06/0.004702, allocations: 0 / 383.3 MB, free: 19.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.086e-05/0.004712, allocations: 4 kB / 383.3 MB, free: 19.34 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004332/0.005146, allocations: 0.522 MB / 383.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.005147, allocations: 0 / 383.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005148, allocations: 0 / 383.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.005151, allocations: 0 / 383.9 MB, free: 18.82 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.0002587/0.00541, allocations: 481 kB / 384.3 MB, free: 18.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.767e-05/0.005438, allocations: 8.031 kB / 384.3 MB, free: 18.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.005462, allocations: 4.938 kB / 384.4 MB, free: 18.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.84e-05/0.0055, allocations: 108.6 kB / 384.5 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.00551, allocations: 384 / 384.5 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.51e-06/0.005515, allocations: 4.312 kB / 384.5 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.067e-05/0.005566, allocations: 59.95 kB / 384.5 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.473e-06/0.005572, allocations: 192 / 384.5 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.561e-06/0.005578, allocations: 384 / 384.5 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.005583, allocations: 3.938 kB / 384.5 MB, free: 18.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.015e-05/0.005594, allocations: 29.7 kB / 384.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.12e-05/0.005645, allocations: 89.27 kB / 384.6 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.803e-05/0.005673, allocations: 60.78 kB / 384.7 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.237e-06/0.005682, allocations: 41.33 kB / 384.7 MB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-06/0.005685, allocations: 4.062 kB / 384.7 MB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.005703, allocations: 59.09 kB / 384.8 MB, free: 17.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.005704, allocations: 0 / 384.8 MB, free: 17.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001043/0.005808, allocations: 118.8 kB / 384.9 MB, free: 17.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.811e-05/0.005826, allocations: 77.11 kB / 385 MB, free: 17.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.841e-05/0.005845, allocations: 146.2 kB / 385.1 MB, free: 17.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.869e-06/0.00585, allocations: 25.7 kB / 385.2 MB, free: 17.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.043e-05/0.00586, allocations: 126.9 kB / 385.3 MB, free: 17.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.285e-05/0.005873, allocations: 128 / 385.3 MB, free: 17.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.005891, allocations: 27.38 kB / 385.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.219e-05/0.005933, allocations: 496.1 kB / 385.8 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-06/0.005943, allocations: 29.64 kB / 385.8 MB, free: 16.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.00595, allocations: 29.7 kB / 385.9 MB, free: 16.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.918e-05/0.005979, allocations: 67.06 kB / 385.9 MB, free: 16.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.00598, allocations: 0 / 385.9 MB, free: 16.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.659e-05/0.006017, allocations: 85.11 kB / 386 MB, free: 16.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.006034, allocations: 33.7 kB / 386 MB, free: 16.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.006038, allocations: 3.984 kB / 386 MB, free: 16.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.364e-06/0.006046, allocations: 8.031 kB / 386 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.006047, allocations: 0 / 386 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-06/0.006049, allocations: 0 / 386 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.137e-06/0.006058, allocations: 3.938 kB / 386.1 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.006064, allocations: 7.984 kB / 386.1 MB, free: 16.33 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 3.839e-05/0.006102, allocations: 186.2 kB / 386.2 MB, free: 16.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-06/0.006107, allocations: 4.344 kB / 386.2 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.592e-06/0.006113, allocations: 3 kB / 386.3 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.006114, allocations: 0 / 386.3 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-06/0.006116, allocations: 0 / 386.3 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.006118, allocations: 4 kB / 386.3 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.495e-05/0.006153, allocations: 101.2 kB / 386.4 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.006153, allocations: 0 / 386.4 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.006154, allocations: 4 kB / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.41e-07/0.006155, allocations: 0 / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.687e-06/0.006158, allocations: 0 / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.006159, allocations: 0 / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.41e-07/0.006159, allocations: 0 / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.119e-05/0.00621, allocations: 135.7 kB / 386.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-06/0.006214, allocations: 4 kB / 386.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.296e-06/0.006222, allocations: 0 / 386.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.108e-06/0.006226, allocations: 4.031 kB / 386.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-06/0.006235, allocations: 7.938 kB / 386.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-06/0.006236, allocations: 0 / 386.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.237e-05/0.006248, allocations: 119.2 kB / 386.6 MB, free: 15.69 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006249, allocations: 0 / 386.6 MB, free: 15.69 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002773/0.006526, allocations: 167.3 kB / 386.8 MB, free: 15.53 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.0004734/0.006999, allocations: 372.9 kB / 387.1 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.769e-05/0.007067, allocations: 122.5 kB / 387.3 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.32e-07/0.007068, allocations: 0 / 387.3 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.767e-05/0.007086, allocations: 88.8 kB / 387.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.822e-05/0.007174, allocations: 3.938 kB / 387.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001155/0.007289, allocations: 112.5 kB / 387.5 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.591e-05/0.007305, allocations: 59.22 kB / 387.5 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.36e-06/0.00731, allocations: 4.125 kB / 387.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.007333, allocations: 78.14 kB / 387.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of SimCode: time 3.71e-07/0.007333, allocations: 0 / 387.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of Templates: time 0.004621/0.01195, allocations: 4.3 MB / 391.9 MB, free: 10.3 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.1677783001214266]