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.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.0008344/0.0008344, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 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.000787/0.000787, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.9299/0.9299, allocations: 158.6 MB / 185 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] 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.1416/0.1416, allocations: 32.36 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] 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.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.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: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 406.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.545e-05/2.747e-05, allocations: 9.938 kB / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001389/0.001417, allocations: 0.5028 MB / 407.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002467/0.003884, allocations: 1.987 MB / 409.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.267e-05/0.003907, allocations: 0 / 409.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.697e-05/0.003924, allocations: 0 / 409.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.248e-06/0.003933, allocations: 0 / 409.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.005777, allocations: 0.5295 MB / 409.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.317e-05/0.00584, allocations: 4 kB / 409.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.372e-05/0.005884, allocations: 4 kB / 409.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.298e-05/0.005917, allocations: 0 / 409.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.04e-05/0.005937, allocations: 0 / 409.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.238e-06/0.005947, allocations: 0 / 409.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009337/0.00688, allocations: 0.6314 MB / 410.5 MB, free: 9.836 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.052e-05/0.006891, allocations: 0 / 410.5 MB, free: 9.836 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.282e-05/0.006914, allocations: 0 / 410.5 MB, free: 9.836 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006905/0.007604, allocations: 466.8 kB / 411 MB, free: 9.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.007608, allocations: 0 / 411 MB, free: 9.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.007609, allocations: 0 / 411 MB, free: 9.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.007615, allocations: 0 / 411 MB, free: 9.379 MB / 346.7 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.0004652/0.00808, allocations: 339.4 kB / 411.3 MB, free: 9.012 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.008131, allocations: 8.031 kB / 411.3 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.839e-05/0.0082, allocations: 38.7 kB / 411.3 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.008234, allocations: 4.938 kB / 411.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.255e-05/0.008316, allocations: 101.8 kB / 411.4 MB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.008332, allocations: 384 / 411.4 MB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.008344, allocations: 4.359 kB / 411.4 MB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.008484, allocations: 63.84 kB / 411.5 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.008493, allocations: 4.188 kB / 411.5 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.008507, allocations: 8.125 kB / 411.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.008513, allocations: 0 / 411.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.94e-05/0.008542, allocations: 25.7 kB / 411.5 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002445/0.008787, allocations: 208 kB / 411.7 MB, free: 8.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.049e-05/0.008847, allocations: 48.28 kB / 411.8 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.815e-05/0.008875, allocations: 38.61 kB / 411.8 MB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.008888, allocations: 7.875 kB / 411.8 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.008928, allocations: 60.27 kB / 411.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.713e-06/0.00893, allocations: 0 / 411.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002/0.00913, allocations: 122.8 kB / 412 MB, free: 8.125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.009173, allocations: 81.11 kB / 412.1 MB, free: 8.027 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.165e-05/0.009205, allocations: 89.86 kB / 412.2 MB, free: 7.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.198e-06/0.009214, allocations: 29.83 kB / 412.2 MB, free: 7.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.158e-05/0.009235, allocations: 80.14 kB / 412.3 MB, free: 7.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.009256, allocations: 3.953 kB / 412.3 MB, free: 7.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.009284, allocations: 13.72 kB / 412.3 MB, free: 7.789 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.462e-05/0.009369, allocations: 314.8 kB / 412.6 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.165e-05/0.00939, allocations: 29.7 kB / 412.6 MB, free: 7.438 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.91e-05/0.009409, allocations: 37.62 kB / 412.7 MB, free: 7.395 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.441e-05/0.009474, allocations: 64.27 kB / 412.7 MB, free: 7.316 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.009479, allocations: 0 / 412.7 MB, free: 7.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.959e-05/0.009579, allocations: 97.09 kB / 412.8 MB, free: 7.203 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.02e-05/0.009629, allocations: 40.36 kB / 412.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.009636, allocations: 0 / 412.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.009654, allocations: 0 / 412.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.491e-05/0.009679, allocations: 0 / 412.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.009688, allocations: 4 kB / 412.9 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.08e-05/0.009709, allocations: 4 kB / 412.9 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.00972, allocations: 0 / 412.9 MB, free: 7.152 MB / 346.7 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 9.126e-05/0.009811, allocations: 131.5 kB / 413 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.718e-05/0.009828, allocations: 11.88 kB / 413 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.486e-05/0.009853, allocations: 11.17 kB / 413 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.009856, allocations: 0 / 413 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.009862, allocations: 0 / 413 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.009866, allocations: 0 / 413 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.01009, allocations: 301.1 kB / 413.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01009, allocations: 0 / 413.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-06/0.0101, allocations: 0 / 413.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.0101, allocations: 0 / 413.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.01011, allocations: 7.938 kB / 413.3 MB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.01011, allocations: 3.938 kB / 413.3 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.01011, allocations: 0 / 413.3 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.748e-05/0.01021, allocations: 202.9 kB / 413.5 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-06/0.01022, allocations: 3.938 kB / 413.5 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.111e-05/0.01023, allocations: 3.984 kB / 413.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.462e-05/0.01025, allocations: 3.984 kB / 413.6 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.01027, allocations: 4 kB / 413.6 MB, free: 6.375 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.01027, allocations: 0 / 413.6 MB, free: 6.375 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.886e-05/0.01029, allocations: 75.28 kB / 413.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01029, allocations: 0 / 413.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004185/0.01071, allocations: 131.6 kB / 413.8 MB, free: 6.172 MB / 346.7 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.00101/0.01172, allocations: 0.9818 MB / 414.7 MB, free: 5.148 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000126/0.01184, allocations: 114.8 kB / 414.9 MB, free: 5.012 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01185, allocations: 0 / 414.9 MB, free: 5.012 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.965e-05/0.01188, allocations: 89.09 kB / 414.9 MB, free: 4.906 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.01201, allocations: 4 kB / 414.9 MB, free: 4.902 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008136/0.01283, allocations: 1.337 MB / 416.3 MB, free: 3.445 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.182e-05/0.01287, allocations: 59.34 kB / 416.3 MB, free: 3.367 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.416e-05/0.01288, allocations: 0 / 416.3 MB, free: 3.367 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.517e-05/0.01291, allocations: 8.5 kB / 416.3 MB, free: 3.359 MB / 346.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01291, allocations: 0 / 416.3 MB, free: 3.359 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02048/0.03339, allocations: 5.141 MB / 421.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.745/6.778, allocations: 13.64 kB / 421.5 MB, free: 14.2 MB / 362.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.843303771689534]