Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001296/0.001296, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 209.4 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 230.5 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2123/0.2123, allocations: 46.95 MB / 361.6 MB, free: 3.93 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00218/0.00218, allocations: 87.8 kB / 0.4969 GB, free: 7.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2925, allocations: 66.07 MB / 0.5614 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001724/0.2942, allocations: 0.4915 MB / 0.5619 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003597/0.2978, allocations: 2.253 MB / 0.5641 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.585e-05/0.2978, allocations: 0 / 0.5641 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.066e-05/0.2979, allocations: 0 / 0.5641 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.78e-06/0.2979, allocations: 4 kB / 0.5641 GB, free: 1.262 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.00163/0.2995, allocations: 0.5725 MB / 0.5647 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.257e-05/0.2995, allocations: 8 kB / 0.5647 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.2996, allocations: 7.984 kB / 0.5647 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.204e-05/0.2996, allocations: 0 / 0.5647 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.801e-05/0.2996, allocations: 4 kB / 0.5647 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-06/0.2996, allocations: 0 / 0.5647 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.3007, allocations: 0.7175 MB / 0.5654 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.3008, allocations: 3.984 kB / 0.5654 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.959e-05/0.3008, allocations: 7.938 kB / 0.5654 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006687/0.3014, allocations: 440.7 kB / 0.5658 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.3014, allocations: 0 / 0.5658 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3015, allocations: 0 / 0.5658 GB, free: 15.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.3015, allocations: 4 kB / 0.5658 GB, free: 15.5 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.0004657/0.3019, allocations: 371 kB / 0.5662 GB, free: 15.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.302, allocations: 12.03 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.684e-05/0.302, allocations: 192 / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.302, allocations: 34.7 kB / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.076e-05/0.302, allocations: 4.938 kB / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.718e-05/0.3021, allocations: 106.5 kB / 0.5663 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.3021, allocations: 384 / 0.5663 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-06/0.3021, allocations: 384 / 0.5663 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.3022, allocations: 71.27 kB / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.3022, allocations: 0 / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.3023, allocations: 0 / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-06/0.3023, allocations: 0 / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.114e-05/0.3023, allocations: 29.7 kB / 0.5664 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002151/0.3025, allocations: 204 kB / 0.5666 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.687e-05/0.3026, allocations: 52.25 kB / 0.5667 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.135e-05/0.3026, allocations: 38.62 kB / 0.5667 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.684e-06/0.3026, allocations: 4 kB / 0.5667 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.3027, allocations: 64.19 kB / 0.5668 GB, free: 14.36 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3027, allocations: 0 / 0.5668 GB, free: 14.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001939/0.3029, allocations: 122.8 kB / 0.5669 GB, free: 14.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/0.3029, allocations: 85.09 kB / 0.567 GB, free: 14.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.267e-05/0.303, allocations: 89.86 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.303, allocations: 25.7 kB / 0.5671 GB, free: 13.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.448e-05/0.303, allocations: 80.27 kB / 0.5672 GB, free: 13.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.102e-05/0.303, allocations: 4 kB / 0.5672 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.3031, allocations: 17.72 kB / 0.5672 GB, free: 13.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3032, allocations: 314.8 kB / 0.5675 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.392e-05/0.3032, allocations: 29.7 kB / 0.5675 GB, free: 13.53 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.447e-05/0.3032, allocations: 29.69 kB / 0.5675 GB, free: 13.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.554e-05/0.3033, allocations: 72.2 kB / 0.5676 GB, free: 13.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.3033, allocations: 0 / 0.5676 GB, free: 13.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.471e-05/0.3034, allocations: 89.11 kB / 0.5677 GB, free: 13.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.3034, allocations: 37.69 kB / 0.5677 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.3034, allocations: 4.094 kB / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3034, allocations: 4 kB / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.301e-05/0.3034, allocations: 0 / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.3034, allocations: 0 / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.568e-05/0.3035, allocations: 7.891 kB / 0.5677 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.3035, allocations: 4 kB / 0.5677 GB, free: 13.24 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 8.697e-05/0.3035, allocations: 140.6 kB / 0.5679 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.356e-05/0.3036, allocations: 4 kB / 0.5679 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.446e-05/0.3036, allocations: 3.156 kB / 0.5679 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3036, allocations: 3.984 kB / 0.5679 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3036, allocations: 4 kB / 0.5679 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.3036, allocations: 0 / 0.5679 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.3038, allocations: 293.1 kB / 0.5682 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3038, allocations: 0 / 0.5682 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.396e-06/0.3038, allocations: 0 / 0.5682 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.3039, allocations: 0 / 0.5682 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.3039, allocations: 4 kB / 0.5682 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3039, allocations: 0 / 0.5682 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3039, allocations: 3.938 kB / 0.5682 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001411/0.304, allocations: 198.9 kB / 0.5684 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.494e-06/0.304, allocations: 15.94 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.304, allocations: 0 / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.544e-05/0.3041, allocations: 11.97 kB / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.3041, allocations: 0 / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.3041, allocations: 0 / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.486e-05/0.3041, allocations: 83.22 kB / 0.5685 GB, free: 12.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3041, allocations: 0 / 0.5685 GB, free: 12.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.3046, allocations: 159.4 kB / 0.5686 GB, free: 12.22 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.001141/0.3057, allocations: 0.9942 MB / 0.5696 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001349/0.3059, allocations: 122.8 kB / 0.5697 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3059, allocations: 0 / 0.5697 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.042e-05/0.3059, allocations: 81.11 kB / 0.5698 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.3061, allocations: 10.59 kB / 0.5698 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.3072, allocations: 1.36 MB / 0.5711 GB, free: 9.457 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.852e-05/0.3072, allocations: 51.36 kB / 0.5712 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.947e-06/0.3072, allocations: 4 kB / 0.5712 GB, free: 9.383 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.827e-05/0.3073, allocations: 7.438 kB / 0.5712 GB, free: 9.375 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3073, allocations: 0 / 0.5712 GB, free: 9.375 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.3325, allocations: 4.843 MB / 0.5759 GB, free: 4.648 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.31, allocations: 10.89 kB / 0.5759 GB, free: 4.645 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.023758079041727]