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.001276/0.001276, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001457/0.001457, allocations: 213.9 kB / 23.73 MB, free: 4.164 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.455/1.455, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.2295/0.2295, allocations: 46.96 MB / 360.8 MB, free: 3.922 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.002432/0.002432, allocations: 79.88 kB / 0.4961 GB, free: 7.559 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3092, allocations: 66.09 MB / 0.5607 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001759/0.3109, allocations: 0.4998 MB / 0.5612 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003372/0.3143, allocations: 2.241 MB / 0.5634 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.81e-05/0.3143, allocations: 0 / 0.5634 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.457e-05/0.3143, allocations: 0 / 0.5634 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.099e-06/0.3143, allocations: 0 / 0.5634 GB, free: 1.281 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.001508/0.3158, allocations: 0.5836 MB / 0.5639 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.764e-05/0.3159, allocations: 3.984 kB / 0.5639 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.119e-05/0.3159, allocations: 4 kB / 0.5639 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.316, allocations: 0 / 0.5639 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.567e-05/0.316, allocations: 0 / 0.5639 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.88e-06/0.316, allocations: 0 / 0.5639 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.3171, allocations: 0.6823 MB / 0.5646 GB, free: 8 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.3171, allocations: 0 / 0.5646 GB, free: 8 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.875e-05/0.3171, allocations: 0 / 0.5646 GB, free: 8 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000664/0.3178, allocations: 448.6 kB / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.3178, allocations: 0 / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3178, allocations: 0 / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.3178, allocations: 4 kB / 0.565 GB, free: 15.57 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.0004331/0.3182, allocations: 367 kB / 0.5654 GB, free: 15.17 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3183, allocations: 8.031 kB / 0.5654 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.146e-05/0.3183, allocations: 38.69 kB / 0.5654 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.032e-05/0.3183, allocations: 4.938 kB / 0.5654 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.458e-05/0.3184, allocations: 102.5 kB / 0.5655 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.3184, allocations: 384 / 0.5655 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-06/0.3184, allocations: 384 / 0.5655 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.3185, allocations: 71.47 kB / 0.5656 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3186, allocations: 0 / 0.5656 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.545e-06/0.3186, allocations: 4 kB / 0.5656 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3186, allocations: 0 / 0.5656 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.545e-05/0.3186, allocations: 29.69 kB / 0.5656 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002311/0.3188, allocations: 204 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.734e-05/0.3189, allocations: 48.27 kB / 0.5659 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.325e-05/0.319, allocations: 42.56 kB / 0.5659 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.319, allocations: 0 / 0.5659 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/0.319, allocations: 56.27 kB / 0.566 GB, free: 14.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.319, allocations: 3.938 kB / 0.566 GB, free: 14.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002073/0.3192, allocations: 130.8 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.3193, allocations: 77.11 kB / 0.5662 GB, free: 14.19 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.769e-05/0.3193, allocations: 89.86 kB / 0.5663 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.3194, allocations: 25.7 kB / 0.5663 GB, free: 14.06 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.558e-05/0.3194, allocations: 80.14 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.3194, allocations: 11.94 kB / 0.5664 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.039e-05/0.3194, allocations: 13.7 kB / 0.5664 GB, free: 13.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3196, allocations: 314.8 kB / 0.5667 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.327e-05/0.3196, allocations: 25.7 kB / 0.5667 GB, free: 13.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.519e-05/0.3196, allocations: 37.64 kB / 0.5667 GB, free: 13.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.31e-05/0.3197, allocations: 64.45 kB / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3197, allocations: 3.938 kB / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.355e-05/0.3198, allocations: 97.09 kB / 0.5669 GB, free: 13.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.3198, allocations: 29.7 kB / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.3198, allocations: 0 / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.3198, allocations: 0 / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.529e-05/0.3199, allocations: 4 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3199, allocations: 7.984 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.3199, allocations: 3.953 kB / 0.5669 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.3199, allocations: 3.984 kB / 0.5669 GB, free: 13.31 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.0001029/0.32, allocations: 151.5 kB / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.32, allocations: 0 / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.838e-05/0.32, allocations: 3.156 kB / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.32, allocations: 0 / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.32, allocations: 0 / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.32, allocations: 4 kB / 0.5671 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.3203, allocations: 297 kB / 0.5674 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.3203, allocations: 4 kB / 0.5674 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.416e-06/0.3203, allocations: 0 / 0.5674 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.3203, allocations: 0 / 0.5674 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.3203, allocations: 4.031 kB / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3203, allocations: 0 / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3203, allocations: 0 / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.3205, allocations: 206.8 kB / 0.5676 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.577e-05/0.3205, allocations: 7.938 kB / 0.5676 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.3205, allocations: 4 kB / 0.5676 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.99e-05/0.3206, allocations: 0 / 0.5676 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.703e-05/0.3206, allocations: 0 / 0.5676 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.3206, allocations: 0 / 0.5676 GB, free: 12.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.085e-05/0.3206, allocations: 83.28 kB / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3206, allocations: 0 / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004804/0.3211, allocations: 183.2 kB / 0.5679 GB, free: 12.27 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.001211/0.3223, allocations: 0.9836 MB / 0.5688 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001623/0.3225, allocations: 118.8 kB / 0.5689 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3225, allocations: 0 / 0.5689 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.371e-05/0.3225, allocations: 85.2 kB / 0.569 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.3227, allocations: 7.938 kB / 0.569 GB, free: 10.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.324, allocations: 1.352 MB / 0.5703 GB, free: 9.523 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.032e-05/0.324, allocations: 55.34 kB / 0.5704 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.59e-05/0.3241, allocations: 4 kB / 0.5704 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.26e-05/0.3241, allocations: 7.438 kB / 0.5704 GB, free: 9.438 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3241, allocations: 0 / 0.5704 GB, free: 9.438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03263/0.3567, allocations: 5.181 MB / 0.5755 GB, free: 4.363 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.03, allocations: 3.938 kB / 0.5755 GB, free: 4.359 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: 15.088077032007277]