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.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.001298/0.001298, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001437/0.001437, allocations: 214.1 kB / 24.52 MB, free: 3.941 MB / 14.72 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 1.463/1.463, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2554/0.2554, allocations: 44.94 MB / 359.6 MB, free: 6.043 MB / 286.1 MB " [Timeout remaining time 179] 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.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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 59.91 kB / 0.4938 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3781, allocations: 65.47 MB / 0.5577 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001663/0.3797, allocations: 0.492 MB / 0.5582 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.3837, allocations: 2.242 MB / 0.5604 GB, free: 4.633 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.929e-05/0.3837, allocations: 0 / 0.5604 GB, free: 4.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.3837, allocations: 0 / 0.5604 GB, free: 4.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.654e-06/0.3837, allocations: 0 / 0.5604 GB, free: 4.633 MB / 398.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.001834/0.3855, allocations: 0.584 MB / 0.561 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.306e-05/0.3856, allocations: 4 kB / 0.561 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.085e-05/0.3856, allocations: 0 / 0.561 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.23e-05/0.3857, allocations: 7.922 kB / 0.561 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.171e-05/0.3857, allocations: 3.938 kB / 0.561 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.3857, allocations: 4 kB / 0.561 GB, free: 4.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.3869, allocations: 0.7214 MB / 0.5617 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.3869, allocations: 0 / 0.5617 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.3869, allocations: 4 kB / 0.5617 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006636/0.3876, allocations: 448.6 kB / 0.5621 GB, free: 2.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3876, allocations: 0 / 0.5621 GB, free: 2.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3876, allocations: 0 / 0.5621 GB, free: 2.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.3876, allocations: 3.938 kB / 0.5621 GB, free: 2.863 MB / 398.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.0005303/0.3881, allocations: 363.1 kB / 0.5625 GB, free: 2.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.3882, allocations: 20.02 kB / 0.5625 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.309e-05/0.3882, allocations: 192 / 0.5625 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.536e-05/0.3882, allocations: 34.7 kB / 0.5625 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.3883, allocations: 4.938 kB / 0.5625 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.339e-05/0.3884, allocations: 102.5 kB / 0.5626 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.3884, allocations: 4.375 kB / 0.5626 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.3884, allocations: 384 / 0.5626 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.3885, allocations: 67.33 kB / 0.5627 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.3885, allocations: 0 / 0.5627 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.3885, allocations: 7.922 kB / 0.5627 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.3885, allocations: 4 kB / 0.5627 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.038e-05/0.3886, allocations: 33.64 kB / 0.5627 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002498/0.3888, allocations: 200 kB / 0.5629 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.464e-05/0.3889, allocations: 48.3 kB / 0.563 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.092e-05/0.3889, allocations: 38.62 kB / 0.563 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.389, allocations: 0 / 0.563 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.257e-05/0.389, allocations: 64.2 kB / 0.5631 GB, free: 1.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.389, allocations: 0 / 0.5631 GB, free: 1.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002474/0.3893, allocations: 122.8 kB / 0.5632 GB, free: 1.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.3893, allocations: 81.23 kB / 0.5633 GB, free: 1.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.163e-05/0.3894, allocations: 93.86 kB / 0.5634 GB, free: 1.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.3894, allocations: 25.7 kB / 0.5634 GB, free: 1.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.766e-05/0.3894, allocations: 80.14 kB / 0.5635 GB, free: 1.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.3894, allocations: 4 kB / 0.5635 GB, free: 1.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.3895, allocations: 17.7 kB / 0.5635 GB, free: 1.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3896, allocations: 310.8 kB / 0.5638 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.01e-05/0.3897, allocations: 29.7 kB / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.281e-05/0.3897, allocations: 29.7 kB / 0.5638 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.36e-05/0.3898, allocations: 76.12 kB / 0.5639 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3898, allocations: 4.062 kB / 0.5639 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.906e-05/0.3899, allocations: 89.11 kB / 0.564 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.3899, allocations: 33.7 kB / 0.564 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3899, allocations: 0 / 0.564 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.3899, allocations: 0 / 0.564 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.615e-05/0.3899, allocations: 0 / 0.564 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3899, allocations: 3.984 kB / 0.564 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.821e-05/0.39, allocations: 3.953 kB / 0.564 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.39, allocations: 4 kB / 0.564 GB, free: 0.6055 MB / 398.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.0001086/0.3901, allocations: 143.4 kB / 0.5642 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.3901, allocations: 8.031 kB / 0.5642 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.3901, allocations: 7.094 kB / 0.5642 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3901, allocations: 0 / 0.5642 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.3901, allocations: 0 / 0.5642 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3901, allocations: 0 / 0.5642 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.3905, allocations: 301 kB / 0.5645 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3905, allocations: 3.938 kB / 0.5645 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-06/0.3905, allocations: 0 / 0.5645 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.3905, allocations: 0 / 0.5645 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.3905, allocations: 4 kB / 0.5645 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3905, allocations: 4.031 kB / 0.5645 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.3905, allocations: 4 kB / 0.5645 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001801/0.3907, allocations: 202.9 kB / 0.5647 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.768e-06/0.3907, allocations: 7.938 kB / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.3907, allocations: 0 / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.775e-05/0.3907, allocations: 0 / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.114e-05/0.3907, allocations: 7.984 kB / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.3907, allocations: 0 / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.455e-05/0.3908, allocations: 83.22 kB / 0.5648 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3908, allocations: 0 / 0.5648 GB, free: 15.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004965/0.3913, allocations: 163.4 kB / 0.5649 GB, free: 15.57 MB / 414.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.001225/0.3925, allocations: 1.002 MB / 0.5659 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000152/0.3927, allocations: 122.7 kB / 0.566 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3927, allocations: 0 / 0.566 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.35e-05/0.3927, allocations: 85.2 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.3929, allocations: 7.938 kB / 0.5661 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.3941, allocations: 1.352 MB / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.283e-05/0.3941, allocations: 59.34 kB / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.488e-06/0.3941, allocations: 0 / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.928e-05/0.3941, allocations: 7.438 kB / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3941, allocations: 0 / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.4199, allocations: 4.838 MB / 0.5722 GB, free: 8.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.65, allocations: 6.297 kB / 0.5722 GB, free: 8.035 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.645928150042892]