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.001426/0.001426, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.001651/0.001651, allocations: 206.7 kB / 23.72 MB, free: 4.492 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.54/1.54, allocations: 230.5 MB / 257.4 MB, free: 7.777 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.2617/0.2617, allocations: 46.94 MB / 360.8 MB, free: 3.914 MB / 286.1 MB " [Timeout remaining time 179] 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.002604/0.002604, allocations: 87.84 kB / 0.4962 GB, free: 7.539 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3599, allocations: 66.09 MB / 0.5607 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00167/0.3616, allocations: 497.1 kB / 0.5612 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.365, allocations: 2.241 MB / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.762e-05/0.3651, allocations: 0 / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.075e-05/0.3651, allocations: 3.938 kB / 0.5634 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.815e-06/0.3651, allocations: 4 kB / 0.5634 GB, free: 1.25 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.001756/0.3668, allocations: 0.5798 MB / 0.5639 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.643e-05/0.3669, allocations: 0 / 0.5639 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.559e-05/0.3669, allocations: 7.984 kB / 0.5639 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.3669, allocations: 0 / 0.5639 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.073e-05/0.367, allocations: 3.938 kB / 0.5639 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.214e-06/0.367, allocations: 0 / 0.5639 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.3683, allocations: 0.6863 MB / 0.5646 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.828e-06/0.3683, allocations: 0 / 0.5646 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.878e-05/0.3683, allocations: 3.906 kB / 0.5646 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006542/0.369, allocations: 436.7 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.369, allocations: 0 / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.369, allocations: 7.938 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.369, allocations: 0 / 0.565 GB, free: 15.54 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.0004573/0.3694, allocations: 367.1 kB / 0.5654 GB, free: 15.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3695, allocations: 8.031 kB / 0.5654 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.3695, allocations: 34.7 kB / 0.5654 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.435e-05/0.3696, allocations: 4.938 kB / 0.5654 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.63e-05/0.3697, allocations: 102.5 kB / 0.5655 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-06/0.3697, allocations: 384 / 0.5655 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.3697, allocations: 384 / 0.5655 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.3698, allocations: 67.52 kB / 0.5656 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.3698, allocations: 12 kB / 0.5656 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.3698, allocations: 0 / 0.5656 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.3698, allocations: 3.938 kB / 0.5656 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.504e-05/0.3698, allocations: 29.64 kB / 0.5656 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002272/0.3701, allocations: 208 kB / 0.5658 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.823e-05/0.3701, allocations: 48.28 kB / 0.5659 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.499e-05/0.3702, allocations: 38.62 kB / 0.5659 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/0.3702, allocations: 0 / 0.5659 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.3702, allocations: 60.25 kB / 0.566 GB, free: 14.4 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.3702, allocations: 0 / 0.566 GB, free: 14.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002202/0.3704, allocations: 130.8 kB / 0.5661 GB, free: 14.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.3705, allocations: 81.09 kB / 0.5662 GB, free: 14.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.647e-05/0.3706, allocations: 89.86 kB / 0.5663 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.3706, allocations: 25.7 kB / 0.5663 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.914e-05/0.3706, allocations: 80.14 kB / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.3706, allocations: 4 kB / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.672e-05/0.3707, allocations: 13.72 kB / 0.5664 GB, free: 13.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3708, allocations: 314.8 kB / 0.5667 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.821e-05/0.3708, allocations: 25.7 kB / 0.5667 GB, free: 13.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.621e-05/0.3709, allocations: 33.83 kB / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.29e-05/0.3709, allocations: 72.25 kB / 0.5668 GB, free: 13.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3709, allocations: 3.938 kB / 0.5668 GB, free: 13.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.478e-05/0.371, allocations: 97.05 kB / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.3711, allocations: 33.69 kB / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.3711, allocations: 0 / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.3711, allocations: 0 / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.72e-05/0.3711, allocations: 0 / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3711, allocations: 4 kB / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.3711, allocations: 3.953 kB / 0.5669 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.3711, allocations: 4.031 kB / 0.567 GB, free: 13.28 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.0001051/0.3712, allocations: 143.5 kB / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.3713, allocations: 0 / 0.5671 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.3713, allocations: 3.156 kB / 0.5671 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.3713, allocations: 0 / 0.5671 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3713, allocations: 3.984 kB / 0.5671 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3713, allocations: 0 / 0.5671 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.3716, allocations: 297 kB / 0.5674 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.3716, allocations: 0 / 0.5674 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-06/0.3716, allocations: 7.938 kB / 0.5674 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.3716, allocations: 4.031 kB / 0.5674 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.3716, allocations: 0 / 0.5674 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3716, allocations: 0 / 0.5674 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3716, allocations: 0 / 0.5674 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001689/0.3718, allocations: 198.9 kB / 0.5676 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-06/0.3718, allocations: 11.88 kB / 0.5676 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.3718, allocations: 4 kB / 0.5676 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.174e-05/0.3718, allocations: 7.984 kB / 0.5676 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.866e-05/0.3718, allocations: 3.984 kB / 0.5676 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.3718, allocations: 0 / 0.5676 GB, free: 12.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.708e-05/0.3719, allocations: 83.28 kB / 0.5677 GB, free: 12.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3719, allocations: 4.031 kB / 0.5677 GB, free: 12.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004812/0.3724, allocations: 163.3 kB / 0.5678 GB, free: 12.25 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.001201/0.3736, allocations: 0.9887 MB / 0.5688 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.3737, allocations: 126.8 kB / 0.5689 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3737, allocations: 0 / 0.5689 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.556e-05/0.3738, allocations: 81.11 kB / 0.569 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.374, allocations: 10.33 kB / 0.569 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.3751, allocations: 1.356 MB / 0.5703 GB, free: 9.492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.349e-05/0.3752, allocations: 51.36 kB / 0.5704 GB, free: 9.422 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.198e-05/0.3752, allocations: 4 kB / 0.5704 GB, free: 9.418 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.114e-05/0.3752, allocations: 7.438 kB / 0.5704 GB, free: 9.41 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3752, allocations: 192 / 0.5704 GB, free: 9.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.4063, allocations: 5.172 MB / 0.5755 GB, free: 4.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.99, allocations: 10.89 kB / 0.5755 GB, free: 4.332 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_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.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_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.112576114013791]