Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009128/0.0009129, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 243.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007439/0.000744, allocations: 98.88 kB / 295.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3018/0.3018, allocations: 44.81 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002703/0.0002703, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3234, allocations: 62.97 MB / 0.516 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0005225/0.3239, allocations: 231.8 kB / 0.5162 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002231/0.3262, allocations: 1.995 MB / 0.5181 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.648e-05/0.3262, allocations: 0 / 0.5181 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.646e-06/0.3262, allocations: 0 / 0.5181 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.571e-06/0.3262, allocations: 0 / 0.5181 GB, free: 35.63 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1013:5-1096:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.distributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.3273, allocations: 425.4 kB / 0.5185 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.836e-05/0.3273, allocations: 4 kB / 0.5185 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.3274, allocations: 2.906 kB / 0.5185 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.321e-05/0.3274, allocations: 0 / 0.5185 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.609e-05/0.3274, allocations: 0 / 0.5185 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-06/0.3274, allocations: 0 / 0.5185 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008484/0.3283, allocations: 0.6396 MB / 0.5192 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.304e-06/0.3283, allocations: 0 / 0.5192 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.833e-05/0.3283, allocations: 25.7 kB / 0.5192 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.3287, allocations: 261.2 kB / 0.5194 GB, free: 35.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3287, allocations: 0 / 0.5194 GB, free: 35.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3287, allocations: 0 / 0.5194 GB, free: 35.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.3287, allocations: 3.938 kB / 0.5194 GB, free: 35.18 MB / 378.7 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.0003077/0.329, allocations: 409.1 kB / 0.5198 GB, free: 34.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.329, allocations: 8.812 kB / 0.5198 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.739e-05/0.3291, allocations: 33.75 kB / 0.5199 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.883e-05/0.3291, allocations: 0.9375 kB / 0.5199 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.606e-05/0.3292, allocations: 171.7 kB / 0.52 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.224e-06/0.3292, allocations: 384 / 0.52 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.3292, allocations: 3.312 kB / 0.52 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.259e-05/0.3293, allocations: 36.77 kB / 0.5201 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.3293, allocations: 4 kB / 0.5201 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-06/0.3293, allocations: 0 / 0.5201 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3293, allocations: 0 / 0.5201 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.651e-05/0.3293, allocations: 3 kB / 0.5201 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001739/0.3295, allocations: 235.2 kB / 0.5203 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.63e-05/0.3296, allocations: 31.77 kB / 0.5203 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.3296, allocations: 12.42 kB / 0.5204 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.3296, allocations: 0 / 0.5204 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.3296, allocations: 56.27 kB / 0.5204 GB, free: 34.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.3296, allocations: 3.031 kB / 0.5204 GB, free: 34.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.00015/0.3298, allocations: 71.28 kB / 0.5205 GB, free: 34.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.3298, allocations: 83.86 kB / 0.5206 GB, free: 33.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.046e-05/0.3299, allocations: 89.86 kB / 0.5206 GB, free: 33.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.065e-06/0.3299, allocations: 25.7 kB / 0.5207 GB, free: 33.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.117e-05/0.3299, allocations: 80.14 kB / 0.5207 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.3299, allocations: 10.94 kB / 0.5208 GB, free: 33.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.3299, allocations: 0 / 0.5208 GB, free: 33.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.813e-05/0.33, allocations: 314.2 kB / 0.5211 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.737e-06/0.33, allocations: 4.125 kB / 0.5211 GB, free: 33.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.673e-06/0.33, allocations: 7.031 kB / 0.5211 GB, free: 33.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.344e-05/0.33, allocations: 62.27 kB / 0.5211 GB, free: 33.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3301, allocations: 3.938 kB / 0.5211 GB, free: 33.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.516e-05/0.3301, allocations: 71.09 kB / 0.5212 GB, free: 33.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.3301, allocations: 31.05 kB / 0.5212 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.3302, allocations: 0 / 0.5212 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3302, allocations: 2.438 kB / 0.5212 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.247e-05/0.3302, allocations: 4.094 kB / 0.5212 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3302, allocations: 0 / 0.5212 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.3302, allocations: 0 / 0.5212 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.3302, allocations: 2.25 kB / 0.5212 GB, free: 33.21 MB / 378.7 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 (result,$outputAlias_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.629e-05/0.3303, allocations: 141.5 kB / 0.5214 GB, free: 33.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.115e-05/0.3303, allocations: 7.984 kB / 0.5214 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.146e-05/0.3303, allocations: 6.719 kB / 0.5214 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3303, allocations: 7.469 kB / 0.5214 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3303, allocations: 0 / 0.5214 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.3304, allocations: 4 kB / 0.5214 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.3305, allocations: 295 kB / 0.5217 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-06/0.3305, allocations: 3.938 kB / 0.5217 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.118e-06/0.3305, allocations: 2.844 kB / 0.5217 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.3306, allocations: 0 / 0.5217 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.3306, allocations: 3.984 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3306, allocations: 3.938 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3306, allocations: 0 / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.573e-05/0.3307, allocations: 174.9 kB / 0.5219 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.073e-05/0.3307, allocations: 80.44 kB / 0.5219 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.3307, allocations: 2.844 kB / 0.5219 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.77e-05/0.3308, allocations: 0 / 0.5219 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.752e-05/0.3308, allocations: 0 / 0.5219 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-06/0.3308, allocations: 2.969 kB / 0.5219 GB, free: 32.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.339e-05/0.3308, allocations: 75.28 kB / 0.522 GB, free: 32.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3308, allocations: 0 / 0.522 GB, free: 32.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003891/0.3312, allocations: 136.7 kB / 0.5221 GB, free: 32.32 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008376/0.3321, allocations: 0.9104 MB / 0.523 GB, free: 31.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.698e-05/0.3321, allocations: 63.56 kB / 0.5231 GB, free: 31.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3322, allocations: 0 / 0.5231 GB, free: 31.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.15e-05/0.3322, allocations: 62.31 kB / 0.5231 GB, free: 31.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001751/0.3324, allocations: 9.172 kB / 0.5232 GB, free: 31.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.3328, allocations: 383.4 kB / 0.5235 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.3329, allocations: 0.672 MB / 0.5242 GB, free: 30.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.54e-05/0.3329, allocations: 10.34 kB / 0.5242 GB, free: 30.34 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.3329, allocations: 0 / 0.5242 GB, free: 30.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.054/4.387, allocations: 3.476 MB / 0.5276 GB, free: 30.05 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches