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.001772/0.001772, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001601/0.001601, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.2194/0.2194, allocations: 46.96 MB / 361.7 MB, free: 4.043 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.001935/0.001935, allocations: 67.89 kB / 0.4969 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3212, allocations: 66.03 MB / 0.5613 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001689/0.3229, allocations: 0.4932 MB / 0.5618 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003634/0.3265, allocations: 2.245 MB / 0.564 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.074e-05/0.3265, allocations: 0 / 0.564 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.3265, allocations: 0 / 0.564 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.3265, allocations: 4 kB / 0.564 GB, free: 1.359 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.001523/0.3281, allocations: 0.5797 MB / 0.5646 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.563e-05/0.3281, allocations: 7.984 kB / 0.5646 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.201e-05/0.3281, allocations: 0 / 0.5646 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.363e-05/0.3282, allocations: 0 / 0.5646 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.776e-05/0.3282, allocations: 4 kB / 0.5646 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.711e-06/0.3282, allocations: 0 / 0.5646 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001197/0.3294, allocations: 0.7214 MB / 0.5653 GB, free: 48 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.3294, allocations: 3.938 kB / 0.5653 GB, free: 44 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.3294, allocations: 7.938 kB / 0.5653 GB, free: 36 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006791/0.3301, allocations: 436.8 kB / 0.5657 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3301, allocations: 0 / 0.5657 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.09e-06/0.3301, allocations: 4 kB / 0.5657 GB, free: 15.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3301, allocations: 0 / 0.5657 GB, free: 15.61 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.0004577/0.3306, allocations: 371 kB / 0.5661 GB, free: 15.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3306, allocations: 12.03 kB / 0.5661 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.769e-05/0.3306, allocations: 192 / 0.5661 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.103e-05/0.3307, allocations: 34.7 kB / 0.5661 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.371e-05/0.3307, allocations: 0.9375 kB / 0.5661 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.755e-05/0.3308, allocations: 110.5 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.3308, allocations: 4.375 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.3308, allocations: 4.359 kB / 0.5663 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.3309, allocations: 63.33 kB / 0.5663 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3309, allocations: 3.938 kB / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.3309, allocations: 4 kB / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3309, allocations: 0 / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.574e-05/0.331, allocations: 29.7 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002312/0.3312, allocations: 204 kB / 0.5665 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.342e-05/0.3313, allocations: 52.25 kB / 0.5666 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.647e-05/0.3313, allocations: 38.56 kB / 0.5666 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.3313, allocations: 7.984 kB / 0.5666 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.3314, allocations: 56.27 kB / 0.5667 GB, free: 14.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.3314, allocations: 0 / 0.5667 GB, free: 14.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002172/0.3316, allocations: 126.8 kB / 0.5668 GB, free: 14.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.3317, allocations: 85.05 kB / 0.5669 GB, free: 14.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.801e-05/0.3317, allocations: 89.86 kB / 0.567 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.3317, allocations: 29.7 kB / 0.567 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.3318, allocations: 80.14 kB / 0.5671 GB, free: 14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.07e-05/0.3318, allocations: 3.984 kB / 0.5671 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-05/0.3318, allocations: 13.72 kB / 0.5671 GB, free: 13.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3319, allocations: 310.8 kB / 0.5674 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.169e-05/0.332, allocations: 33.7 kB / 0.5674 GB, free: 13.62 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.207e-05/0.332, allocations: 29.69 kB / 0.5675 GB, free: 13.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.426e-05/0.332, allocations: 72.39 kB / 0.5675 GB, free: 13.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.332, allocations: 4 kB / 0.5675 GB, free: 13.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.157e-05/0.3321, allocations: 93.09 kB / 0.5676 GB, free: 13.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.3322, allocations: 37.64 kB / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.3322, allocations: 0 / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.3322, allocations: 0 / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.369e-05/0.3322, allocations: 0 / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.3322, allocations: 0 / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.802e-05/0.3322, allocations: 3.953 kB / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.3322, allocations: 4 kB / 0.5677 GB, free: 13.34 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.097e-05/0.3323, allocations: 147.5 kB / 0.5678 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.3323, allocations: 4 kB / 0.5678 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.791e-05/0.3324, allocations: 7.141 kB / 0.5678 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3324, allocations: 0 / 0.5678 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3324, allocations: 0 / 0.5678 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3324, allocations: 0 / 0.5678 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002862/0.3326, allocations: 293.1 kB / 0.5681 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3326, allocations: 0 / 0.5681 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.977e-06/0.3327, allocations: 3.938 kB / 0.5681 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.3327, allocations: 0 / 0.5681 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3327, allocations: 12.03 kB / 0.5681 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3327, allocations: 0 / 0.5681 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3327, allocations: 7.875 kB / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.3328, allocations: 194.9 kB / 0.5683 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.297e-06/0.3328, allocations: 7.938 kB / 0.5683 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.3328, allocations: 3.984 kB / 0.5683 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.21e-05/0.3329, allocations: 4 kB / 0.5683 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.72e-05/0.3329, allocations: 0 / 0.5683 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.3329, allocations: 0 / 0.5683 GB, free: 12.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.354e-05/0.3329, allocations: 83.22 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3329, allocations: 4.031 kB / 0.5684 GB, free: 12.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004674/0.3334, allocations: 163.4 kB / 0.5686 GB, free: 12.31 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.001131/0.3345, allocations: 0.9983 MB / 0.5695 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.3347, allocations: 118.8 kB / 0.5696 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3347, allocations: 4.094 kB / 0.5696 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.475e-05/0.3347, allocations: 89.03 kB / 0.5697 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.3349, allocations: 11.88 kB / 0.5697 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.336, allocations: 1.344 MB / 0.5711 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.018e-05/0.3361, allocations: 59.3 kB / 0.5711 GB, free: 9.473 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.094e-05/0.3361, allocations: 0 / 0.5711 GB, free: 9.473 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.945e-05/0.3361, allocations: 7.438 kB / 0.5711 GB, free: 9.465 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3361, allocations: 0 / 0.5711 GB, free: 9.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.3607, allocations: 4.843 MB / 0.5759 GB, free: 4.773 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.5, allocations: 10.16 kB / 0.5759 GB, free: 4.766 MB / 414.1 MB " [Timeout remaining time 648] (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.3193622949766]