Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.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.001179/0.001179, allocations: 86.59 kB / 21.43 MB, free: 3.066 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.001195/0.001195, allocations: 168.2 kB / 24.82 MB, free: 8.875 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.058/1.058, allocations: 177 MB / 205.1 MB, free: 5.434 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.2792/0.2792, allocations: 34.87 MB / 296.6 MB, free: 0.5117 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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 379.2 MB, free: 1.855 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.238e-05/2.372e-05, allocations: 8.922 kB / 379.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001273/0.001297, allocations: 0.5164 MB / 379.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.004003, allocations: 2.047 MB / 381.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.511e-05/0.004018, allocations: 4 kB / 381.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.242e-05/0.004031, allocations: 0 / 381.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.132e-06/0.004037, allocations: 3.938 kB / 381.8 MB, free: 15.25 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.005211, allocations: 0.5256 MB / 382.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 3.904e-05/0.00525, allocations: 0 / 382.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.758e-05/0.005277, allocations: 3.938 kB / 382.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.512e-05/0.005303, allocations: 7.984 kB / 382.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.486e-05/0.005317, allocations: 0 / 382.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.005324, allocations: 4 kB / 382.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008701/0.006194, allocations: 0.6314 MB / 383 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.025e-06/0.006202, allocations: 3.984 kB / 383 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.48e-05/0.006217, allocations: 4 kB / 383 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000543/0.00676, allocations: 466.8 kB / 383.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.006762, allocations: 0 / 383.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.006763, allocations: 0 / 383.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.307e-06/0.006766, allocations: 0 / 383.4 MB, free: 13.61 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.0003164/0.007082, allocations: 441.3 kB / 383.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.007118, allocations: 12.03 kB / 383.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.432e-05/0.007142, allocations: 4.875 kB / 383.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.652e-05/0.007199, allocations: 104.6 kB / 384 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.007211, allocations: 8.359 kB / 384 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-06/0.007216, allocations: 4.375 kB / 384 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.156e-05/0.007277, allocations: 55.91 kB / 384.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.007284, allocations: 4.188 kB / 384.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-06/0.007289, allocations: 384 / 384.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.007296, allocations: 3.938 kB / 384.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.493e-05/0.00731, allocations: 25.7 kB / 384.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.686e-05/0.007387, allocations: 93.27 kB / 384.2 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.648e-05/0.007424, allocations: 56.75 kB / 384.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.828e-05/0.007442, allocations: 37.48 kB / 384.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-06/0.007445, allocations: 0 / 384.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.007481, allocations: 67.03 kB / 384.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.82e-07/0.007482, allocations: 0 / 384.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000132/0.007614, allocations: 114.8 kB / 384.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.007643, allocations: 81.11 kB / 384.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.605e-05/0.007689, allocations: 142.2 kB / 384.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.687e-06/0.007698, allocations: 25.7 kB / 384.7 MB, free: 12.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.087e-05/0.007728, allocations: 126.9 kB / 384.8 MB, free: 12.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.007751, allocations: 8.297 kB / 384.8 MB, free: 12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.007779, allocations: 23.36 kB / 384.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.007893, allocations: 496.1 kB / 385.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.795e-05/0.007911, allocations: 29.83 kB / 385.4 MB, free: 11.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.406e-05/0.007925, allocations: 33.69 kB / 385.4 MB, free: 11.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.236e-05/0.007968, allocations: 67.03 kB / 385.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.007969, allocations: 0 / 385.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.411e-05/0.008033, allocations: 81.11 kB / 385.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.008061, allocations: 37.69 kB / 385.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.008064, allocations: 0 / 385.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.008075, allocations: 0 / 385.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.008076, allocations: 0 / 385.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.008081, allocations: 4.094 kB / 385.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.389e-05/0.008095, allocations: 7.938 kB / 385.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.008099, allocations: 0 / 385.6 MB, free: 11.16 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.096e-05/0.00817, allocations: 182.3 kB / 385.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-06/0.008178, allocations: 7.938 kB / 385.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.046e-05/0.008189, allocations: 3 kB / 385.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.00819, allocations: 3.938 kB / 385.8 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.008193, allocations: 4 kB / 385.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.008196, allocations: 3.984 kB / 385.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.792e-05/0.008254, allocations: 97.2 kB / 385.9 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.008255, allocations: 4 kB / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.008255, allocations: 0 / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.008256, allocations: 0 / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-06/0.00826, allocations: 0 / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.008261, allocations: 0 / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.008263, allocations: 3.984 kB / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.796e-05/0.008351, allocations: 135.8 kB / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-06/0.008354, allocations: 0 / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.127e-06/0.008363, allocations: 0 / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.432e-06/0.00837, allocations: 0 / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.628e-06/0.008379, allocations: 4 kB / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-06/0.008381, allocations: 4.031 kB / 386 MB, free: 10.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.95e-05/0.008411, allocations: 119.2 kB / 386.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008411, allocations: 0 / 386.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003517/0.008763, allocations: 135.5 kB / 386.3 MB, free: 10.39 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.0005708/0.009333, allocations: 335.8 kB / 386.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.704e-05/0.00943, allocations: 122.5 kB / 386.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.009432, allocations: 0 / 386.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.632e-05/0.009468, allocations: 96.78 kB / 386.8 MB, free: 9.797 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001109/0.009579, allocations: 7.938 kB / 386.8 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.009737, allocations: 114.5 kB / 386.9 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.882e-05/0.009766, allocations: 51.36 kB / 387 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.009771, allocations: 0 / 387 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.664e-05/0.009808, allocations: 70.2 kB / 387.1 MB, free: 9.5 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.009808, allocations: 128 / 387.1 MB, free: 9.5 MB / 362.7 MB Notification: Performance of Templates: time 0.006867/0.01668, allocations: 4.194 MB / 391.2 MB, free: 5.309 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.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.309018569998443]