Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 109.3 kB / 18.39 MB, free: 4.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001791/0.001791, allocations: 184.1 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 243 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2047/0.2047, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001336, allocations: 64.88 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1036, allocations: 60.84 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001827/0.1054, allocations: 494.8 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.1087, allocations: 2.314 MB / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.093e-05/0.1088, allocations: 0 / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.1088, allocations: 0 / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.212e-06/0.1088, allocations: 0 / 473.5 MB, free: 10.82 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001814/0.1107, allocations: 0.56 MB / 474.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.469e-05/0.1107, allocations: 4 kB / 474.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.578e-05/0.1108, allocations: 4 kB / 474.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.923e-05/0.1108, allocations: 4 kB / 474.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.891e-05/0.1108, allocations: 0 / 474.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.1108, allocations: 0 / 474.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001208/0.112, allocations: 0.6902 MB / 474.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.1121, allocations: 0 / 474.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.866e-05/0.1121, allocations: 0 / 474.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007701/0.1129, allocations: 459.1 kB / 475.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1129, allocations: 0 / 475.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1129, allocations: 0 / 475.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1129, allocations: 0 / 475.2 MB, free: 9.113 MB / 350.1 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.0005174/0.1134, allocations: 433.2 kB / 475.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1135, allocations: 12.03 kB / 475.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.1135, allocations: 4.938 kB / 475.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.129e-05/0.1136, allocations: 160.4 kB / 475.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.1136, allocations: 4.359 kB / 475.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-06/0.1136, allocations: 384 / 475.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.592e-05/0.1137, allocations: 34.02 kB / 475.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.1137, allocations: 3.938 kB / 475.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.1138, allocations: 0 / 475.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1138, allocations: 0 / 475.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.888e-05/0.1138, allocations: 4 kB / 475.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.1139, allocations: 149.7 kB / 476 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.025e-05/0.114, allocations: 18.56 kB / 476 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.691e-05/0.114, allocations: 8.953 kB / 476 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.845e-06/0.114, allocations: 0 / 476 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.1141, allocations: 64.2 kB / 476.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.675e-06/0.1141, allocations: 0 / 476.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002103/0.1143, allocations: 71.33 kB / 476.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.088e-05/0.1144, allocations: 85.22 kB / 476.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.526e-05/0.1144, allocations: 89.86 kB / 476.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1144, allocations: 25.7 kB / 476.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.027e-05/0.1145, allocations: 84.14 kB / 476.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.1145, allocations: 0 / 476.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.1146, allocations: 13.72 kB / 476.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1147, allocations: 310.8 kB / 476.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.624e-05/0.1147, allocations: 4 kB / 476.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.762e-06/0.1147, allocations: 4 kB / 476.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.917e-05/0.1148, allocations: 64.2 kB / 476.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.1148, allocations: 0 / 476.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.572e-05/0.1149, allocations: 67.39 kB / 476.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.337e-05/0.115, allocations: 37.58 kB / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.115, allocations: 0 / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.115, allocations: 0 / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.115, allocations: 0 / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.115, allocations: 0 / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.1151, allocations: 12.03 kB / 476.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1151, allocations: 0 / 476.9 MB, free: 7.113 MB / 350.1 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.0001292/0.1152, allocations: 135.5 kB / 477.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.1152, allocations: 7.938 kB / 477.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.437e-05/0.1153, allocations: 7.078 kB / 477.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1153, allocations: 0 / 477.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1153, allocations: 0 / 477.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1153, allocations: 0 / 477.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.1154, allocations: 153.6 kB / 477.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1154, allocations: 4 kB / 477.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.1154, allocations: 0 / 477.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1154, allocations: 3.938 kB / 477.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.1155, allocations: 3.938 kB / 477.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1155, allocations: 0 / 477.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1155, allocations: 0 / 477.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.1156, allocations: 90.83 kB / 477.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.1156, allocations: 81.11 kB / 477.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.1157, allocations: 7.969 kB / 477.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.01e-05/0.1157, allocations: 4 kB / 477.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.1157, allocations: 0 / 477.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-06/0.1157, allocations: 0 / 477.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.005e-05/0.1157, allocations: 75.28 kB / 477.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1157, allocations: 0 / 477.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005583/0.1163, allocations: 159.9 kB / 477.7 MB, free: 6.285 MB / 350.1 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.0008093/0.1171, allocations: 340.7 kB / 478 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001111/0.1172, allocations: 63.33 kB / 478.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1173, allocations: 0 / 478.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.395e-05/0.1173, allocations: 59.41 kB / 478.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.1174, allocations: 0 / 478.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001882/0.1176, allocations: 85 kB / 478.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.1179, allocations: 0.6768 MB / 478.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.832e-06/0.1179, allocations: 0 / 478.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.273e-05/0.1179, allocations: 7.438 kB / 478.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1179, allocations: 0 / 478.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of Templates: time 0.006962/0.1249, allocations: 3.515 MB / 482.4 MB, free: 1.473 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches