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.001942/0.001942, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001992/0.001992, allocations: 169.3 kB / 24.28 MB, free: 152 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.569/1.569, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.4077/0.4077, allocations: 34.25 MB / 295.3 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 179] 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 2.214e-06/2.214e-06, allocations: 0 / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.812e-05/3.034e-05, allocations: 6.25 kB / 377.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001622/0.001653, allocations: 0.4932 MB / 377.8 MB, free: 2.484 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003931/0.005583, allocations: 2.288 MB / 380.1 MB, free: 176 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.587e-05/0.005599, allocations: 0 / 380.1 MB, free: 176 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.179e-05/0.005611, allocations: 4 kB / 380.1 MB, free: 172 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.005616, allocations: 0 / 380.1 MB, free: 172 kB / 346.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.001845/0.007461, allocations: 0.5877 MB / 380.7 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.312e-05/0.007504, allocations: 4 kB / 380.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.152e-05/0.007536, allocations: 3.984 kB / 380.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.829e-05/0.007564, allocations: 0 / 380.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.963e-05/0.007584, allocations: 3.938 kB / 380.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.007591, allocations: 0 / 380.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.009145, allocations: 0.6821 MB / 381.3 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.875e-06/0.009153, allocations: 0 / 381.3 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.086e-05/0.009174, allocations: 4 kB / 381.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008949/0.01007, allocations: 0.5181 MB / 381.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.01007, allocations: 4 kB / 381.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01007, allocations: 4 kB / 381.9 MB, free: 14.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.01008, allocations: 0 / 381.9 MB, free: 14.35 MB / 362.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.0006014/0.01068, allocations: 473 kB / 382.3 MB, free: 13.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.01072, allocations: 12.03 kB / 382.4 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.348e-05/0.01076, allocations: 4.938 kB / 382.4 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.01087, allocations: 104.6 kB / 382.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.01088, allocations: 384 / 382.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.01089, allocations: 4.375 kB / 382.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.011, allocations: 63.94 kB / 382.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.01101, allocations: 4.188 kB / 382.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.01102, allocations: 4.375 kB / 382.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.01102, allocations: 3.938 kB / 382.5 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.473e-05/0.01106, allocations: 29.64 kB / 382.6 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000143/0.0112, allocations: 108.6 kB / 382.7 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.125e-05/0.01128, allocations: 48.77 kB / 382.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.808e-05/0.01132, allocations: 37.48 kB / 382.8 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.275e-06/0.01133, allocations: 0 / 382.8 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.465e-05/0.01139, allocations: 67.08 kB / 382.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.01139, allocations: 0 / 382.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002352/0.01163, allocations: 122.8 kB / 382.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.669e-05/0.0117, allocations: 81.05 kB / 383 MB, free: 13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.401e-05/0.0118, allocations: 150.2 kB / 383.2 MB, free: 12.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.01182, allocations: 25.7 kB / 383.2 MB, free: 12.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.01188, allocations: 130.8 kB / 383.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.0119, allocations: 0 / 383.3 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.01194, allocations: 19.38 kB / 383.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002585/0.0122, allocations: 492.1 kB / 383.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.288e-05/0.01223, allocations: 29.7 kB / 383.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.169e-05/0.01225, allocations: 25.7 kB / 383.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.207e-05/0.01232, allocations: 75.27 kB / 383.9 MB, free: 12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01232, allocations: 0 / 383.9 MB, free: 12 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.956e-05/0.01242, allocations: 89.05 kB / 384 MB, free: 11.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/0.01246, allocations: 35.73 kB / 384.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.01247, allocations: 0 / 384.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.01248, allocations: 0 / 384.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.01248, allocations: 0 / 384.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.01249, allocations: 3.938 kB / 384.1 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.0125, allocations: 3.984 kB / 384.1 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.01251, allocations: 0 / 384.1 MB, free: 11.85 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.0001387/0.01265, allocations: 190.3 kB / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.168e-05/0.01266, allocations: 3.953 kB / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.054e-06/0.01267, allocations: 7 kB / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.01267, allocations: 0 / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.01267, allocations: 0 / 384.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01268, allocations: 3.938 kB / 384.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.01278, allocations: 108.6 kB / 384.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.01278, allocations: 0 / 384.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.01278, allocations: 4 kB / 384.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.01278, allocations: 0 / 384.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.01279, allocations: 4 kB / 384.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.01279, allocations: 3.938 kB / 384.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.01279, allocations: 3.984 kB / 384.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.01295, allocations: 143.8 kB / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-06/0.01295, allocations: 0 / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.01296, allocations: 0 / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-06/0.01297, allocations: 0 / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.656e-05/0.01299, allocations: 4 kB / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.01299, allocations: 0 / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.794e-05/0.01306, allocations: 123.1 kB / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01306, allocations: 3.938 kB / 384.7 MB, free: 11.17 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004823/0.01354, allocations: 171.4 kB / 384.8 MB, free: 11 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.0008918/0.01443, allocations: 360.5 kB / 385.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001711/0.0146, allocations: 126.4 kB / 385.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01461, allocations: 0 / 385.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.639e-05/0.01468, allocations: 96.84 kB / 385.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.01481, allocations: 4 kB / 385.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002373/0.01504, allocations: 118.5 kB / 385.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.384e-05/0.0151, allocations: 55.36 kB / 385.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.969e-06/0.0151, allocations: 0 / 385.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.01512, allocations: 8.5 kB / 385.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01512, allocations: 0 / 385.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of Templates: time 0.008895/0.02401, allocations: 3.638 MB / 389.2 MB, free: 6.508 MB / 362.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.220663955900818]