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.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.001112/0.001112, 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.001272/0.001272, allocations: 170.3 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.9381/0.9381, allocations: 158.6 MB / 185 MB, free: 3.043 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.159/0.159, 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.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: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.138e-05/3.338e-05, allocations: 5.656 kB / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001684/0.001717, allocations: 0.5068 MB / 407.4 MB, free: 13.01 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002632/0.004349, allocations: 2.228 MB / 409.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.894e-05/0.004378, allocations: 0 / 409.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.291e-05/0.0044, allocations: 0 / 409.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.102e-05/0.004411, allocations: 0 / 409.6 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002275/0.006686, allocations: 0.58 MB / 410.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.713e-05/0.006764, allocations: 4 kB / 410.2 MB, free: 10.17 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.852e-05/0.006812, allocations: 8 kB / 410.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.142e-05/0.006844, allocations: 0 / 410.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.197e-05/0.006866, allocations: 0 / 410.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.265e-06/0.006874, allocations: 0 / 410.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.008066, allocations: 0.6626 MB / 410.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.782e-05/0.008083, allocations: 0 / 410.8 MB, free: 9.5 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.008122, allocations: 8 kB / 410.8 MB, free: 9.492 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008874/0.00901, allocations: 0.5182 MB / 411.4 MB, free: 8.973 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.009013, allocations: 0 / 411.4 MB, free: 8.973 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.009016, allocations: 0 / 411.4 MB, free: 8.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.009022, allocations: 0 / 411.4 MB, free: 8.973 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.0005229/0.009545, allocations: 363 kB / 411.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.0096, allocations: 16.02 kB / 411.7 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.147e-05/0.009661, allocations: 34.7 kB / 411.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.009692, allocations: 4.938 kB / 411.8 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.425e-05/0.009766, allocations: 105.8 kB / 411.9 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.009778, allocations: 4.312 kB / 411.9 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.278e-06/0.009787, allocations: 384 / 411.9 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.009893, allocations: 59.97 kB / 411.9 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.009904, allocations: 4.172 kB / 411.9 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.009915, allocations: 4.125 kB / 411.9 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.009921, allocations: 0 / 411.9 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.339e-05/0.009954, allocations: 33.64 kB / 412 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002331/0.01019, allocations: 192 kB / 412.2 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.981e-05/0.01026, allocations: 56.3 kB / 412.2 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.857e-05/0.0103, allocations: 34.62 kB / 412.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.01031, allocations: 7.938 kB / 412.3 MB, free: 7.918 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/0.01036, allocations: 60.27 kB / 412.3 MB, free: 7.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.01036, allocations: 0 / 412.3 MB, free: 7.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002221/0.01058, allocations: 126.7 kB / 412.4 MB, free: 7.695 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.01063, allocations: 77.11 kB / 412.5 MB, free: 7.602 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.622e-05/0.01066, allocations: 93.86 kB / 412.6 MB, free: 7.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.01068, allocations: 25.7 kB / 412.6 MB, free: 7.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.345e-05/0.0107, allocations: 84.27 kB / 412.7 MB, free: 7.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.01072, allocations: 3.953 kB / 412.7 MB, free: 7.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.321e-05/0.01076, allocations: 17.7 kB / 412.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.387e-05/0.01085, allocations: 314.8 kB / 413 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.81e-05/0.01088, allocations: 29.7 kB / 413.1 MB, free: 7.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.614e-05/0.0109, allocations: 25.7 kB / 413.1 MB, free: 6.973 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.653e-05/0.01094, allocations: 68.27 kB / 413.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.01094, allocations: 3.938 kB / 413.2 MB, free: 6.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.87e-05/0.01102, allocations: 97.03 kB / 413.3 MB, free: 6.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.01105, allocations: 40.45 kB / 413.3 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.01106, allocations: 0 / 413.3 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.01108, allocations: 0 / 413.3 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.57e-05/0.0111, allocations: 0 / 413.3 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.01111, allocations: 7.922 kB / 413.3 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.442e-05/0.01113, allocations: 0 / 413.3 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.01114, allocations: 4 kB / 413.3 MB, free: 6.719 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 8.358e-05/0.01122, allocations: 131.5 kB / 413.4 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.01124, allocations: 7.938 kB / 413.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.023e-05/0.01126, allocations: 7.156 kB / 413.5 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.01126, allocations: 7.984 kB / 413.5 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.01126, allocations: 0 / 413.5 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01127, allocations: 0 / 413.5 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.01149, allocations: 312.9 kB / 413.8 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.01149, allocations: 0 / 413.8 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-06/0.01149, allocations: 0 / 413.8 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.01149, allocations: 3.938 kB / 413.8 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.0115, allocations: 4 kB / 413.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.0115, allocations: 0 / 413.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.0115, allocations: 0 / 413.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.01161, allocations: 202.9 kB / 414 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-06/0.01162, allocations: 0 / 414 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.01163, allocations: 0 / 414 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.37e-05/0.01165, allocations: 0 / 414 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.921e-05/0.01167, allocations: 4 kB / 414 MB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.01167, allocations: 0 / 414 MB, free: 5.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.694e-05/0.0117, allocations: 83.28 kB / 414.1 MB, free: 5.863 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0117, allocations: 0 / 414.1 MB, free: 5.863 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004293/0.01213, allocations: 159.4 kB / 414.2 MB, free: 5.707 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.000966/0.0131, allocations: 1.021 MB / 415.2 MB, free: 4.645 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001616/0.01326, allocations: 122.7 kB / 415.4 MB, free: 4.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.01326, allocations: 0 / 415.4 MB, free: 4.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.051e-05/0.0133, allocations: 81.11 kB / 415.4 MB, free: 4.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.01346, allocations: 4 kB / 415.4 MB, free: 4.398 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009097/0.01437, allocations: 1.353 MB / 416.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.597e-05/0.01442, allocations: 55.36 kB / 416.8 MB, free: 2.852 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.55e-05/0.01443, allocations: 3.938 kB / 416.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.944e-05/0.01446, allocations: 12.5 kB / 416.9 MB, free: 2.836 MB / 346.7 MB Notification: Performance of SimCode: time 7.72e-07/0.01446, allocations: 0 / 416.9 MB, free: 2.836 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01967/0.03414, allocations: 5.26 MB / 422.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.719/6.753, allocations: 4 kB / 422.1 MB, free: 13.57 MB / 362.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.988981609232724]