Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 119.9 kB / 17.13 MB, free: 5.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001936/0.001936, allocations: 196.7 kB / 20.07 MB, free: 3.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 207.6 MB / 230.5 MB, free: 4.055 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.362/0.362, allocations: 44.22 MB / 326.5 MB, free: 6.852 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 71.89 kB / 462.2 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3256, allocations: 61 MB / 0.5109 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001633/0.3272, allocations: 0.5077 MB / 0.5114 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002966/0.3302, allocations: 2.354 MB / 0.5137 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.253e-05/0.3302, allocations: 0 / 0.5137 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.3302, allocations: 0 / 0.5137 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.203e-06/0.3302, allocations: 0 / 0.5137 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.3318, allocations: 0.5666 MB / 0.5142 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.087e-05/0.3319, allocations: 2.531 kB / 0.5143 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.151e-05/0.3319, allocations: 5.406 kB / 0.5143 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.637e-05/0.3319, allocations: 0 / 0.5143 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.665e-05/0.332, allocations: 1.719 kB / 0.5143 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.461e-06/0.332, allocations: 0 / 0.5143 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001041/0.333, allocations: 0.7213 MB / 0.515 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.636e-06/0.333, allocations: 1 kB / 0.515 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.181e-05/0.333, allocations: 1.219 kB / 0.515 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005798/0.3336, allocations: 462.4 kB / 0.5154 GB, free: 9.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3336, allocations: 0 / 0.5154 GB, free: 9.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3336, allocations: 5.938 kB / 0.5154 GB, free: 9.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.3336, allocations: 0 / 0.5154 GB, free: 9.941 MB / 382.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.0003964/0.334, allocations: 440.9 kB / 0.5158 GB, free: 9.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3341, allocations: 17.03 kB / 0.5158 GB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.928e-05/0.3341, allocations: 32.16 kB / 0.5159 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.3341, allocations: 4.938 kB / 0.5159 GB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.635e-05/0.3342, allocations: 160.4 kB / 0.516 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.774e-06/0.3342, allocations: 1.75 kB / 0.516 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.3342, allocations: 1.938 kB / 0.516 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.823e-05/0.3343, allocations: 44.41 kB / 0.5161 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3343, allocations: 5.484 kB / 0.5161 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-06/0.3343, allocations: 0 / 0.5161 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3343, allocations: 0 / 0.5161 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.145e-05/0.3344, allocations: 2.688 kB / 0.5161 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001872/0.3346, allocations: 231.7 kB / 0.5163 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.739e-05/0.3346, allocations: 24.19 kB / 0.5163 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.118e-05/0.3346, allocations: 11.67 kB / 0.5163 GB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-06/0.3346, allocations: 0 / 0.5163 GB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.3347, allocations: 61.55 kB / 0.5164 GB, free: 8.801 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.3347, allocations: 5.438 kB / 0.5164 GB, free: 8.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001879/0.3348, allocations: 66.39 kB / 0.5165 GB, free: 8.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.3349, allocations: 82.27 kB / 0.5166 GB, free: 8.633 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.174e-05/0.3349, allocations: 89.86 kB / 0.5166 GB, free: 8.535 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.485e-06/0.3349, allocations: 25.7 kB / 0.5167 GB, free: 8.504 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.377e-05/0.3349, allocations: 81.42 kB / 0.5167 GB, free: 8.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.3349, allocations: 5.109 kB / 0.5167 GB, free: 8.418 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-05/0.335, allocations: 12.5 kB / 0.5168 GB, free: 8.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.042e-05/0.335, allocations: 323 kB / 0.5171 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.416e-05/0.335, allocations: 6.781 kB / 0.5171 GB, free: 8.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.173e-06/0.335, allocations: 4.844 kB / 0.5171 GB, free: 8.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.342e-05/0.3351, allocations: 61.98 kB / 0.5171 GB, free: 8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3351, allocations: 3.938 kB / 0.5171 GB, free: 7.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.032e-05/0.3351, allocations: 69.42 kB / 0.5172 GB, free: 7.926 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.3352, allocations: 31.58 kB / 0.5172 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3352, allocations: 0 / 0.5172 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3352, allocations: 5.188 kB / 0.5172 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.48e-05/0.3352, allocations: 0 / 0.5172 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.3352, allocations: 3.938 kB / 0.5172 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.3352, allocations: 1.25 kB / 0.5172 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.3352, allocations: 1.281 kB / 0.5172 GB, free: 7.887 MB / 382.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 6.153e-05/0.3353, allocations: 145.1 kB / 0.5174 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.3353, allocations: 5.984 kB / 0.5174 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.633e-05/0.3353, allocations: 7.062 kB / 0.5174 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3353, allocations: 1.312 kB / 0.5174 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3354, allocations: 4 kB / 0.5174 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.3354, allocations: 0 / 0.5174 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.3355, allocations: 294.4 kB / 0.5177 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3355, allocations: 1.719 kB / 0.5177 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.416e-06/0.3355, allocations: 0 / 0.5177 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3355, allocations: 0 / 0.5177 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.3355, allocations: 5.078 kB / 0.5177 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3355, allocations: 0 / 0.5177 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3355, allocations: 5.266 kB / 0.5177 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.3357, allocations: 174.9 kB / 0.5179 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.353e-05/0.3357, allocations: 81.09 kB / 0.5179 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.3357, allocations: 2.5 kB / 0.5179 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.765e-05/0.3357, allocations: 0 / 0.5179 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.448e-05/0.3358, allocations: 1.219 kB / 0.5179 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.3358, allocations: 1.188 kB / 0.5179 GB, free: 7.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.432e-05/0.3358, allocations: 75.31 kB / 0.518 GB, free: 7.016 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-08/0.3358, allocations: 0 / 0.518 GB, free: 7.016 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005554/0.3363, allocations: 169.7 kB / 0.5182 GB, free: 6.953 MB / 382.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.001055/0.3374, allocations: 0.9492 MB / 0.5191 GB, free: 6.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.3375, allocations: 66.27 kB / 0.5192 GB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3375, allocations: 0 / 0.5192 GB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.436e-05/0.3375, allocations: 56.91 kB / 0.5192 GB, free: 5.996 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002062/0.3377, allocations: 7.391 kB / 0.5192 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007049/0.3384, allocations: 1.223 MB / 0.5204 GB, free: 4.715 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.3385, allocations: 0.6728 MB / 0.5211 GB, free: 4.016 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.14e-05/0.3385, allocations: 3.938 kB / 0.5211 GB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.559e-05/0.3386, allocations: 15.5 kB / 0.5211 GB, free: 3.996 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3386, allocations: 0 / 0.5211 GB, free: 3.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.3661, allocations: 4.53 MB / 0.5255 GB, free: 15.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.266/8.632, allocations: 8 kB / 0.5255 GB, free: 15.45 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 11.553347719833255]