Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001288/0.001288, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00132/0.00132, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.397/1.397, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2169/0.2169, allocations: 46.92 MB / 361.6 MB, free: 4.281 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 67.91 kB / 0.4969 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3192, allocations: 66.02 MB / 0.5614 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001698/0.3209, allocations: 0.4961 MB / 0.5619 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003777/0.3246, allocations: 2.412 MB / 0.5643 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.3247, allocations: 4 kB / 0.5643 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.626e-05/0.3247, allocations: 0 / 0.5643 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.523e-06/0.3247, allocations: 0 / 0.5643 GB, free: 1.555 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001588/0.3263, allocations: 0.5803 MB / 0.5648 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.392e-05/0.3263, allocations: 4 kB / 0.5648 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.257e-05/0.3264, allocations: 7.984 kB / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.437e-05/0.3264, allocations: 0 / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.582e-05/0.3264, allocations: 0 / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-06/0.3264, allocations: 0 / 0.5648 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001244/0.3276, allocations: 0.8032 MB / 0.5656 GB, free: 160 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.286e-06/0.3277, allocations: 0 / 0.5656 GB, free: 160 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.811e-05/0.3277, allocations: 4 kB / 0.5656 GB, free: 156 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006353/0.3283, allocations: 464.6 kB / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3283, allocations: 4 kB / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3283, allocations: 0 / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.3283, allocations: 0 / 0.5661 GB, free: 15.7 MB / 414.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.00044/0.3288, allocations: 367 kB / 0.5664 GB, free: 15.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3288, allocations: 12.03 kB / 0.5664 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.484e-05/0.3288, allocations: 8.188 kB / 0.5664 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.072e-05/0.3289, allocations: 34.7 kB / 0.5665 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.44e-05/0.3289, allocations: 0.9375 kB / 0.5665 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.978e-05/0.329, allocations: 110.5 kB / 0.5666 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-06/0.329, allocations: 384 / 0.5666 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.329, allocations: 384 / 0.5666 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.595e-05/0.3291, allocations: 33.64 kB / 0.5666 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.3291, allocations: 0 / 0.5666 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-06/0.3291, allocations: 3.938 kB / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3291, allocations: 4 kB / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.3291, allocations: 8 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000224/0.3293, allocations: 200 kB / 0.5668 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.742e-05/0.3294, allocations: 26.55 kB / 0.5668 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.3294, allocations: 8.922 kB / 0.5669 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-06/0.3294, allocations: 0 / 0.5669 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/0.3295, allocations: 68.19 kB / 0.5669 GB, free: 14.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.3295, allocations: 0 / 0.5669 GB, free: 14.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001836/0.3297, allocations: 67.41 kB / 0.567 GB, free: 14.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.3297, allocations: 77.11 kB / 0.5671 GB, free: 14.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.546e-05/0.3298, allocations: 97.84 kB / 0.5671 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.3298, allocations: 25.7 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.734e-05/0.3298, allocations: 84.14 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.808e-06/0.3298, allocations: 4.125 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.3299, allocations: 17.66 kB / 0.5673 GB, free: 14.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.33, allocations: 310.8 kB / 0.5676 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.047e-05/0.33, allocations: 0 / 0.5676 GB, free: 13.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.048e-05/0.33, allocations: 8 kB / 0.5676 GB, free: 13.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.056e-05/0.3301, allocations: 72.12 kB / 0.5676 GB, free: 13.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3301, allocations: 0 / 0.5676 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.155e-05/0.3301, allocations: 71.5 kB / 0.5677 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.3302, allocations: 33.7 kB / 0.5677 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3302, allocations: 3.984 kB / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.3302, allocations: 0 / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.299e-05/0.3302, allocations: 0 / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3302, allocations: 7.984 kB / 0.5678 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.646e-05/0.3302, allocations: 3.953 kB / 0.5678 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.3302, allocations: 0 / 0.5678 GB, free: 13.72 MB / 414.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 9.625e-05/0.3303, allocations: 143.4 kB / 0.5679 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.3303, allocations: 0 / 0.5679 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.839e-05/0.3304, allocations: 11.16 kB / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3304, allocations: 0 / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3304, allocations: 3.938 kB / 0.5679 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3304, allocations: 0 / 0.5679 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.3306, allocations: 271.4 kB / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3306, allocations: 0 / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.276e-06/0.3306, allocations: 0 / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3306, allocations: 0 / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.3306, allocations: 4 kB / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3306, allocations: 32 / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3306, allocations: 4 kB / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001331/0.3308, allocations: 173.1 kB / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.462e-05/0.3308, allocations: 15.94 kB / 0.5684 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.034e-05/0.3308, allocations: 0 / 0.5684 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.681e-05/0.3308, allocations: 0 / 0.5684 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.452e-05/0.3309, allocations: 3.938 kB / 0.5684 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.3309, allocations: 4 kB / 0.5684 GB, free: 13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.352e-05/0.3309, allocations: 87.25 kB / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3309, allocations: 0 / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004591/0.3313, allocations: 163.4 kB / 0.5686 GB, free: 12.75 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.001114/0.3325, allocations: 0.9426 MB / 0.5695 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.3326, allocations: 59.41 kB / 0.5696 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3326, allocations: 0 / 0.5696 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.813e-05/0.3326, allocations: 59.39 kB / 0.5696 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.3328, allocations: 17.09 kB / 0.5697 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.3339, allocations: 1.222 MB / 0.5709 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.3342, allocations: 0.6729 MB / 0.5715 GB, free: 9.621 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.443e-05/0.3342, allocations: 4 kB / 0.5715 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/0.3343, allocations: 7.438 kB / 0.5715 GB, free: 9.609 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3343, allocations: 0 / 0.5715 GB, free: 9.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.3587, allocations: 4.773 MB / 0.5762 GB, free: 4.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.31, allocations: 14.16 kB / 0.5762 GB, free: 4.977 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.14228087302763]