Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.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.001871/0.001871, allocations: 113.3 kB / 17.13 MB, free: 5.754 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.002105/0.002105, allocations: 192.6 kB / 20.08 MB, free: 2.852 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.552/1.552, allocations: 207.6 MB / 230.5 MB, free: 3.953 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.3849/0.3849, allocations: 44.23 MB / 326.5 MB, free: 6.809 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.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions",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.002237/0.002237, allocations: 72.36 kB / 462.2 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3051, allocations: 61 MB / 0.5109 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00149/0.3065, allocations: 0.5154 MB / 0.5114 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.3089, allocations: 2.086 MB / 0.5134 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.699e-05/0.3089, allocations: 5.094 kB / 0.5134 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.776e-05/0.3089, allocations: 0 / 0.5134 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.441e-06/0.3089, allocations: 0 / 0.5134 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.3103, allocations: 0.5014 MB / 0.5139 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.943e-05/0.3103, allocations: 5.062 kB / 0.5139 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.043e-05/0.3104, allocations: 1.188 kB / 0.5139 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.531e-05/0.3104, allocations: 1.188 kB / 0.5139 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.614e-05/0.3104, allocations: 0 / 0.5139 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.131e-06/0.3104, allocations: 1.156 kB / 0.5139 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008327/0.3112, allocations: 0.6589 MB / 0.5146 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-06/0.3113, allocations: 0 / 0.5146 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.778e-05/0.3113, allocations: 1.375 kB / 0.5146 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.3117, allocations: 387.4 kB / 0.515 GB, free: 10.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3117, allocations: 1.375 kB / 0.515 GB, free: 10.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3117, allocations: 0 / 0.515 GB, free: 10.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3117, allocations: 3.938 kB / 0.515 GB, free: 10.24 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.0003334/0.3121, allocations: 417 kB / 0.5154 GB, free: 9.805 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3121, allocations: 15.14 kB / 0.5154 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.386e-05/0.3121, allocations: 30.75 kB / 0.5154 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.094e-05/0.3122, allocations: 0.9375 kB / 0.5154 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.699e-05/0.3122, allocations: 170.3 kB / 0.5156 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3122, allocations: 4.375 kB / 0.5156 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.3122, allocations: 1.594 kB / 0.5156 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.194e-05/0.3123, allocations: 36.33 kB / 0.5156 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.3123, allocations: 1.469 kB / 0.5156 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-06/0.3123, allocations: 0 / 0.5156 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3123, allocations: 3.938 kB / 0.5156 GB, free: 9.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.3124, allocations: 11.08 kB / 0.5156 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.3125, allocations: 227.8 kB / 0.5158 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.645e-05/0.3126, allocations: 27.14 kB / 0.5159 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.015e-05/0.3126, allocations: 11.84 kB / 0.5159 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.3126, allocations: 1.094 kB / 0.5159 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.3126, allocations: 61.39 kB / 0.5159 GB, free: 9.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.3126, allocations: 0 / 0.5159 GB, free: 9.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001753/0.3128, allocations: 71.39 kB / 0.516 GB, free: 9.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.3128, allocations: 81.23 kB / 0.5161 GB, free: 8.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.862e-05/0.3129, allocations: 95.11 kB / 0.5162 GB, free: 8.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.981e-06/0.3129, allocations: 25.7 kB / 0.5162 GB, free: 8.816 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.468e-06/0.3129, allocations: 80.14 kB / 0.5163 GB, free: 8.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.3129, allocations: 5.203 kB / 0.5163 GB, free: 8.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.3129, allocations: 13.16 kB / 0.5163 GB, free: 8.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.401e-05/0.313, allocations: 310.8 kB / 0.5166 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.24e-05/0.313, allocations: 5.219 kB / 0.5166 GB, free: 8.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.705e-06/0.313, allocations: 10.42 kB / 0.5166 GB, free: 8.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.555e-05/0.313, allocations: 62.17 kB / 0.5167 GB, free: 8.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.313, allocations: 3.938 kB / 0.5167 GB, free: 8.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.743e-05/0.3131, allocations: 68.22 kB / 0.5167 GB, free: 8.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.3131, allocations: 36.31 kB / 0.5168 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3131, allocations: 0 / 0.5168 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.3131, allocations: 0 / 0.5168 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.442e-05/0.3131, allocations: 1.094 kB / 0.5168 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.3131, allocations: 0 / 0.5168 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.555e-05/0.3131, allocations: 5.312 kB / 0.5168 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.3132, allocations: 1.719 kB / 0.5168 GB, free: 8.207 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 5.036e-05/0.3132, allocations: 140.6 kB / 0.5169 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.3132, allocations: 1.094 kB / 0.5169 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.3132, allocations: 4.375 kB / 0.5169 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3132, allocations: 0 / 0.5169 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.3132, allocations: 0 / 0.5169 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.3133, allocations: 1.25 kB / 0.5169 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.3134, allocations: 306.3 kB / 0.5172 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3134, allocations: 0 / 0.5172 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.917e-06/0.3134, allocations: 9.625 kB / 0.5172 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.3134, allocations: 0 / 0.5172 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.3134, allocations: 4 kB / 0.5172 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3134, allocations: 1.438 kB / 0.5172 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3134, allocations: 0 / 0.5172 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.48e-05/0.3135, allocations: 171.4 kB / 0.5174 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.692e-05/0.3135, allocations: 81.17 kB / 0.5175 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.3135, allocations: 5.312 kB / 0.5175 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.187e-05/0.3136, allocations: 0 / 0.5175 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.89e-05/0.3136, allocations: 5.266 kB / 0.5175 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.3136, allocations: 1.156 kB / 0.5175 GB, free: 7.406 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.123e-05/0.3136, allocations: 75.28 kB / 0.5175 GB, free: 7.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.3136, allocations: 1.438 kB / 0.5175 GB, free: 7.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004221/0.314, allocations: 129.4 kB / 0.5177 GB, free: 7.293 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.0007767/0.3148, allocations: 0.911 MB / 0.5186 GB, free: 6.488 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.692e-05/0.3149, allocations: 62.91 kB / 0.5186 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3149, allocations: 5.469 kB / 0.5186 GB, free: 6.418 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.232e-05/0.3149, allocations: 59.2 kB / 0.5187 GB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.3151, allocations: 8.656 kB / 0.5187 GB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006455/0.3158, allocations: 1.2 MB / 0.5199 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.897e-05/0.3159, allocations: 0.6703 MB / 0.5205 GB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.769e-06/0.3159, allocations: 0 / 0.5205 GB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.497e-05/0.3159, allocations: 10.19 kB / 0.5205 GB, free: 4.418 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3159, allocations: 0 / 0.5205 GB, free: 4.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.3427, allocations: 4.448 MB / 0.5249 GB, free: 120 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.328/8.671, allocations: 4.859 kB / 0.5249 GB, free: 116 kB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.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.590497196186334]