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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 113.4 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 184.1 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2155/0.2155, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3573, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001442/0.3588, allocations: 0.5049 MB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002934/0.3617, allocations: 2.295 MB / 0.5211 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.863e-05/0.3618, allocations: 0 / 0.5211 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.3618, allocations: 0 / 0.5211 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.612e-06/0.3619, allocations: 4 kB / 0.5212 GB, free: 1.359 MB / 382.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.001671/0.3635, allocations: 0.5549 MB / 0.5217 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.287e-05/0.3636, allocations: 6.125 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.17e-05/0.3636, allocations: 1.953 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.442e-05/0.3637, allocations: 4.5 kB / 0.5217 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.641e-05/0.3637, allocations: 1.094 kB / 0.5217 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-06/0.3637, allocations: 0 / 0.5217 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.3649, allocations: 0.6973 MB / 0.5224 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.266e-06/0.3649, allocations: 0 / 0.5224 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.958e-05/0.3649, allocations: 10.02 kB / 0.5224 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006949/0.3656, allocations: 439.9 kB / 0.5228 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3656, allocations: 1.625 kB / 0.5228 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3656, allocations: 4 kB / 0.5228 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.3656, allocations: 0 / 0.5228 GB, free: 0.7656 MB / 382.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.0003908/0.366, allocations: 437.7 kB / 0.5232 GB, free: 332 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3661, allocations: 8.875 kB / 0.5232 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.816e-05/0.3661, allocations: 33.58 kB / 0.5233 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.3662, allocations: 0.9375 kB / 0.5233 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.725e-05/0.3662, allocations: 162.5 kB / 0.5234 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3662, allocations: 1.312 kB / 0.5234 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.3663, allocations: 1.781 kB / 0.5234 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.47e-05/0.3663, allocations: 43.28 kB / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.3664, allocations: 0 / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.3664, allocations: 0 / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3664, allocations: 1.375 kB / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.117e-05/0.3664, allocations: 5.906 kB / 0.5235 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002848/0.3667, allocations: 231.5 kB / 0.5237 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.316e-05/0.3668, allocations: 20.66 kB / 0.5237 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.227e-05/0.3668, allocations: 13.84 kB / 0.5237 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.693e-06/0.3668, allocations: 0.5156 kB / 0.5237 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/0.3669, allocations: 70.59 kB / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.3669, allocations: 0 / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001947/0.3671, allocations: 65.33 kB / 0.5239 GB, free: 15.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.3671, allocations: 83.91 kB / 0.524 GB, free: 15.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.833e-05/0.3672, allocations: 90.56 kB / 0.524 GB, free: 15.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.3672, allocations: 29.83 kB / 0.5241 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.723e-05/0.3672, allocations: 80.14 kB / 0.5241 GB, free: 15.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.3673, allocations: 14.12 kB / 0.5242 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.3673, allocations: 13.12 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3674, allocations: 315.6 kB / 0.5245 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.307e-05/0.3674, allocations: 3.828 kB / 0.5245 GB, free: 14.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.745e-06/0.3675, allocations: 2.969 kB / 0.5245 GB, free: 14.94 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.127e-05/0.3675, allocations: 68.7 kB / 0.5245 GB, free: 14.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3675, allocations: 4.594 kB / 0.5245 GB, free: 14.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.429e-05/0.3676, allocations: 71.55 kB / 0.5246 GB, free: 14.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.3677, allocations: 34.06 kB / 0.5246 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3677, allocations: 0.7969 kB / 0.5246 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.3677, allocations: 1.656 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.44e-05/0.3677, allocations: 0 / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.3677, allocations: 0 / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.609e-05/0.3677, allocations: 2.422 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-06/0.3677, allocations: 0 / 0.5247 GB, free: 14.75 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 9.096e-05/0.3678, allocations: 152.1 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.3679, allocations: 2.344 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.673e-05/0.3679, allocations: 7.594 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3679, allocations: 0 / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3679, allocations: 0.7031 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3679, allocations: 0 / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002431/0.3682, allocations: 302.2 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3682, allocations: 0 / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-06/0.3682, allocations: 4.031 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.3682, allocations: 0.7031 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.3682, allocations: 2.062 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3682, allocations: 0 / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3682, allocations: 0.6094 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.3683, allocations: 177.9 kB / 0.5253 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.3684, allocations: 78.23 kB / 0.5253 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.3684, allocations: 1.719 kB / 0.5253 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.99e-05/0.3684, allocations: 5.25 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.5e-05/0.3685, allocations: 1.828 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.3685, allocations: 1.188 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.687e-05/0.3685, allocations: 79.31 kB / 0.5254 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.3685, allocations: 0 / 0.5254 GB, free: 13.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005515/0.3691, allocations: 167.2 kB / 0.5256 GB, free: 13.84 MB / 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.001094/0.3702, allocations: 0.9398 MB / 0.5265 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.3703, allocations: 70.47 kB / 0.5266 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3703, allocations: 0 / 0.5266 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.502e-05/0.3704, allocations: 61.39 kB / 0.5266 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.3706, allocations: 2.453 kB / 0.5266 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009964/0.3716, allocations: 1.207 MB / 0.5278 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.3718, allocations: 0.6764 MB / 0.5285 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.042e-05/0.3718, allocations: 0 / 0.5285 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.916e-05/0.3719, allocations: 10.25 kB / 0.5285 GB, free: 11 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3719, allocations: 0 / 0.5285 GB, free: 11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.3947, allocations: 4.526 MB / 0.5329 GB, free: 8.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.121, allocations: 8.781 kB / 0.5329 GB, free: 8.891 MB / 398.1 MB (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) 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) Reference file matches