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.001316/0.001316, allocations: 100 kB / 17.63 MB, free: 5.523 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.001424/0.001424, allocations: 192.1 kB / 18.56 MB, free: 4.602 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.344/1.344, allocations: 222.9 MB / 242.2 MB, free: 15.27 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.2534/0.2534, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 60.62 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1182, allocations: 60.82 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001853/0.1201, allocations: 495.7 kB / 469.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003226/0.1233, allocations: 2.314 MB / 472.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.51e-05/0.1234, allocations: 0 / 472.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.84e-05/0.1234, allocations: 0 / 472.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.177e-06/0.1234, allocations: 0 / 472.2 MB, free: 11.47 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.001424/0.1249, allocations: 0.5639 MB / 472.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.949e-05/0.1249, allocations: 4 kB / 472.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.88e-05/0.125, allocations: 11.92 kB / 472.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.125, allocations: 0 / 472.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.705e-05/0.125, allocations: 0 / 472.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.344e-06/0.125, allocations: 4 kB / 472.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.1262, allocations: 0.6824 MB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.258e-05/0.1262, allocations: 0 / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.1263, allocations: 4 kB / 473.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007309/0.127, allocations: 455.4 kB / 473.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.127, allocations: 0 / 473.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.127, allocations: 0 / 473.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.127, allocations: 0 / 473.9 MB, free: 9.758 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.0005732/0.1276, allocations: 429.2 kB / 474.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1277, allocations: 16.02 kB / 474.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.512e-05/0.1277, allocations: 34.69 kB / 474.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.1278, allocations: 0.9375 kB / 474.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.1279, allocations: 160.4 kB / 474.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1279, allocations: 8.375 kB / 474.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.615e-06/0.1279, allocations: 384 / 474.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.128, allocations: 41.81 kB / 474.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1281, allocations: 0 / 474.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.1281, allocations: 0 / 474.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1281, allocations: 0 / 474.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.38e-05/0.1281, allocations: 4 kB / 474.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002725/0.1284, allocations: 228.8 kB / 474.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.519e-05/0.1285, allocations: 30.59 kB / 474.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.827e-05/0.1285, allocations: 12.92 kB / 474.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.1285, allocations: 0 / 474.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.1286, allocations: 56.27 kB / 474.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1286, allocations: 0 / 474.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000205/0.1288, allocations: 75.33 kB / 474.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.1289, allocations: 81.23 kB / 475 MB, free: 8.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.639e-05/0.1289, allocations: 97.77 kB / 475.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.1289, allocations: 25.7 kB / 475.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.135e-05/0.129, allocations: 80.14 kB / 475.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.129, allocations: 3.938 kB / 475.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/0.129, allocations: 13.72 kB / 475.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1292, allocations: 318.8 kB / 475.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.1292, allocations: 0 / 475.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.083e-05/0.1292, allocations: 8 kB / 475.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.759e-05/0.1293, allocations: 68.2 kB / 475.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1293, allocations: 3.938 kB / 475.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.644e-05/0.1294, allocations: 71.33 kB / 475.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.1294, allocations: 33.64 kB / 475.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1294, allocations: 0 / 475.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1295, allocations: 0 / 475.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.86e-05/0.1295, allocations: 4 kB / 475.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.1295, allocations: 0 / 475.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.623e-05/0.1295, allocations: 8.094 kB / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1295, allocations: 0 / 475.7 MB, free: 7.602 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 0.0001095/0.1296, allocations: 147.5 kB / 475.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.1297, allocations: 0 / 475.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.845e-05/0.1297, allocations: 7.078 kB / 475.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1297, allocations: 0 / 475.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.1297, allocations: 0 / 475.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1297, allocations: 0 / 475.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.13, allocations: 308.1 kB / 476.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.13, allocations: 0 / 476.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.686e-06/0.13, allocations: 0 / 476.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.13, allocations: 0 / 476.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.1301, allocations: 0 / 476.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.1301, allocations: 7.984 kB / 476.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1301, allocations: 0 / 476.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.1302, allocations: 165.2 kB / 476.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.1303, allocations: 85.16 kB / 476.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.1303, allocations: 7.984 kB / 476.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.669e-05/0.1303, allocations: 0 / 476.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.193e-05/0.1304, allocations: 3.938 kB / 476.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.1304, allocations: 0 / 476.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.841e-05/0.1304, allocations: 75.28 kB / 476.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1304, allocations: 4 kB / 476.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004792/0.1309, allocations: 155.9 kB / 476.7 MB, free: 6.535 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.001037/0.132, allocations: 0.9371 MB / 477.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.1321, allocations: 75.36 kB / 477.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1321, allocations: 0 / 477.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.665e-05/0.1322, allocations: 55.41 kB / 477.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.1324, allocations: 2.5 kB / 477.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.1334, allocations: 1.219 MB / 479 MB, free: 4.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.1338, allocations: 0.669 MB / 479.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.184e-05/0.1338, allocations: 0 / 479.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.564e-05/0.1338, allocations: 11.44 kB / 479.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1338, allocations: 0 / 479.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02438/0.1582, allocations: 4.495 MB / 484.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.931/10.09, allocations: 15.44 kB / 484.2 MB, free: 14.98 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