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.0009751/0.0009751, allocations: 87.67 kB / 21.19 MB, free: 3.367 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.001425/0.001425, allocations: 160.5 kB / 24.56 MB, free: 8 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.069/1.069, allocations: 177 MB / 204.8 MB, free: 5.586 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.2741/0.2741, allocations: 34.86 MB / 296.3 MB, free: 0.5352 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 1.192e-06/1.192e-06, allocations: 0 / 378.8 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.385e-05/1.504e-05, allocations: 4.844 kB / 378.8 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0009813/0.0009963, allocations: 0.5202 MB / 379.3 MB, free: 1.598 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.003654, allocations: 2.312 MB / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.527e-05/0.003669, allocations: 0 / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.144e-05/0.003691, allocations: 0 / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-06/0.003697, allocations: 0 / 381.6 MB, free: 15.26 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.001543/0.00524, allocations: 0.5877 MB / 382.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.598e-05/0.005286, allocations: 4 kB / 382.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.048e-05/0.005317, allocations: 3.984 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.043e-05/0.005347, allocations: 3.984 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.825e-05/0.005366, allocations: 3.938 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-06/0.005373, allocations: 0 / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008348/0.006208, allocations: 0.6782 MB / 382.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-06/0.006216, allocations: 0 / 382.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.732e-05/0.006233, allocations: 4 kB / 382.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005339/0.006767, allocations: 0.522 MB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.00677, allocations: 0 / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006771, allocations: 7.938 kB / 383.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.006774, allocations: 0 / 383.4 MB, free: 13.44 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.0003399/0.007114, allocations: 469 kB / 383.9 MB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.00715, allocations: 8.031 kB / 383.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.007184, allocations: 0.9375 kB / 383.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.85e-05/0.007242, allocations: 116.6 kB / 384 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.677e-06/0.007251, allocations: 384 / 384 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.007259, allocations: 384 / 384 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.626e-05/0.007345, allocations: 63.95 kB / 384 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.007352, allocations: 192 / 384 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.00736, allocations: 384 / 384 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.007369, allocations: 11.92 kB / 384.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.795e-05/0.007387, allocations: 33.64 kB / 384.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.136e-05/0.007468, allocations: 104.6 kB / 384.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.369e-05/0.007512, allocations: 56.73 kB / 384.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.305e-05/0.007535, allocations: 33.39 kB / 384.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-06/0.007539, allocations: 0 / 384.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.007572, allocations: 67.14 kB / 384.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.007573, allocations: 0 / 384.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.007731, allocations: 118.8 kB / 384.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.007769, allocations: 85.17 kB / 384.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.876e-05/0.007808, allocations: 146.2 kB / 384.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.756e-06/0.007816, allocations: 25.7 kB / 384.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.571e-05/0.007842, allocations: 126.9 kB / 384.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.299e-05/0.007855, allocations: 4.344 kB / 384.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.007876, allocations: 19.38 kB / 384.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.007986, allocations: 496.1 kB / 385.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.576e-05/0.008002, allocations: 25.7 kB / 385.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.252e-05/0.008014, allocations: 29.7 kB / 385.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.721e-05/0.008062, allocations: 67.08 kB / 385.5 MB, free: 11.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.008063, allocations: 4.062 kB / 385.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.234e-05/0.008125, allocations: 97 kB / 385.6 MB, free: 10.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.008149, allocations: 33.7 kB / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.008154, allocations: 0 / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.008166, allocations: 0 / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.557e-06/0.00817, allocations: 0 / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.008176, allocations: 3.938 kB / 385.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.267e-05/0.008188, allocations: 3.984 kB / 385.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.008194, allocations: 0 / 385.6 MB, free: 10.93 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 7.071e-05/0.008265, allocations: 186.3 kB / 385.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-06/0.00827, allocations: 0 / 385.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.354e-06/0.008277, allocations: 7 kB / 385.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.008278, allocations: 0 / 385.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.008281, allocations: 0 / 385.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.008284, allocations: 3.938 kB / 385.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.147e-05/0.008336, allocations: 108.6 kB / 385.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.008336, allocations: 0 / 385.9 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.2e-07/0.008337, allocations: 4 kB / 385.9 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.22e-07/0.008337, allocations: 0 / 385.9 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.008345, allocations: 4 kB / 385.9 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.008345, allocations: 7.938 kB / 385.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.008346, allocations: 0 / 385.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.691e-05/0.008423, allocations: 131.7 kB / 386 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-06/0.008428, allocations: 4 kB / 386.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.00844, allocations: 0 / 386.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.159e-06/0.008445, allocations: 4 kB / 386.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.124e-05/0.008456, allocations: 0 / 386.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.008459, allocations: 4 kB / 386.1 MB, free: 10.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.727e-05/0.008486, allocations: 123.1 kB / 386.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008486, allocations: 0 / 386.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003084/0.008795, allocations: 167.3 kB / 386.3 MB, free: 10.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.0005663/0.009361, allocations: 374.6 kB / 386.7 MB, free: 9.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.00948, allocations: 126.4 kB / 386.8 MB, free: 9.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.009482, allocations: 0 / 386.8 MB, free: 9.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.764e-05/0.009519, allocations: 96.8 kB / 386.9 MB, free: 9.473 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.95e-05/0.009619, allocations: 4 kB / 386.9 MB, free: 9.469 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002019/0.009821, allocations: 114.5 kB / 387 MB, free: 9.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.348e-05/0.009864, allocations: 55.36 kB / 387.1 MB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.832e-06/0.009871, allocations: 0 / 387.1 MB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.009885, allocations: 8.5 kB / 387.1 MB, free: 9.238 MB / 362.7 MB Notification: Performance of SimCode: time 7.81e-07/0.009885, allocations: 0 / 387.1 MB, free: 9.238 MB / 362.7 MB Notification: Performance of Templates: time 0.005837/0.01572, allocations: 4.291 MB / 391.4 MB, free: 4.949 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.235593041870743]