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.001378/0.001378, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001061/0.001061, allocations: 170 kB / 24.82 MB, free: 9.254 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.029/1.029, allocations: 177 MB / 205.1 MB, free: 5.492 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.2905/0.2905, allocations: 34.87 MB / 296.6 MB, free: 0.5195 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.843e-06/1.843e-06, allocations: 0 / 379.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.596e-05/2.78e-05, allocations: 6.312 kB / 379.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001256/0.001284, allocations: 0.5177 MB / 379.7 MB, free: 1.34 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003064/0.004348, allocations: 2.28 MB / 382 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.52e-05/0.004373, allocations: 0 / 382 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.124e-05/0.004395, allocations: 4 kB / 382 MB, free: 15.03 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 9.417e-06/0.004404, allocations: 0 / 382 MB, free: 15.03 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.001827/0.006231, allocations: 0.5916 MB / 382.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.821e-05/0.006299, allocations: 11.94 kB / 382.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.225e-05/0.006351, allocations: 0 / 382.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.648e-05/0.006398, allocations: 3.984 kB / 382.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.634e-05/0.006424, allocations: 0 / 382.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.006435, allocations: 0 / 382.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.007792, allocations: 0.6704 MB / 383.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.304e-05/0.007805, allocations: 0 / 383.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.248e-05/0.007827, allocations: 8 kB / 383.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007907/0.008618, allocations: 0.5258 MB / 383.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.008623, allocations: 0 / 383.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.008625, allocations: 0 / 383.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.008631, allocations: 0 / 383.8 MB, free: 13.21 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.0004325/0.009063, allocations: 469 kB / 384.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.009109, allocations: 12.03 kB / 384.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.304e-05/0.009142, allocations: 4.922 kB / 384.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.362e-05/0.009206, allocations: 112.6 kB / 384.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.009216, allocations: 384 / 384.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-06/0.009222, allocations: 384 / 384.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.277e-05/0.009305, allocations: 55.97 kB / 384.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.009315, allocations: 192 / 384.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.515e-06/0.009322, allocations: 384 / 384.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.009331, allocations: 3.938 kB / 384.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.156e-05/0.009352, allocations: 33.58 kB / 384.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.217e-05/0.009444, allocations: 97.25 kB / 384.6 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.249e-05/0.009497, allocations: 56.86 kB / 384.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.015e-05/0.009517, allocations: 37.39 kB / 384.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-06/0.009521, allocations: 0 / 384.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.009567, allocations: 63.09 kB / 384.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.009568, allocations: 0 / 384.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001821/0.00975, allocations: 122.7 kB / 384.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.009789, allocations: 77.11 kB / 385 MB, free: 11.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.763e-05/0.009847, allocations: 142.2 kB / 385.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.009859, allocations: 29.7 kB / 385.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.932e-05/0.009899, allocations: 126.9 kB / 385.2 MB, free: 11.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.00992, allocations: 4.344 kB / 385.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.00995, allocations: 19.5 kB / 385.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.01012, allocations: 0.4922 MB / 385.8 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.771e-05/0.01015, allocations: 29.7 kB / 385.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.833e-05/0.01017, allocations: 25.7 kB / 385.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.745e-05/0.01022, allocations: 63.09 kB / 385.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01023, allocations: 0 / 385.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.515e-05/0.01032, allocations: 96.98 kB / 386 MB, free: 10.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.68e-05/0.01037, allocations: 29.7 kB / 386 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.01038, allocations: 0 / 386 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.0104, allocations: 8.094 kB / 386 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.683e-06/0.0104, allocations: 0 / 386 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.0104, allocations: 0 / 386 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.146e-05/0.01042, allocations: 7.938 kB / 386 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.01043, allocations: 0 / 386 MB, free: 10.73 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.0005008/0.01093, allocations: 182.3 kB / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-06/0.01094, allocations: 0 / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.838e-05/0.01096, allocations: 6.984 kB / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.01096, allocations: 0 / 386.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.01096, allocations: 4 kB / 386.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.01097, allocations: 4 kB / 386.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.296e-05/0.01104, allocations: 93.2 kB / 386.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.01104, allocations: 4 kB / 386.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.01105, allocations: 0 / 386.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.01105, allocations: 3.938 kB / 386.3 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/0.01105, allocations: 4 kB / 386.3 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.01106, allocations: 0 / 386.3 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.01106, allocations: 3.938 kB / 386.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001141/0.01117, allocations: 131.8 kB / 386.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-06/0.01118, allocations: 0 / 386.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.01119, allocations: 4 kB / 386.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.182e-06/0.01119, allocations: 4.031 kB / 386.4 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.024e-05/0.0112, allocations: 3.984 kB / 386.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.01121, allocations: 0 / 386.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.833e-05/0.01123, allocations: 119.2 kB / 386.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01123, allocations: 0 / 386.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003458/0.01158, allocations: 163.3 kB / 386.7 MB, free: 9.941 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.0006274/0.01221, allocations: 375.1 kB / 387.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.01233, allocations: 122.4 kB / 387.2 MB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.01233, allocations: 0 / 387.2 MB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.102e-05/0.01236, allocations: 88.8 kB / 387.3 MB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.772e-05/0.01246, allocations: 11.92 kB / 387.3 MB, free: 9.301 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001909/0.01265, allocations: 114.5 kB / 387.4 MB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.451e-05/0.01269, allocations: 51.36 kB / 387.5 MB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.747e-06/0.0127, allocations: 4.109 kB / 387.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.282e-05/0.01274, allocations: 74.2 kB / 387.6 MB, free: 9.004 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01274, allocations: 0 / 387.6 MB, free: 9.004 MB / 362.7 MB Notification: Performance of Templates: time 0.006914/0.01965, allocations: 4.317 MB / 391.9 MB, free: 4.691 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.228807086125016]