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.001757/0.001757, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.002086/0.002086, allocations: 156.9 kB / 24.27 MB, free: 168 kB / 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.534/1.534, allocations: 177 MB / 204.5 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.3811/0.3811, allocations: 34.24 MB / 295.2 MB, free: 0.668 MB / 266.7 MB " [Timeout remaining time 179] 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 1.513e-06/1.513e-06, allocations: 0 / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.437e-05/2.588e-05, allocations: 2.312 kB / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001509/0.001535, allocations: 0.501 MB / 377.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003885/0.005419, allocations: 2.257 MB / 380 MB, free: 148 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.396e-05/0.005433, allocations: 4 kB / 380 MB, free: 144 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.082e-05/0.005444, allocations: 0 / 380 MB, free: 144 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.005449, allocations: 3.938 kB / 380 MB, free: 140 kB / 346.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.001811/0.00726, allocations: 0.5878 MB / 380.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.475e-05/0.007305, allocations: 4 kB / 380.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.743e-05/0.007332, allocations: 0 / 380.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.059e-05/0.007363, allocations: 0 / 380.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.003e-05/0.007383, allocations: 3.938 kB / 380.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.843e-06/0.007389, allocations: 4 kB / 380.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.008718, allocations: 0.6821 MB / 381.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.245e-06/0.008726, allocations: 0 / 381.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.366e-05/0.00875, allocations: 0 / 381.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009537/0.009704, allocations: 0.5259 MB / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.009707, allocations: 0 / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.009708, allocations: 4 kB / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.009712, allocations: 0 / 381.8 MB, free: 14.32 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.0005628/0.01028, allocations: 367 kB / 382.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.01032, allocations: 12.03 kB / 382.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.01037, allocations: 0.9375 kB / 382.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.856e-05/0.01046, allocations: 101.8 kB / 382.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.01048, allocations: 384 / 382.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.01049, allocations: 4.375 kB / 382.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.0106, allocations: 67.89 kB / 382.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.0106, allocations: 192 / 382.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.01062, allocations: 4.375 kB / 382.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.01062, allocations: 3.938 kB / 382.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.495e-05/0.01066, allocations: 25.7 kB / 382.4 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.01078, allocations: 97.33 kB / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.033e-05/0.01086, allocations: 44.27 kB / 382.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.754e-05/0.01089, allocations: 34.66 kB / 382.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.0109, allocations: 0 / 382.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.049e-05/0.01096, allocations: 60.27 kB / 382.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.01096, allocations: 3.938 kB / 382.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002314/0.01119, allocations: 118.8 kB / 382.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.357e-05/0.01127, allocations: 85.05 kB / 382.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.723e-05/0.01134, allocations: 93.86 kB / 382.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.01136, allocations: 25.7 kB / 382.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.01153, allocations: 84.08 kB / 383 MB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.01155, allocations: 0 / 383 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.352e-05/0.01159, allocations: 13.72 kB / 383 MB, free: 12.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.01179, allocations: 310.8 kB / 383.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.295e-05/0.01182, allocations: 25.7 kB / 383.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.133e-05/0.01186, allocations: 37.81 kB / 383.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.283e-05/0.01195, allocations: 72.2 kB / 383.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.01195, allocations: 0 / 383.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001227/0.01207, allocations: 85.11 kB / 383.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.021e-05/0.01213, allocations: 33.69 kB / 383.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.01214, allocations: 0 / 383.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.01216, allocations: 0 / 383.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.332e-06/0.01216, allocations: 0 / 383.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.01217, allocations: 7.938 kB / 383.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.738e-05/0.01219, allocations: 0 / 383.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.0122, allocations: 4.094 kB / 383.6 MB, free: 12.26 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.000139/0.01234, allocations: 139.5 kB / 383.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/0.01235, allocations: 3.953 kB / 383.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.365e-05/0.01237, allocations: 6.984 kB / 383.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.01237, allocations: 0 / 383.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.01237, allocations: 0 / 383.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.01239, allocations: 11.92 kB / 383.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.0125, allocations: 97.27 kB / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.0125, allocations: 0 / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-07/0.0125, allocations: 0 / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.0125, allocations: 4 kB / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.01251, allocations: 4 kB / 383.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.01252, allocations: 0 / 383.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01252, allocations: 0 / 383.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001522/0.01267, allocations: 120.5 kB / 383.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-06/0.01267, allocations: 0 / 383.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.01269, allocations: 4 kB / 383.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-06/0.0127, allocations: 0 / 383.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.01271, allocations: 0 / 383.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.01272, allocations: 0 / 383.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.485e-05/0.01276, allocations: 79.22 kB / 384 MB, free: 11.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01276, allocations: 7.969 kB / 384 MB, free: 11.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005478/0.01331, allocations: 167.3 kB / 384.2 MB, free: 11.55 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.0009678/0.01428, allocations: 370.5 kB / 384.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001414/0.01442, allocations: 114.8 kB / 384.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.01442, allocations: 4.062 kB / 384.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.354e-05/0.01449, allocations: 81.11 kB / 384.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.01462, allocations: 6.188 kB / 384.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000229/0.01485, allocations: 112.8 kB / 384.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.178e-05/0.0149, allocations: 51.36 kB / 384.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.959e-06/0.0149, allocations: 4 kB / 384.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.793e-05/0.01493, allocations: 8.5 kB / 384.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01493, allocations: 0 / 384.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of Templates: time 0.009025/0.02396, allocations: 3.636 MB / 388.6 MB, free: 7.082 MB / 362.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.150769941974431]