Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001263/0.001263, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001512/0.001512, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.474/1.474, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2267/0.2267, allocations: 44.91 MB / 359.6 MB, free: 6.379 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 63.89 kB / 0.4939 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3848/0.387, allocations: 65.48 MB / 0.5578 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001745/0.3888, allocations: 0.4888 MB / 0.5583 GB, free: 7.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004069/0.3928, allocations: 2.408 MB / 0.5606 GB, free: 4.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.418e-05/0.3929, allocations: 0 / 0.5606 GB, free: 4.855 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.499e-05/0.3929, allocations: 4 kB / 0.5606 GB, free: 4.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.496e-06/0.3929, allocations: 0 / 0.5606 GB, free: 4.852 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.002204/0.3951, allocations: 0.5803 MB / 0.5612 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.394e-05/0.3952, allocations: 7.984 kB / 0.5612 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.994e-05/0.3952, allocations: 3.938 kB / 0.5612 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.156e-05/0.3953, allocations: 0 / 0.5612 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.102e-05/0.3953, allocations: 0 / 0.5612 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.336e-06/0.3953, allocations: 0 / 0.5612 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3968, allocations: 0.8071 MB / 0.562 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.358e-06/0.3968, allocations: 0 / 0.562 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.427e-05/0.3968, allocations: 4 kB / 0.562 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007198/0.3975, allocations: 460.7 kB / 0.5624 GB, free: 2.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.3976, allocations: 4 kB / 0.5624 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3976, allocations: 0 / 0.5624 GB, free: 2.992 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3976, allocations: 0 / 0.5624 GB, free: 2.992 MB / 398.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.0005031/0.3981, allocations: 371 kB / 0.5628 GB, free: 2.594 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.3981, allocations: 8.031 kB / 0.5628 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.591e-05/0.3981, allocations: 192 / 0.5628 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.162e-05/0.3982, allocations: 42.62 kB / 0.5628 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.3982, allocations: 8.938 kB / 0.5629 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.57e-05/0.3983, allocations: 106.5 kB / 0.563 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.382e-06/0.3983, allocations: 4.375 kB / 0.563 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.3983, allocations: 384 / 0.563 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.3984, allocations: 33.64 kB / 0.563 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.3984, allocations: 0 / 0.563 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3984, allocations: 4 kB / 0.563 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.3984, allocations: 0 / 0.563 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.682e-05/0.3985, allocations: 7.922 kB / 0.563 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002413/0.3987, allocations: 200 kB / 0.5632 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.647e-05/0.3988, allocations: 26.59 kB / 0.5632 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.616e-05/0.3988, allocations: 12.92 kB / 0.5632 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.3988, allocations: 0 / 0.5632 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.38e-05/0.3989, allocations: 60.27 kB / 0.5633 GB, free: 1.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.02e-07/0.3989, allocations: 0 / 0.5633 GB, free: 1.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002205/0.3991, allocations: 79.31 kB / 0.5634 GB, free: 1.891 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.3991, allocations: 81.23 kB / 0.5634 GB, free: 1.793 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.52e-05/0.3992, allocations: 89.86 kB / 0.5635 GB, free: 1.695 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.3992, allocations: 25.7 kB / 0.5636 GB, free: 1.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.667e-05/0.3992, allocations: 80.14 kB / 0.5636 GB, free: 1.582 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.3993, allocations: 0 / 0.5636 GB, free: 1.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.432e-05/0.3993, allocations: 17.72 kB / 0.5636 GB, free: 1.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3994, allocations: 310.8 kB / 0.5639 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.544e-05/0.3995, allocations: 7.984 kB / 0.5639 GB, free: 1.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.794e-06/0.3995, allocations: 4 kB / 0.564 GB, free: 1.234 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.403e-05/0.3995, allocations: 72.2 kB / 0.564 GB, free: 1.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3995, allocations: 0 / 0.564 GB, free: 1.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.178e-05/0.3996, allocations: 71.33 kB / 0.5641 GB, free: 1.066 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.3996, allocations: 29.7 kB / 0.5641 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.3996, allocations: 4 kB / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3997, allocations: 0 / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.455e-05/0.3997, allocations: 0 / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.3997, allocations: 0 / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.97e-05/0.3997, allocations: 8.047 kB / 0.5641 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.3997, allocations: 0 / 0.5641 GB, free: 1.02 MB / 398.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.0001206/0.3998, allocations: 147.4 kB / 0.5643 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.3998, allocations: 0 / 0.5643 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.428e-05/0.3999, allocations: 7.141 kB / 0.5643 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3999, allocations: 7.938 kB / 0.5643 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3999, allocations: 0 / 0.5643 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3999, allocations: 0 / 0.5643 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.4002, allocations: 275.3 kB / 0.5645 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.4002, allocations: 4 kB / 0.5646 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-06/0.4002, allocations: 0 / 0.5646 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.4002, allocations: 0 / 0.5646 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.4002, allocations: 0 / 0.5646 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.4002, allocations: 0 / 0.5646 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.4002, allocations: 4 kB / 0.5646 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.4003, allocations: 169.2 kB / 0.5647 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.14e-05/0.4003, allocations: 15.98 kB / 0.5647 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.4003, allocations: 3.938 kB / 0.5647 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.342e-05/0.4004, allocations: 7.984 kB / 0.5647 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.793e-05/0.4004, allocations: 0 / 0.5647 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.4004, allocations: 4 kB / 0.5647 GB, free: 296 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.773e-05/0.4004, allocations: 83.22 kB / 0.5648 GB, free: 212 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4004, allocations: 0 / 0.5648 GB, free: 212 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004855/0.4009, allocations: 159.4 kB / 0.565 GB, free: 52 kB / 398.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.001167/0.4021, allocations: 0.9388 MB / 0.5659 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000134/0.4022, allocations: 71.33 kB / 0.566 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4022, allocations: 4.094 kB / 0.566 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.139e-05/0.4023, allocations: 55.41 kB / 0.566 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.4025, allocations: 12.84 kB / 0.566 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.4037, allocations: 1.218 MB / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.404, allocations: 0.6806 MB / 0.5679 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.082e-05/0.404, allocations: 0 / 0.5679 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.97e-05/0.404, allocations: 7.438 kB / 0.5679 GB, free: 12.9 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.404, allocations: 0 / 0.5679 GB, free: 12.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02735/0.4314, allocations: 4.776 MB / 0.5726 GB, free: 8.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.45, allocations: 5.609 kB / 0.5726 GB, free: 8.277 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.403873545001261]