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.001813/0.001813, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001445/0.001445, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.429/1.429, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2318/0.2318, allocations: 46.93 MB / 360.9 MB, free: 4.266 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.89 kB / 0.4962 GB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3316, allocations: 66.03 MB / 0.5606 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001605/0.3332, allocations: 0.4998 MB / 0.5611 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003593/0.3368, allocations: 2.405 MB / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.662e-05/0.3368, allocations: 0 / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.614e-05/0.3369, allocations: 0 / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.3369, allocations: 0 / 0.5635 GB, free: 1.531 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.001606/0.3385, allocations: 0.5881 MB / 0.5641 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.948e-05/0.3385, allocations: 3.984 kB / 0.5641 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.587e-05/0.3386, allocations: 0 / 0.5641 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.14e-05/0.3386, allocations: 7.938 kB / 0.5641 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.942e-05/0.3386, allocations: 3.984 kB / 0.5641 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-06/0.3386, allocations: 0 / 0.5641 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.34, allocations: 0.7993 MB / 0.5649 GB, free: 128 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-06/0.34, allocations: 4 kB / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.34, allocations: 0 / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006994/0.3407, allocations: 464.6 kB / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3407, allocations: 0 / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3407, allocations: 7.938 kB / 0.5653 GB, free: 15.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.3407, allocations: 3.984 kB / 0.5653 GB, free: 15.66 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.0004845/0.3412, allocations: 363.1 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3413, allocations: 12.03 kB / 0.5657 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.517e-05/0.3413, allocations: 34.7 kB / 0.5657 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.328e-05/0.3413, allocations: 0.9375 kB / 0.5657 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.083e-05/0.3414, allocations: 110.5 kB / 0.5658 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.3414, allocations: 4.375 kB / 0.5658 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.3414, allocations: 4.375 kB / 0.5658 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.3415, allocations: 37.77 kB / 0.5659 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3416, allocations: 0 / 0.5659 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.692e-06/0.3416, allocations: 0 / 0.5659 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.3416, allocations: 4 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.196e-05/0.3416, allocations: 4 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002261/0.3418, allocations: 200 kB / 0.5661 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.752e-05/0.3419, allocations: 26.55 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.822e-05/0.3419, allocations: 16.91 kB / 0.5661 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-06/0.3419, allocations: 0 / 0.5661 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.3419, allocations: 64.25 kB / 0.5662 GB, free: 14.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.3419, allocations: 0 / 0.5662 GB, free: 14.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001946/0.3421, allocations: 67.41 kB / 0.5662 GB, free: 14.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.3422, allocations: 81.09 kB / 0.5663 GB, free: 14.47 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.332e-05/0.3422, allocations: 89.86 kB / 0.5664 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.3423, allocations: 25.7 kB / 0.5664 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.285e-05/0.3423, allocations: 80.14 kB / 0.5665 GB, free: 14.26 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.376e-05/0.3423, allocations: 4.125 kB / 0.5665 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.3423, allocations: 17.72 kB / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3425, allocations: 318.8 kB / 0.5668 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.305e-05/0.3425, allocations: 0 / 0.5668 GB, free: 13.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.051e-05/0.3425, allocations: 4 kB / 0.5668 GB, free: 13.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.51e-05/0.3426, allocations: 68.25 kB / 0.5669 GB, free: 13.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3426, allocations: 3.938 kB / 0.5669 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.663e-05/0.3427, allocations: 59.41 kB / 0.5669 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.3427, allocations: 37.8 kB / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/0.3427, allocations: 0 / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.3427, allocations: 3.984 kB / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.318e-05/0.3427, allocations: 0 / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.3427, allocations: 0 / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.002e-05/0.3427, allocations: 15.89 kB / 0.567 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.3427, allocations: 0 / 0.567 GB, free: 13.69 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.558e-05/0.3428, allocations: 135.5 kB / 0.5671 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.3429, allocations: 4 kB / 0.5671 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.703e-05/0.3429, allocations: 15.03 kB / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.3429, allocations: 0 / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3429, allocations: 0 / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3429, allocations: 0 / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.3432, allocations: 279.3 kB / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3432, allocations: 4 kB / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.697e-06/0.3432, allocations: 0 / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3432, allocations: 0 / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.3432, allocations: 0 / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3432, allocations: 4 kB / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.3432, allocations: 7.969 kB / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.3434, allocations: 165.2 kB / 0.5676 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-06/0.3434, allocations: 7.938 kB / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.3434, allocations: 4 kB / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.912e-05/0.3434, allocations: 0 / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.873e-05/0.3435, allocations: 0 / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-06/0.3435, allocations: 0 / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.071e-05/0.3435, allocations: 83.34 kB / 0.5677 GB, free: 12.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3435, allocations: 4 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004714/0.344, allocations: 167.3 kB / 0.5678 GB, free: 12.73 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.001133/0.3451, allocations: 0.9446 MB / 0.5688 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001274/0.3452, allocations: 63.41 kB / 0.5688 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3452, allocations: 0 / 0.5688 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.364e-05/0.3453, allocations: 59.39 kB / 0.5689 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.3455, allocations: 7.938 kB / 0.5689 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.3466, allocations: 1.218 MB / 0.5701 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.3469, allocations: 0.6807 MB / 0.5707 GB, free: 9.594 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.041e-05/0.3469, allocations: 0 / 0.5707 GB, free: 9.594 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.01e-05/0.3469, allocations: 11.38 kB / 0.5707 GB, free: 9.582 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3469, allocations: 0 / 0.5707 GB, free: 9.582 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03121/0.3781, allocations: 4.75 MB / 0.5754 GB, free: 4.977 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.57, allocations: 8 kB / 0.5754 GB, free: 4.969 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.419324253918603]