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.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.001846/0.001846, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002422/0.002422, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 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 1.512/1.512, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3305/0.3305, allocations: 32.81 MB / 293.9 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 375.2 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.728e-05/2.887e-05, allocations: 6.25 kB / 375.3 MB, free: 4.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001733/0.001762, allocations: 0.512 MB / 375.8 MB, free: 4.469 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004165/0.005927, allocations: 2.245 MB / 378 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.522e-05/0.005942, allocations: 0 / 378 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.108e-05/0.005953, allocations: 0 / 378 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.06e-06/0.005958, allocations: 0 / 378 MB, free: 2.199 MB / 346.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.002088/0.008046, allocations: 0.5954 MB / 378.6 MB, free: 1.602 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.245e-05/0.008088, allocations: 0 / 378.6 MB, free: 1.602 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.421e-05/0.008122, allocations: 11.98 kB / 378.6 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.37e-05/0.008146, allocations: 0 / 378.6 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.843e-05/0.008164, allocations: 0 / 378.6 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-06/0.008172, allocations: 0 / 378.6 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001439/0.00961, allocations: 0.6782 MB / 379.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.206e-06/0.009619, allocations: 3.938 kB / 379.3 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.718e-05/0.009646, allocations: 0 / 379.3 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.01069, allocations: 0.5337 MB / 379.8 MB, free: 380 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.01069, allocations: 0 / 379.8 MB, free: 380 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.0107, allocations: 0 / 379.8 MB, free: 380 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.0107, allocations: 4 kB / 379.8 MB, free: 376 kB / 346.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.000616/0.01132, allocations: 359.1 kB / 380.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.01136, allocations: 12.03 kB / 380.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.0114, allocations: 4.875 kB / 380.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.01151, allocations: 101.8 kB / 380.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.01153, allocations: 8.375 kB / 380.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.01154, allocations: 4.375 kB / 380.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.01165, allocations: 55.91 kB / 380.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.01166, allocations: 4.125 kB / 380.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.01167, allocations: 4.375 kB / 380.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.01167, allocations: 3.938 kB / 380.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.893e-05/0.01171, allocations: 25.7 kB / 380.4 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000143/0.01186, allocations: 105.3 kB / 380.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.001e-05/0.01193, allocations: 40.28 kB / 380.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.871e-05/0.01196, allocations: 34.66 kB / 380.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.01197, allocations: 4 kB / 380.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.991e-05/0.01203, allocations: 56.27 kB / 380.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.01204, allocations: 0 / 380.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002663/0.0123, allocations: 122.7 kB / 380.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/0.01237, allocations: 85.05 kB / 380.8 MB, free: 15.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.806e-05/0.01244, allocations: 89.86 kB / 380.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.01246, allocations: 25.7 kB / 381 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.437e-05/0.01251, allocations: 80.14 kB / 381 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.01252, allocations: 0 / 381 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.01256, allocations: 17.72 kB / 381.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.01276, allocations: 319 kB / 381.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.089e-05/0.01279, allocations: 25.7 kB / 381.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.557e-05/0.01281, allocations: 29.7 kB / 381.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.609e-05/0.01289, allocations: 64.2 kB / 381.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.01289, allocations: 0 / 381.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0003467/0.01324, allocations: 93.09 kB / 381.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.01328, allocations: 29.7 kB / 381.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.01328, allocations: 0 / 381.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.0133, allocations: 0 / 381.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.0133, allocations: 4.094 kB / 381.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.01331, allocations: 7.938 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.01332, allocations: 0 / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.01333, allocations: 0 / 381.6 MB, free: 14.31 MB / 362.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 0.0001157/0.01344, allocations: 135.5 kB / 381.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/0.01346, allocations: 7.938 kB / 381.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.173e-05/0.01347, allocations: 7 kB / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.01348, allocations: 3.984 kB / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.01348, allocations: 0 / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.01349, allocations: 7.875 kB / 381.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.428e-05/0.01358, allocations: 101.3 kB / 381.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.01358, allocations: 0 / 381.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.01358, allocations: 3.938 kB / 381.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.01358, allocations: 0 / 381.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.01359, allocations: 0 / 381.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.01359, allocations: 4 kB / 381.9 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.01359, allocations: 3.984 kB / 381.9 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.01374, allocations: 116.5 kB / 382 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-06/0.01374, allocations: 0 / 382 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.01377, allocations: 11.98 kB / 382 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-06/0.01378, allocations: 0 / 382 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.01379, allocations: 4.031 kB / 382 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.01379, allocations: 0 / 382 MB, free: 13.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.933e-05/0.01385, allocations: 79.22 kB / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01385, allocations: 0 / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005799/0.01443, allocations: 163.3 kB / 382.2 MB, free: 13.6 MB / 362.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.001075/0.01551, allocations: 372.8 kB / 382.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001676/0.01568, allocations: 114.8 kB / 382.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.01568, allocations: 4 kB / 382.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.382e-05/0.01575, allocations: 81.09 kB / 382.8 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.01591, allocations: 5.875 kB / 382.8 MB, free: 12.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002719/0.01618, allocations: 104.8 kB / 382.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.247e-05/0.01624, allocations: 55.36 kB / 383 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.791e-06/0.01625, allocations: 0 / 383 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.497e-05/0.01627, allocations: 8.5 kB / 383 MB, free: 12.77 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01627, allocations: 4.125 kB / 383 MB, free: 12.77 MB / 362.7 MB Notification: Performance of Templates: time 0.00908/0.02535, allocations: 3.629 MB / 386.6 MB, free: 9.141 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.942278022994287]