Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.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.001934/0.001934, allocations: 96.25 kB / 20.96 MB, free: 3.473 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.002467/0.002467, allocations: 160.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.513/1.513, allocations: 177 MB / 204.4 MB, free: 5.617 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.368/0.368, allocations: 34.25 MB / 295.2 MB, free: 0.6719 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.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.853e-05/3.004e-05, allocations: 2.312 kB / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001706/0.001736, allocations: 0.4991 MB / 377.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.005113, allocations: 1.942 MB / 379.6 MB, free: 476 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.571e-05/0.005129, allocations: 4 kB / 379.6 MB, free: 472 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.16e-05/0.00514, allocations: 0 / 379.6 MB, free: 472 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.913e-06/0.005147, allocations: 4 kB / 379.6 MB, free: 468 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001705/0.006852, allocations: 0.4945 MB / 380.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.731e-05/0.006899, allocations: 0 / 380.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.953e-05/0.006938, allocations: 7.984 kB / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.745e-05/0.006966, allocations: 0 / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.086e-05/0.006987, allocations: 0 / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.815e-06/0.006995, allocations: 0 / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/0.008237, allocations: 0.6743 MB / 380.8 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.008247, allocations: 3.984 kB / 380.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.435e-05/0.008272, allocations: 0 / 380.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009542/0.009226, allocations: 490.7 kB / 381.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.009229, allocations: 0 / 381.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00923, allocations: 0 / 381.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.009234, allocations: 4 kB / 381.3 MB, free: 14.79 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.0005387/0.009773, allocations: 335.5 kB / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.009814, allocations: 8.031 kB / 381.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.009862, allocations: 4.938 kB / 381.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.009964, allocations: 105.8 kB / 381.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.009976, allocations: 384 / 381.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-06/0.009986, allocations: 8.312 kB / 381.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.01011, allocations: 63.94 kB / 381.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.01012, allocations: 192 / 381.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.086e-06/0.01013, allocations: 384 / 381.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.01013, allocations: 11.94 kB / 381.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.639e-05/0.01017, allocations: 29.64 kB / 381.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.0103, allocations: 97.33 kB / 382 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.744e-05/0.01037, allocations: 44.31 kB / 382 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.529e-05/0.01041, allocations: 34.55 kB / 382 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.01042, allocations: 4.062 kB / 382 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.982e-05/0.01048, allocations: 64.27 kB / 382.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.01048, allocations: 0 / 382.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002275/0.01071, allocations: 114.8 kB / 382.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.027e-05/0.01078, allocations: 89.03 kB / 382.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.893e-05/0.01084, allocations: 93.98 kB / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.01086, allocations: 29.7 kB / 382.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.0109, allocations: 80.14 kB / 382.5 MB, free: 13.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.01092, allocations: 3.938 kB / 382.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.01095, allocations: 13.72 kB / 382.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.01111, allocations: 310.8 kB / 382.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.124e-05/0.01115, allocations: 25.7 kB / 382.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.547e-05/0.01117, allocations: 29.7 kB / 382.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.645e-05/0.01126, allocations: 68.25 kB / 382.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.01126, allocations: 64 / 382.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001005/0.01136, allocations: 93.05 kB / 383 MB, free: 12.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/0.0114, allocations: 29.7 kB / 383.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.0114, allocations: 0 / 383.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.01142, allocations: 0 / 383.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.401e-06/0.01142, allocations: 3.984 kB / 383.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.01143, allocations: 3.938 kB / 383.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.19e-05/0.01144, allocations: 4 kB / 383.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-06/0.01145, allocations: 0 / 383.1 MB, free: 12.75 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.0001056/0.01155, allocations: 139.5 kB / 383.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.01156, allocations: 7.984 kB / 383.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.165e-06/0.01157, allocations: 3 kB / 383.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.01157, allocations: 0 / 383.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.01158, allocations: 3.938 kB / 383.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.01158, allocations: 3.938 kB / 383.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.15e-05/0.01167, allocations: 101.3 kB / 383.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.01167, allocations: 0 / 383.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.01167, allocations: 0 / 383.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.01168, allocations: 0 / 383.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.01168, allocations: 0 / 383.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.01169, allocations: 4 kB / 383.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.01169, allocations: 7.938 kB / 383.3 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001328/0.01182, allocations: 120.5 kB / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-06/0.01183, allocations: 0 / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.01184, allocations: 0 / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.141e-05/0.01185, allocations: 4 kB / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.424e-05/0.01186, allocations: 0 / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.01187, allocations: 0 / 383.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.468e-05/0.01191, allocations: 79.22 kB / 383.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01191, allocations: 0 / 383.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004862/0.0124, allocations: 135.6 kB / 383.7 MB, free: 12.07 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.0008901/0.01329, allocations: 336.2 kB / 384 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001422/0.01343, allocations: 118.7 kB / 384.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01343, allocations: 8 kB / 384.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.327e-05/0.01349, allocations: 81.11 kB / 384.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.01363, allocations: 3.938 kB / 384.2 MB, free: 11.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002257/0.01385, allocations: 112.8 kB / 384.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.68e-05/0.01391, allocations: 55.36 kB / 384.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.989e-06/0.01391, allocations: 0 / 384.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.801e-05/0.01393, allocations: 12.5 kB / 384.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of SimCode: time 4.3e-07/0.01393, allocations: 0 / 384.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of Templates: time 0.008364/0.0223, allocations: 3.527 MB / 387.9 MB, free: 7.738 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.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: 4.973370807012543]