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.001616/0.001616, allocations: 91.61 kB / 21.19 MB, free: 3.395 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.001961/0.001961, allocations: 164.5 kB / 24.56 MB, free: 36 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.01/1.01, allocations: 177 MB / 204.8 MB, free: 5.598 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.2945/0.2945, allocations: 34.87 MB / 296.3 MB, free: 0.543 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.173e-06/1.173e-06, allocations: 0 / 378.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.258e-05/1.376e-05, allocations: 6.25 kB / 378.8 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001204/0.001218, allocations: 0.5172 MB / 379.3 MB, free: 1.578 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.003374, allocations: 2.065 MB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.27e-05/0.003386, allocations: 0 / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.003401, allocations: 0 / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 5.59e-06/0.003406, allocations: 0 / 381.3 MB, free: 15.49 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.0009237/0.00433, allocations: 0.5295 MB / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.288e-05/0.004373, allocations: 0 / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.997e-05/0.004403, allocations: 0 / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.348e-05/0.004426, allocations: 4 kB / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.681e-05/0.004443, allocations: 3.938 kB / 381.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.804e-06/0.004451, allocations: 0 / 381.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006978/0.005149, allocations: 0.6508 MB / 382.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.005157, allocations: 0 / 382.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.031e-05/0.005177, allocations: 4 kB / 382.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.00564, allocations: 458.8 kB / 383 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.005643, allocations: 0 / 383 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005643, allocations: 8 kB / 383 MB, free: 13.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.005648, allocations: 0 / 383 MB, free: 13.84 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.0003462/0.005994, allocations: 445.2 kB / 383.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.00603, allocations: 12.03 kB / 383.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.12e-05/0.006061, allocations: 0.9375 kB / 383.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.115e-05/0.006112, allocations: 104.6 kB / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.006121, allocations: 384 / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.006131, allocations: 4.375 kB / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.609e-05/0.006207, allocations: 55.95 kB / 383.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.006215, allocations: 192 / 383.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.006224, allocations: 4.375 kB / 383.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.006232, allocations: 7.938 kB / 383.6 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.001e-05/0.006252, allocations: 33.64 kB / 383.6 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.084e-05/0.006333, allocations: 108.6 kB / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.818e-05/0.006371, allocations: 48.77 kB / 383.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.803e-05/0.006389, allocations: 37.48 kB / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-06/0.006393, allocations: 0 / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.006426, allocations: 67.08 kB / 383.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.006427, allocations: 0 / 383.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001492/0.006576, allocations: 126.7 kB / 384 MB, free: 12.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.006612, allocations: 89.17 kB / 384.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.033e-05/0.006652, allocations: 146.2 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.006661, allocations: 25.7 kB / 384.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.546e-05/0.006687, allocations: 126.9 kB / 384.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.006702, allocations: 4.297 kB / 384.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.206e-05/0.006724, allocations: 23.38 kB / 384.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.006827, allocations: 492.1 kB / 384.9 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.726e-05/0.006845, allocations: 25.7 kB / 384.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.164e-05/0.006856, allocations: 29.7 kB / 385 MB, free: 11.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.056e-05/0.006897, allocations: 63.09 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.0069, allocations: 8.047 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.856e-05/0.006959, allocations: 93.05 kB / 385.1 MB, free: 11.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.006985, allocations: 29.7 kB / 385.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.00699, allocations: 0 / 385.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.007003, allocations: 0 / 385.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.486e-06/0.007006, allocations: 0 / 385.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.007012, allocations: 3.938 kB / 385.2 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.142e-05/0.007023, allocations: 7.984 kB / 385.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.007029, allocations: 0 / 385.2 MB, free: 11.36 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 6.544e-05/0.007095, allocations: 182.3 kB / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.972e-06/0.007101, allocations: 7.984 kB / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.925e-06/0.007109, allocations: 3 kB / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.00711, allocations: 0 / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.007113, allocations: 0 / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.007117, allocations: 3.938 kB / 385.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.364e-05/0.007171, allocations: 112.6 kB / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.007171, allocations: 0 / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.007172, allocations: 0 / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.007173, allocations: 0 / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-06/0.007178, allocations: 0 / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.11e-07/0.007178, allocations: 4 kB / 385.5 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.007179, allocations: 0 / 385.5 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.158e-05/0.007251, allocations: 139.7 kB / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.176e-06/0.007254, allocations: 0 / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.05e-05/0.007264, allocations: 0 / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.968e-06/0.007268, allocations: 3.938 kB / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.014e-05/0.007278, allocations: 4 kB / 385.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.00728, allocations: 4 kB / 385.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.721e-05/0.007308, allocations: 123.1 kB / 385.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007308, allocations: 0 / 385.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002303/0.007538, allocations: 131.5 kB / 385.9 MB, free: 10.57 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.0008293/0.008367, allocations: 336.1 kB / 386.2 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001002/0.008468, allocations: 126.4 kB / 386.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.008469, allocations: 0 / 386.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.934e-05/0.008498, allocations: 96.86 kB / 386.4 MB, free: 9.969 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.193e-05/0.00858, allocations: 0 / 386.4 MB, free: 9.969 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001517/0.008732, allocations: 110.5 kB / 386.5 MB, free: 9.824 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.733e-05/0.008759, allocations: 55.34 kB / 386.6 MB, free: 9.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.849e-06/0.008764, allocations: 4 kB / 386.6 MB, free: 9.746 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.096e-05/0.008775, allocations: 8.5 kB / 386.6 MB, free: 9.738 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.008775, allocations: 0 / 386.6 MB, free: 9.738 MB / 362.7 MB Notification: Performance of Templates: time 0.004418/0.01319, allocations: 3.543 MB / 390.1 MB, free: 6.203 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.351785311009735]