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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000939/0.0009389, allocations: 94.8 kB / 17.35 MB, free: 6.375 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.001257/0.001257, allocations: 177 kB / 18.25 MB, free: 5.523 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.339/1.339, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1874/0.1874, allocations: 44.25 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.0002889, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1155, allocations: 61.92 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0005163/0.116, allocations: 226.9 kB / 472.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00304/0.1191, allocations: 2.349 MB / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.328e-06/0.1191, allocations: 4 kB / 474.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.258e-06/0.1191, allocations: 0 / 474.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.266e-06/0.1191, allocations: 0 / 474.9 MB, free: 10.66 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.001136/0.1203, allocations: 474.2 kB / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.541e-05/0.1203, allocations: 0 / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.385e-05/0.1203, allocations: 0 / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.599e-05/0.1204, allocations: 4 kB / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.43e-05/0.1204, allocations: 0 / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.23e-06/0.1204, allocations: 4 kB / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009956/0.1214, allocations: 0.7174 MB / 476.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.323e-06/0.1214, allocations: 4 kB / 476.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.094e-05/0.1214, allocations: 29.7 kB / 476.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006096/0.1221, allocations: 463.3 kB / 476.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1221, allocations: 0 / 476.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1221, allocations: 0 / 476.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1221, allocations: 0 / 476.6 MB, free: 8.984 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.0003812/0.1225, allocations: 429.2 kB / 477 MB, free: 8.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.1225, allocations: 12.03 kB / 477 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.575e-05/0.1226, allocations: 38.67 kB / 477.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.828e-05/0.1226, allocations: 4.938 kB / 477.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.555e-05/0.1227, allocations: 160.4 kB / 477.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.1227, allocations: 384 / 477.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-06/0.1227, allocations: 384 / 477.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.311e-05/0.1228, allocations: 37.83 kB / 477.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.32e-06/0.1228, allocations: 0 / 477.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.1228, allocations: 0 / 477.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1228, allocations: 0 / 477.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.772e-05/0.1229, allocations: 11.98 kB / 477.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002276/0.1231, allocations: 232.8 kB / 477.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.795e-05/0.1232, allocations: 22.59 kB / 477.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.378e-05/0.1232, allocations: 12.92 kB / 477.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.103e-06/0.1232, allocations: 3.938 kB / 477.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.1232, allocations: 64.27 kB / 477.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1233, allocations: 0 / 477.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001604/0.1234, allocations: 75.33 kB / 477.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.1235, allocations: 77.11 kB / 477.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.53e-05/0.1235, allocations: 93.77 kB / 477.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.1235, allocations: 25.7 kB / 477.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.524e-05/0.1236, allocations: 80.14 kB / 478 MB, free: 7.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.1236, allocations: 3.938 kB / 478 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.358e-05/0.1236, allocations: 17.84 kB / 478 MB, free: 7.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1237, allocations: 314.8 kB / 478.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.175e-05/0.1238, allocations: 0 / 478.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.395e-06/0.1238, allocations: 11.92 kB / 478.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.15e-05/0.1238, allocations: 60.27 kB / 478.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1238, allocations: 3.938 kB / 478.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.117e-05/0.1239, allocations: 67.34 kB / 478.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.1239, allocations: 37.69 kB / 478.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.124, allocations: 4.094 kB / 478.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.976e-06/0.124, allocations: 0 / 478.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.123e-05/0.124, allocations: 0 / 478.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-06/0.124, allocations: 0 / 478.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.124, allocations: 4 kB / 478.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.124, allocations: 0 / 478.5 MB, free: 6.836 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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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 8.16e-05/0.1241, allocations: 139.5 kB / 478.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.1241, allocations: 8 kB / 478.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.371e-05/0.1242, allocations: 7.078 kB / 478.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1242, allocations: 7.984 kB / 478.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1242, allocations: 3.984 kB / 478.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1242, allocations: 0 / 478.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.1244, allocations: 308.1 kB / 478.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1244, allocations: 0 / 478.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-06/0.1244, allocations: 0 / 478.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1244, allocations: 0 / 478.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.1244, allocations: 0 / 478.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1245, allocations: 0 / 478.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1245, allocations: 4 kB / 478.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.1246, allocations: 173.2 kB / 479.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.961e-05/0.1246, allocations: 77.11 kB / 479.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.1246, allocations: 4 kB / 479.2 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.703e-05/0.1247, allocations: 0 / 479.2 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.1247, allocations: 3.984 kB / 479.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.1247, allocations: 0 / 479.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.224e-05/0.1247, allocations: 87.19 kB / 479.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1247, allocations: 0 / 479.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004113/0.1251, allocations: 159.9 kB / 479.4 MB, free: 5.754 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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001/0.1261, allocations: 0.9373 MB / 480.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.551e-05/0.1262, allocations: 63.41 kB / 480.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1263, allocations: 0 / 480.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.659e-05/0.1263, allocations: 67.33 kB / 480.5 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001811/0.1265, allocations: 2.234 kB / 480.5 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009127/0.1274, allocations: 1.209 MB / 481.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.1277, allocations: 0.6771 MB / 482.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.036e-05/0.1277, allocations: 4 kB / 482.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.1277, allocations: 7.438 kB / 482.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1277, allocations: 0 / 482.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01581/0.1435, allocations: 4.314 MB / 486.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.1438, allocations: 256.6 kB / 487 MB, free: 14.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.019, allocations: 0 / 487 MB, free: 14.18 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > 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