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.001464/0.001464, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001563/0.001563, allocations: 214.9 kB / 23.75 MB, free: 4.672 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.474/1.474, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.2279/0.2279, allocations: 46.92 MB / 360.8 MB, free: 4.176 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00247/0.00247, allocations: 83.88 kB / 0.4962 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3401, allocations: 66.08 MB / 0.5607 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00221/0.3423, allocations: 0.4971 MB / 0.5612 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004115/0.3465, allocations: 2.404 MB / 0.5636 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.759e-05/0.3465, allocations: 0 / 0.5636 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.658e-05/0.3465, allocations: 0 / 0.5636 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.254e-06/0.3465, allocations: 0 / 0.5636 GB, free: 1.348 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.001809/0.3483, allocations: 0.5842 MB / 0.5641 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.643e-05/0.3484, allocations: 4 kB / 0.5641 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.665e-05/0.3484, allocations: 4 kB / 0.5641 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.684e-05/0.3484, allocations: 3.938 kB / 0.5641 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.062e-05/0.3484, allocations: 7.984 kB / 0.5642 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-06/0.3484, allocations: 0 / 0.5642 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.3499, allocations: 0.7993 MB / 0.5649 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-06/0.3499, allocations: 4 kB / 0.5649 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.3499, allocations: 0 / 0.5649 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009096/0.3508, allocations: 468.6 kB / 0.5654 GB, free: 15.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3508, allocations: 0 / 0.5654 GB, free: 15.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3508, allocations: 3.938 kB / 0.5654 GB, free: 15.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.3508, allocations: 0 / 0.5654 GB, free: 15.48 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.0005421/0.3514, allocations: 363.1 kB / 0.5657 GB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3514, allocations: 8.031 kB / 0.5657 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.8e-05/0.3515, allocations: 38.69 kB / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.3515, allocations: 12.94 kB / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.802e-05/0.3516, allocations: 102.5 kB / 0.5659 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.3516, allocations: 4.312 kB / 0.5659 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.3516, allocations: 384 / 0.5659 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.97e-05/0.3517, allocations: 33.83 kB / 0.5659 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.3517, allocations: 0 / 0.5659 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.3517, allocations: 4 kB / 0.5659 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3517, allocations: 0 / 0.5659 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.248e-05/0.3518, allocations: 7.922 kB / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002528/0.352, allocations: 204 kB / 0.5661 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.386e-05/0.3521, allocations: 22.61 kB / 0.5662 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.881e-05/0.3521, allocations: 12.91 kB / 0.5662 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.3521, allocations: 0 / 0.5662 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.534e-05/0.3522, allocations: 64.2 kB / 0.5662 GB, free: 14.47 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.243e-06/0.3522, allocations: 4 kB / 0.5662 GB, free: 14.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002254/0.3524, allocations: 71.39 kB / 0.5663 GB, free: 14.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.3525, allocations: 77.11 kB / 0.5664 GB, free: 14.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.349e-05/0.3525, allocations: 89.86 kB / 0.5665 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.3525, allocations: 25.7 kB / 0.5665 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.3526, allocations: 80.14 kB / 0.5666 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.3526, allocations: 0 / 0.5666 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.3526, allocations: 17.72 kB / 0.5666 GB, free: 14.06 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3528, allocations: 315 kB / 0.5669 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.75e-05/0.3528, allocations: 7.984 kB / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-06/0.3528, allocations: 0 / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.02e-05/0.3529, allocations: 72.2 kB / 0.567 GB, free: 13.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3529, allocations: 3.938 kB / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.386e-05/0.353, allocations: 63.41 kB / 0.567 GB, free: 13.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.554e-05/0.353, allocations: 37.69 kB / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.353, allocations: 0 / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.353, allocations: 96 / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.627e-05/0.353, allocations: 8 kB / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.353, allocations: 0 / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.227e-05/0.3531, allocations: 3.953 kB / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.3531, allocations: 0 / 0.5671 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 0.0001286/0.3532, allocations: 139.5 kB / 0.5672 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.3532, allocations: 0 / 0.5672 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.959e-05/0.3533, allocations: 7.094 kB / 0.5672 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.3533, allocations: 11.92 kB / 0.5672 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3533, allocations: 0 / 0.5672 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3533, allocations: 4 kB / 0.5672 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.3536, allocations: 279.3 kB / 0.5675 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3536, allocations: 0 / 0.5675 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-06/0.3536, allocations: 0 / 0.5675 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3536, allocations: 0 / 0.5675 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.3536, allocations: 0 / 0.5675 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3536, allocations: 0 / 0.5675 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3536, allocations: 0 / 0.5675 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.3537, allocations: 177.2 kB / 0.5677 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-06/0.3537, allocations: 7.938 kB / 0.5677 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.3537, allocations: 0 / 0.5677 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.611e-05/0.3538, allocations: 7.984 kB / 0.5677 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.3538, allocations: 7.984 kB / 0.5677 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-06/0.3538, allocations: 0 / 0.5677 GB, free: 12.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.025e-05/0.3539, allocations: 79.31 kB / 0.5678 GB, free: 12.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3539, allocations: 0 / 0.5678 GB, free: 12.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005778/0.3544, allocations: 163.3 kB / 0.5679 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.001353/0.3558, allocations: 0.9389 MB / 0.5688 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.3559, allocations: 71.33 kB / 0.5689 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3559, allocations: 0 / 0.5689 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.856e-05/0.356, allocations: 55.41 kB / 0.5689 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.3562, allocations: 11.81 kB / 0.569 GB, free: 11.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3574, allocations: 1.222 MB / 0.5702 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.3577, allocations: 0.669 MB / 0.5708 GB, free: 9.418 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.103e-05/0.3577, allocations: 0 / 0.5708 GB, free: 9.418 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.764e-05/0.3577, allocations: 15.5 kB / 0.5708 GB, free: 9.402 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3577, allocations: 3.938 kB / 0.5708 GB, free: 9.398 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03344/0.3912, allocations: 4.74 MB / 0.5755 GB, free: 4.762 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.44, allocations: 11.73 kB / 0.5755 GB, free: 4.754 MB / 414.1 MB " [Timeout remaining time 648] (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.331400881987065]