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.0008328/0.0008328, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001011/0.001011, allocations: 160.9 kB / 24.99 MB, free: 8.801 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.024/1.024, allocations: 177 MB / 205.2 MB, free: 5.594 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.3231/0.3231, allocations: 34.86 MB / 296.6 MB, free: 0.5742 MB / 266.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 3.186e-06/3.186e-06, allocations: 0 / 378.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.235e-05/3.554e-05, allocations: 6.25 kB / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001728/0.001764, allocations: 0.5224 MB / 379.3 MB, free: 1.918 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00405/0.005813, allocations: 2.304 MB / 381.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.53e-05/0.005849, allocations: 4 kB / 381.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.32e-05/0.005872, allocations: 0 / 381.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 8.697e-06/0.005881, allocations: 0 / 381.6 MB, free: 15.59 MB / 362.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.002235/0.008115, allocations: 0.5878 MB / 382.2 MB, free: 15 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.774e-05/0.008183, allocations: 7.922 kB / 382.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.815e-05/0.008231, allocations: 0 / 382.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.365e-05/0.008265, allocations: 4 kB / 382.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.452e-05/0.00829, allocations: 0 / 382.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 9.158e-06/0.008299, allocations: 3.938 kB / 382.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.009731, allocations: 0.6782 MB / 382.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.009742, allocations: 0 / 382.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.673e-05/0.009769, allocations: 3.984 kB / 382.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.01083, allocations: 0.522 MB / 383.4 MB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.01084, allocations: 0 / 383.4 MB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01084, allocations: 0 / 383.4 MB, free: 13.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.01085, allocations: 0 / 383.4 MB, free: 13.77 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.0006042/0.01145, allocations: 473 kB / 383.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.0115, allocations: 12.03 kB / 383.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.111e-05/0.01155, allocations: 0.9375 kB / 383.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.34e-05/0.01164, allocations: 112.6 kB / 384 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.01165, allocations: 384 / 384 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.01166, allocations: 384 / 384 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.01178, allocations: 63.95 kB / 384 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.01179, allocations: 192 / 384 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.0118, allocations: 384 / 384 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.01181, allocations: 3.938 kB / 384 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.691e-05/0.01184, allocations: 33.64 kB / 384.1 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001175/0.01195, allocations: 108.6 kB / 384.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.125e-05/0.01201, allocations: 60.77 kB / 384.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.737e-05/0.01204, allocations: 33.39 kB / 384.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.811e-06/0.01205, allocations: 0 / 384.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.873e-05/0.0121, allocations: 63.16 kB / 384.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.442e-06/0.0121, allocations: 0 / 384.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002321/0.01233, allocations: 122.7 kB / 384.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.01238, allocations: 81.05 kB / 384.5 MB, free: 12.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.423e-05/0.01244, allocations: 142.2 kB / 384.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.01245, allocations: 25.83 kB / 384.7 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.01249, allocations: 134.9 kB / 384.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.01251, allocations: 4.281 kB / 384.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.474e-05/0.01255, allocations: 19.38 kB / 384.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.0127, allocations: 496.1 kB / 385.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.392e-05/0.01273, allocations: 25.7 kB / 385.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.946e-05/0.01275, allocations: 29.69 kB / 385.4 MB, free: 11.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.445e-05/0.01281, allocations: 67.09 kB / 385.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01282, allocations: 0 / 385.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.917e-05/0.01292, allocations: 97 kB / 385.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.01295, allocations: 41.78 kB / 385.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.01296, allocations: 0 / 385.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.01298, allocations: 0 / 385.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.01298, allocations: 0 / 385.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.01299, allocations: 3.938 kB / 385.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.928e-05/0.01301, allocations: 0 / 385.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.01301, allocations: 0 / 385.6 MB, free: 11.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.0001037/0.01312, allocations: 182.3 kB / 385.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.2e-05/0.01313, allocations: 4 kB / 385.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.193e-05/0.01314, allocations: 3 kB / 385.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.01314, allocations: 4 kB / 385.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.01315, allocations: 0 / 385.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.01316, allocations: 7.922 kB / 385.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.592e-05/0.01323, allocations: 108.6 kB / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.01323, allocations: 4 kB / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.01324, allocations: 0 / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.01324, allocations: 0 / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.01325, allocations: 0 / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.01325, allocations: 0 / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.01325, allocations: 3.938 kB / 385.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000133/0.01338, allocations: 131.8 kB / 386 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-06/0.01339, allocations: 4 kB / 386 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.01341, allocations: 0 / 386 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.412e-05/0.01342, allocations: 4 kB / 386 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.537e-05/0.01344, allocations: 0 / 386 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.01345, allocations: 4 kB / 386 MB, free: 10.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.206e-05/0.01349, allocations: 127.1 kB / 386.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01349, allocations: 0 / 386.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005827/0.01407, allocations: 167.3 kB / 386.3 MB, free: 10.44 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.0009101/0.01498, allocations: 363.7 kB / 386.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.01513, allocations: 126.4 kB / 386.8 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.01513, allocations: 0 / 386.8 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.13e-05/0.01517, allocations: 88.8 kB / 386.9 MB, free: 9.816 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.01531, allocations: 4 kB / 386.9 MB, free: 9.812 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00024/0.01555, allocations: 114.6 kB / 387 MB, free: 9.664 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.851e-05/0.01559, allocations: 59.36 kB / 387.1 MB, free: 9.586 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.813e-06/0.0156, allocations: 0 / 387.1 MB, free: 9.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.712e-05/0.01561, allocations: 8.5 kB / 387.1 MB, free: 9.578 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01561, allocations: 0 / 387.1 MB, free: 9.578 MB / 362.7 MB Notification: Performance of Templates: time 0.008012/0.02363, allocations: 3.64 MB / 390.7 MB, free: 5.941 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=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.410568996099755]