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.001512/0.001512, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001703/0.001703, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.385/1.385, allocations: 230.5 MB / 258.2 MB, free: 8.012 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.2165/0.2165, allocations: 46.93 MB / 361.6 MB, free: 4.246 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.002213/0.002213, allocations: 75.88 kB / 0.497 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2867, allocations: 66.09 MB / 0.5615 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001534/0.2882, allocations: 0.4971 MB / 0.562 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003283/0.2915, allocations: 2.401 MB / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.341e-05/0.2915, allocations: 0 / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.061e-05/0.2916, allocations: 0 / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.029e-06/0.2916, allocations: 0 / 0.5643 GB, free: 1.363 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.001538/0.2931, allocations: 0.5874 MB / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.186e-05/0.2931, allocations: 3.938 kB / 0.5649 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.285e-05/0.2932, allocations: 3.984 kB / 0.5649 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.458e-05/0.2932, allocations: 4 kB / 0.5649 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.525e-05/0.2932, allocations: 3.984 kB / 0.5649 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.949e-06/0.2932, allocations: 0 / 0.5649 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.2945, allocations: 0.8033 MB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-06/0.2945, allocations: 0 / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.994e-05/0.2945, allocations: 0 / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006261/0.2951, allocations: 460.8 kB / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2951, allocations: 0 / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2951, allocations: 0 / 0.5661 GB, free: 15.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.2951, allocations: 4 kB / 0.5661 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.0004356/0.2956, allocations: 371 kB / 0.5665 GB, free: 15.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2956, allocations: 15.97 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.621e-05/0.2956, allocations: 192 / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.2957, allocations: 34.7 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.025e-05/0.2957, allocations: 0.9375 kB / 0.5665 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.183e-05/0.2958, allocations: 106.5 kB / 0.5667 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.2958, allocations: 8.359 kB / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-06/0.2958, allocations: 384 / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.023e-05/0.2959, allocations: 41.64 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.2959, allocations: 0 / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-06/0.2959, allocations: 0 / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.2959, allocations: 3.938 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.143e-05/0.2959, allocations: 7.938 kB / 0.5667 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002169/0.2961, allocations: 204 kB / 0.5669 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.728e-05/0.2962, allocations: 18.58 kB / 0.5669 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.38e-05/0.2962, allocations: 16.92 kB / 0.5669 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.2962, allocations: 0 / 0.5669 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.2963, allocations: 60.25 kB / 0.567 GB, free: 14.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.2963, allocations: 0 / 0.567 GB, free: 14.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001714/0.2964, allocations: 71.34 kB / 0.5671 GB, free: 14.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.2965, allocations: 77.11 kB / 0.5671 GB, free: 14.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.625e-05/0.2965, allocations: 93.84 kB / 0.5672 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.2966, allocations: 29.83 kB / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.705e-05/0.2966, allocations: 84.14 kB / 0.5673 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.093e-05/0.2966, allocations: 0 / 0.5673 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.2966, allocations: 17.72 kB / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2968, allocations: 310.8 kB / 0.5676 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.062e-05/0.2968, allocations: 0 / 0.5676 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.115e-06/0.2968, allocations: 4 kB / 0.5677 GB, free: 13.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.962e-05/0.2968, allocations: 72.19 kB / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2968, allocations: 4.062 kB / 0.5677 GB, free: 13.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.939e-05/0.2969, allocations: 71.34 kB / 0.5678 GB, free: 13.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.2969, allocations: 29.7 kB / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2969, allocations: 3.984 kB / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.297, allocations: 3.984 kB / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.181e-05/0.297, allocations: 0 / 0.5678 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.297, allocations: 3.984 kB / 0.5678 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.297, allocations: 11.89 kB / 0.5678 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-06/0.297, allocations: 0 / 0.5678 GB, free: 13.52 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.851e-05/0.2971, allocations: 143.5 kB / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.2971, allocations: 0 / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.715e-05/0.2971, allocations: 3.156 kB / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.2971, allocations: 0 / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.2971, allocations: 0 / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2971, allocations: 0 / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.2974, allocations: 283.3 kB / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2974, allocations: 0 / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.226e-06/0.2974, allocations: 0 / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.2974, allocations: 4.031 kB / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2974, allocations: 4 kB / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2974, allocations: 0 / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.2974, allocations: 0 / 0.5683 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.2975, allocations: 165.2 kB / 0.5684 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.047e-05/0.2975, allocations: 15.88 kB / 0.5684 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.054e-05/0.2976, allocations: 3.938 kB / 0.5684 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.986e-05/0.2976, allocations: 4 kB / 0.5684 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.075e-05/0.2976, allocations: 4.031 kB / 0.5684 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.2976, allocations: 8 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.181e-05/0.2976, allocations: 83.22 kB / 0.5685 GB, free: 12.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2976, allocations: 0 / 0.5685 GB, free: 12.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004566/0.2981, allocations: 163.4 kB / 0.5687 GB, free: 12.55 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.001087/0.2992, allocations: 0.9352 MB / 0.5696 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001064/0.2993, allocations: 67.34 kB / 0.5697 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2993, allocations: 0 / 0.5697 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.255e-05/0.2993, allocations: 59.39 kB / 0.5697 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001837/0.2995, allocations: 12.06 kB / 0.5697 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.3005, allocations: 1.222 MB / 0.5709 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.3008, allocations: 0.6729 MB / 0.5716 GB, free: 9.422 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.957e-06/0.3008, allocations: 0 / 0.5716 GB, free: 9.422 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.93e-05/0.3008, allocations: 11.44 kB / 0.5716 GB, free: 9.41 MB / 414.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3008, allocations: 0 / 0.5716 GB, free: 9.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.3249, allocations: 4.771 MB / 0.5763 GB, free: 4.754 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.16, allocations: 11.05 kB / 0.5763 GB, free: 4.75 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: 13.914584874000866]