Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009563/0.0009563, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00127/0.002226, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007319/0.0007319, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008786/0.00161, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.976/0.976, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08917/1.065, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.253/0.253, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02592/0.2789, allocations: 13.1 MB / 291.3 MB, free: 7.363 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 292.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.51e-05, allocations: 2.312 kB / 292.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001434/0.001459, allocations: 0.5631 MB / 293.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004967/0.006427, allocations: 2.316 MB / 295.5 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.006444, allocations: 0 / 295.5 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.36e-06/0.006449, allocations: 0 / 295.5 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.363e-06/0.00645, allocations: 0 / 295.5 MB, free: 3.402 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.001301/0.007751, allocations: 0.5331 MB / 296 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.363e-05/0.007815, allocations: 4.5 kB / 296 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.602e-05/0.007851, allocations: 0 / 296 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.546e-05/0.007886, allocations: 4 kB / 296 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.394e-05/0.00791, allocations: 0 / 296 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-06/0.007918, allocations: 0 / 296 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004188/0.01211, allocations: 0.7251 MB / 296.8 MB, free: 2.133 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.377e-06/0.01212, allocations: 4 kB / 296.8 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.794e-05/0.01213, allocations: 4 kB / 296.8 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006314/0.01276, allocations: 438.9 kB / 297.2 MB, free: 1.695 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.248e-05/0.01279, allocations: 0 / 297.2 MB, free: 1.695 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.01279, allocations: 0 / 297.2 MB, free: 1.695 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.01281, allocations: 0 / 297.2 MB, free: 1.695 MB / 282.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.0004539/0.01326, allocations: 389.3 kB / 297.6 MB, free: 1.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.0133, allocations: 16.03 kB / 297.6 MB, free: 1.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.01333, allocations: 0.9375 kB / 297.6 MB, free: 1.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.081e-05/0.01339, allocations: 105.8 kB / 297.7 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.0134, allocations: 8.312 kB / 297.7 MB, free: 1.133 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.552e-06/0.01341, allocations: 384 / 297.7 MB, free: 1.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.9e-05/0.01349, allocations: 59.95 kB / 297.8 MB, free: 1.062 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.0135, allocations: 192 / 297.8 MB, free: 1.062 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-06/0.0135, allocations: 4.359 kB / 297.8 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.01351, allocations: 3.938 kB / 297.8 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.065e-05/0.01353, allocations: 29.7 kB / 297.8 MB, free: 1.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.973e-05/0.0136, allocations: 61.05 kB / 297.9 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.592e-05/0.01365, allocations: 52.23 kB / 297.9 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.708e-05/0.01366, allocations: 30.56 kB / 297.9 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-06/0.01367, allocations: 0 / 297.9 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.0137, allocations: 60.33 kB / 298 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.0137, allocations: 0 / 298 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000133/0.01384, allocations: 110.8 kB / 298.1 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.01388, allocations: 81.11 kB / 298.2 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.423e-05/0.01391, allocations: 89.86 kB / 298.3 MB, free: 448 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.01392, allocations: 29.7 kB / 298.3 MB, free: 412 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.016e-05/0.01394, allocations: 84.27 kB / 298.4 MB, free: 324 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.01396, allocations: 0 / 298.4 MB, free: 324 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.578e-05/0.01398, allocations: 17.66 kB / 298.4 MB, free: 300 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.41e-05/0.01408, allocations: 314.8 kB / 298.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005949/0.01467, allocations: 29.7 kB / 298.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.439e-05/0.01469, allocations: 33.62 kB / 298.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.746e-05/0.01473, allocations: 60.27 kB / 298.8 MB, free: 15.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.01474, allocations: 0 / 298.8 MB, free: 15.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.462e-05/0.0148, allocations: 89.09 kB / 298.9 MB, free: 15.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.01484, allocations: 33.8 kB / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.01485, allocations: 0 / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.01486, allocations: 0 / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.781e-06/0.01486, allocations: 0 / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.01487, allocations: 3.938 kB / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.918e-05/0.01489, allocations: 4.688 kB / 299 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.0149, allocations: 7.938 kB / 299 MB, free: 15.67 MB / 298.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.705e-05/0.01497, allocations: 139.5 kB / 299.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.53e-06/0.01497, allocations: 0 / 299.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.055e-05/0.01498, allocations: 10.98 kB / 299.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.01499, allocations: 4 kB / 299.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.01499, allocations: 0 / 299.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.01499, allocations: 0 / 299.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.821e-05/0.01505, allocations: 69.78 kB / 299.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.01505, allocations: 0 / 299.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.01505, allocations: 0 / 299.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.647e-06/0.01505, allocations: 0 / 299.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.42e-07/0.01505, allocations: 0 / 299.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-06/0.01506, allocations: 4 kB / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.01506, allocations: 0 / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.01506, allocations: 0 / 299.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.628e-05/0.01515, allocations: 120.4 kB / 299.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.01516, allocations: 4 kB / 299.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.374e-06/0.01517, allocations: 0 / 299.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.01518, allocations: 3.984 kB / 299.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.01518, allocations: 0 / 299.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.504e-06/0.01519, allocations: 4.859 kB / 299.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01519, allocations: 0 / 299.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000358/0.01555, allocations: 159.4 kB / 299.5 MB, free: 15.09 MB / 298.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.0006191/0.01617, allocations: 387.4 kB / 299.9 MB, free: 14.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001014/0.01627, allocations: 119.7 kB / 300 MB, free: 14.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.01627, allocations: 0 / 300 MB, free: 14.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.425e-05/0.01631, allocations: 89.95 kB / 300.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.179e-05/0.01636, allocations: 7.938 kB / 300.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001589/0.01652, allocations: 110.4 kB / 300.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.04e-05/0.01655, allocations: 59.47 kB / 300.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.832e-06/0.01656, allocations: 3.984 kB / 300.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.394e-05/0.01659, allocations: 55.38 kB / 300.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01659, allocations: 0 / 300.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of Templates: time 0.005674/0.02227, allocations: 4.312 MB / 304.6 MB, free: 9.883 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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: 2.90543710347265]