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.001779/0.001779, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.00173/0.00173, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.483/1.483, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2262/0.2262, allocations: 46.93 MB / 360.9 MB, free: 4.246 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: 63.89 kB / 0.4962 GB, free: 7.883 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3501, allocations: 66.03 MB / 0.5606 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001681/0.3517, allocations: 0.5009 MB / 0.5611 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003465/0.3552, allocations: 2.404 MB / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.692e-05/0.3552, allocations: 0 / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.3552, allocations: 0 / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.191e-06/0.3552, 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.001643/0.3569, allocations: 0.584 MB / 0.564 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.187e-05/0.3569, allocations: 3.938 kB / 0.5641 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.261e-05/0.357, allocations: 4 kB / 0.5641 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.554e-05/0.357, allocations: 4 kB / 0.5641 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.853e-05/0.357, allocations: 3.984 kB / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.56e-06/0.357, allocations: 0 / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.3583, allocations: 0.8032 MB / 0.5648 GB, free: 132 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.198e-06/0.3583, allocations: 0 / 0.5648 GB, free: 132 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.3584, allocations: 4 kB / 0.5649 GB, free: 128 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000698/0.3591, allocations: 468.6 kB / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3591, allocations: 0 / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3591, allocations: 0 / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.3591, allocations: 0 / 0.5653 GB, free: 15.67 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.0004654/0.3595, allocations: 367.1 kB / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3596, allocations: 8.031 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.651e-05/0.3596, allocations: 46.58 kB / 0.5657 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.315e-05/0.3597, allocations: 4.938 kB / 0.5657 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.124e-05/0.3597, allocations: 106.5 kB / 0.5658 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.3597, allocations: 384 / 0.5658 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.3598, allocations: 384 / 0.5658 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.3599, allocations: 41.81 kB / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.3599, allocations: 0 / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/0.3599, allocations: 0 / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3599, allocations: 0 / 0.5658 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.482e-05/0.3599, allocations: 7.938 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002435/0.3602, allocations: 208 kB / 0.5661 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.195e-05/0.3602, allocations: 22.61 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.456e-05/0.3602, allocations: 8.922 kB / 0.5661 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.3603, allocations: 0 / 0.5661 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.151e-05/0.3603, allocations: 56.27 kB / 0.5661 GB, free: 14.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3603, allocations: 0 / 0.5661 GB, free: 14.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002268/0.3605, allocations: 79.33 kB / 0.5662 GB, free: 14.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.3606, allocations: 81.11 kB / 0.5663 GB, free: 14.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.763e-05/0.3606, allocations: 89.86 kB / 0.5664 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.3607, allocations: 25.7 kB / 0.5664 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.028e-05/0.3607, allocations: 80.14 kB / 0.5665 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.3607, allocations: 4 kB / 0.5665 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.3607, allocations: 17.7 kB / 0.5665 GB, free: 14.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3609, allocations: 310.8 kB / 0.5668 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.171e-05/0.3609, allocations: 4.125 kB / 0.5668 GB, free: 13.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.285e-06/0.3609, allocations: 4 kB / 0.5668 GB, free: 13.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.064e-05/0.361, allocations: 68.2 kB / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.361, allocations: 3.938 kB / 0.5669 GB, free: 13.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.23e-05/0.361, allocations: 71.39 kB / 0.5669 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.629e-05/0.3611, allocations: 32.67 kB / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3611, allocations: 0 / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3611, allocations: 0 / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.783e-05/0.3611, allocations: 8.094 kB / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.3611, allocations: 0 / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.775e-05/0.3611, allocations: 3.953 kB / 0.567 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.3612, allocations: 0 / 0.567 GB, free: 13.7 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.0001109/0.3613, allocations: 155.3 kB / 0.5671 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.3613, allocations: 0 / 0.5671 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.3613, allocations: 3.156 kB / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3613, allocations: 0 / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3613, allocations: 0 / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.3613, allocations: 0 / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.3616, allocations: 287.2 kB / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3616, allocations: 0 / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.507e-06/0.3616, allocations: 0 / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3616, allocations: 7.984 kB / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.3616, allocations: 0 / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3616, allocations: 0 / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3616, allocations: 0 / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.3617, allocations: 173.2 kB / 0.5676 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-06/0.3617, allocations: 11.94 kB / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.3618, allocations: 0 / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.422e-05/0.3618, allocations: 8 kB / 0.5676 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.8e-05/0.3618, allocations: 0 / 0.5676 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.3618, allocations: 4 kB / 0.5676 GB, free: 12.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.008e-05/0.3619, allocations: 79.31 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3619, allocations: 0 / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004864/0.3624, allocations: 163.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.001155/0.3635, allocations: 0.9383 MB / 0.5687 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001441/0.3637, allocations: 71.38 kB / 0.5688 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3637, allocations: 0 / 0.5688 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.117e-05/0.3637, allocations: 55.41 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.0001901/0.3639, allocations: 6.891 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.001101/0.365, allocations: 1.222 MB / 0.5701 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3653, allocations: 0.6728 MB / 0.5707 GB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.067e-05/0.3653, allocations: 0 / 0.5707 GB, free: 9.602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.3653, allocations: 15.42 kB / 0.5707 GB, free: 9.586 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3653, allocations: 7.969 kB / 0.5707 GB, free: 9.578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03115/0.3965, allocations: 4.734 MB / 0.5754 GB, free: 4.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.33, allocations: 4 kB / 0.5754 GB, free: 4.977 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.373903707004501]