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.001648/0.001648, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.001943/0.001943, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.606/1.606, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.2488/0.2488, allocations: 46.9 MB / 357.4 MB, free: 10.46 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.002208/0.002208, allocations: 75.88 kB / 0.4912 GB, free: 8.312 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1342, allocations: 66 MB / 0.5557 GB, free: 6.184 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001652/0.1358, allocations: 0.4985 MB / 0.5562 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003476/0.1393, allocations: 2.392 MB / 0.5585 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.639e-05/0.1393, allocations: 0 / 0.5585 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.9e-05/0.1393, allocations: 0 / 0.5585 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.372e-06/0.1393, allocations: 0 / 0.5585 GB, free: 3.266 MB / 414.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.001631/0.141, allocations: 0.5686 MB / 0.5591 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.329e-05/0.141, allocations: 7.984 kB / 0.5591 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.246e-05/0.1411, allocations: 0 / 0.5591 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.1411, allocations: 0 / 0.5591 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.542e-05/0.1411, allocations: 0 / 0.5591 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.14e-06/0.1411, allocations: 4 kB / 0.5591 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001271/0.1424, allocations: 0.737 MB / 0.5598 GB, free: 1.945 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.027e-05/0.1424, allocations: 0 / 0.5598 GB, free: 1.945 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.693e-05/0.1424, allocations: 4 kB / 0.5598 GB, free: 1.941 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007306/0.1432, allocations: 462.8 kB / 0.5602 GB, free: 1.488 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1432, allocations: 0 / 0.5602 GB, free: 1.488 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1432, allocations: 0 / 0.5602 GB, free: 1.488 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1432, allocations: 0 / 0.5602 GB, free: 1.488 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.0005907/0.1438, allocations: 444.1 kB / 0.5607 GB, free: 1 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1438, allocations: 12.03 kB / 0.5607 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.699e-05/0.1439, allocations: 34.7 kB / 0.5607 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.1439, allocations: 4.922 kB / 0.5607 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.144, allocations: 160.4 kB / 0.5609 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.1441, allocations: 4.375 kB / 0.5609 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.1441, allocations: 8.359 kB / 0.5609 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.1442, allocations: 33.83 kB / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1442, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.1442, allocations: 0 / 0.5609 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1442, allocations: 3.938 kB / 0.5609 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.654e-05/0.1442, allocations: 3.984 kB / 0.5609 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003651/0.1446, allocations: 228.9 kB / 0.5611 GB, free: 424 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.255e-05/0.1447, allocations: 30.59 kB / 0.5612 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.741e-05/0.1447, allocations: 16.86 kB / 0.5612 GB, free: 364 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-06/0.1447, allocations: 0 / 0.5612 GB, free: 364 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.645e-05/0.1447, allocations: 64.2 kB / 0.5612 GB, free: 284 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.1448, allocations: 0 / 0.5612 GB, free: 284 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002179/0.145, allocations: 71.39 kB / 0.5613 GB, free: 200 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.212e-05/0.145, allocations: 81.23 kB / 0.5614 GB, free: 100 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.645e-05/0.1451, allocations: 89.86 kB / 0.5615 GB, free: 0 / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.1451, allocations: 25.7 kB / 0.5615 GB, free: 15.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.384e-05/0.1452, allocations: 80.14 kB / 0.5616 GB, free: 15.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.1452, allocations: 11.95 kB / 0.5616 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.1452, allocations: 9.719 kB / 0.5616 GB, free: 15.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1454, allocations: 310.8 kB / 0.5619 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.553e-05/0.1454, allocations: 7.984 kB / 0.5619 GB, free: 15.54 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.658e-06/0.1454, allocations: 4 kB / 0.5619 GB, free: 15.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.1455, allocations: 72.2 kB / 0.562 GB, free: 15.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1455, allocations: 3.938 kB / 0.562 GB, free: 15.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.054e-05/0.1456, allocations: 63.41 kB / 0.562 GB, free: 15.37 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.1456, allocations: 37.69 kB / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1456, allocations: 0 / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1457, allocations: 0 / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.375e-05/0.1457, allocations: 0 / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1457, allocations: 0 / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.1457, allocations: 8.031 kB / 0.5621 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1457, allocations: 4 kB / 0.5621 GB, free: 15.32 MB / 430.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.0001032/0.1458, allocations: 135.5 kB / 0.5622 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.149e-05/0.1458, allocations: 0 / 0.5622 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.631e-05/0.1458, allocations: 7.125 kB / 0.5622 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.1458, allocations: 3.984 kB / 0.5622 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1459, allocations: 0 / 0.5622 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1459, allocations: 3.938 kB / 0.5622 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/0.1461, allocations: 304.3 kB / 0.5625 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1461, allocations: 4 kB / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.156e-06/0.1461, allocations: 0 / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1461, allocations: 0 / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.1461, allocations: 0 / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1461, allocations: 0 / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1461, allocations: 0 / 0.5625 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001391/0.1463, allocations: 173.1 kB / 0.5627 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.714e-05/0.1463, allocations: 81.17 kB / 0.5628 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.1463, allocations: 0 / 0.5628 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.025e-05/0.1464, allocations: 3.984 kB / 0.5628 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.1464, allocations: 8 kB / 0.5628 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.1464, allocations: 3.938 kB / 0.5628 GB, free: 14.49 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.061e-05/0.1464, allocations: 75.28 kB / 0.5629 GB, free: 14.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1464, allocations: 0 / 0.5629 GB, free: 14.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004821/0.1469, allocations: 167.3 kB / 0.563 GB, free: 14.25 MB / 430.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.001216/0.1481, allocations: 0.9527 MB / 0.5639 GB, free: 13.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001337/0.1483, allocations: 67.39 kB / 0.564 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1483, allocations: 4.094 kB / 0.564 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.693e-05/0.1483, allocations: 55.41 kB / 0.5641 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.1485, allocations: 4 kB / 0.5641 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.1497, allocations: 1.218 MB / 0.5653 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.15, allocations: 0.6729 MB / 0.5659 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.161e-05/0.15, allocations: 0 / 0.5659 GB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.15, allocations: 7.438 kB / 0.5659 GB, free: 11.11 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.15, allocations: 0 / 0.5659 GB, free: 11.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02973/0.1798, allocations: 4.639 MB / 0.5704 GB, free: 6.555 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.294/8.474, allocations: 6.859 kB / 0.5705 GB, free: 6.551 MB / 430.1 MB " [Timeout remaining time 651] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.693636344280094]