Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 226.5 MB / 243.4 MB, free: 8.121 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007652/0.0007652, allocations: 104.1 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3148/0.3148, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002947/0.0002949, allocations: 11.98 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2964, allocations: 62.96 MB / 0.516 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0005618/0.297, allocations: 232.7 kB / 0.5162 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.2993, allocations: 2.225 MB / 0.5184 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.632e-05/0.2993, allocations: 0 / 0.5184 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.087e-06/0.2993, allocations: 3.938 kB / 0.5184 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.2993, allocations: 4 kB / 0.5184 GB, free: 35.35 MB / 378.7 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.001131/0.3005, allocations: 473.3 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.049e-05/0.3005, allocations: 4 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.9e-05/0.3006, allocations: 2.969 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.612e-05/0.3006, allocations: 0 / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.705e-05/0.3006, allocations: 0 / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-06/0.3006, allocations: 0 / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000888/0.3015, allocations: 0.7167 MB / 0.5195 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-06/0.3015, allocations: 0 / 0.5195 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.3016, allocations: 25.7 kB / 0.5195 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.3019, allocations: 304.9 kB / 0.5198 GB, free: 34.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3019, allocations: 0 / 0.5198 GB, free: 34.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3019, allocations: 0 / 0.5198 GB, free: 34.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.3019, allocations: 0 / 0.5198 GB, free: 34.84 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.0003107/0.3023, allocations: 434.9 kB / 0.5202 GB, free: 34.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.3023, allocations: 12.53 kB / 0.5203 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.3023, allocations: 30.75 kB / 0.5203 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.907e-05/0.3024, allocations: 11.84 kB / 0.5203 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.892e-05/0.3024, allocations: 160.4 kB / 0.5205 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.3024, allocations: 384 / 0.5205 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.948e-06/0.3024, allocations: 7.25 kB / 0.5205 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.252e-05/0.3025, allocations: 35.97 kB / 0.5205 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-06/0.3025, allocations: 0 / 0.5205 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-06/0.3026, allocations: 0 / 0.5205 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3026, allocations: 3.984 kB / 0.5205 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.735e-05/0.3026, allocations: 2.906 kB / 0.5205 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.3028, allocations: 238.9 kB / 0.5207 GB, free: 33.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.82e-05/0.3028, allocations: 20.36 kB / 0.5207 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.036e-05/0.3028, allocations: 15.08 kB / 0.5208 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.3028, allocations: 0 / 0.5208 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.3029, allocations: 59.14 kB / 0.5208 GB, free: 33.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.3029, allocations: 4 kB / 0.5208 GB, free: 33.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001495/0.303, allocations: 74.19 kB / 0.5209 GB, free: 33.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.3031, allocations: 77.11 kB / 0.521 GB, free: 33.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.756e-05/0.3031, allocations: 89.86 kB / 0.5211 GB, free: 33.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.124e-06/0.3031, allocations: 28.55 kB / 0.5211 GB, free: 33.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-06/0.3031, allocations: 80.14 kB / 0.5212 GB, free: 33.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.3031, allocations: 3.906 kB / 0.5212 GB, free: 33.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.3031, allocations: 3.938 kB / 0.5212 GB, free: 33.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.558e-05/0.3032, allocations: 315 kB / 0.5215 GB, free: 33.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.247e-06/0.3032, allocations: 6.938 kB / 0.5215 GB, free: 33.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.623e-06/0.3032, allocations: 6.438 kB / 0.5215 GB, free: 33.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.115e-05/0.3033, allocations: 59.58 kB / 0.5215 GB, free: 32.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3033, allocations: 3.938 kB / 0.5215 GB, free: 32.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.389e-05/0.3033, allocations: 73.8 kB / 0.5216 GB, free: 32.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3033, allocations: 33.77 kB / 0.5216 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.3034, allocations: 0 / 0.5216 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.3034, allocations: 96 / 0.5216 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.248e-05/0.3034, allocations: 6.5 kB / 0.5216 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.3034, allocations: 3.984 kB / 0.5216 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.3034, allocations: 0 / 0.5216 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.3034, allocations: 3.938 kB / 0.5217 GB, free: 32.83 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.034e-05/0.3035, allocations: 142 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.3035, allocations: 5.531 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.15e-05/0.3035, allocations: 6.719 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3035, allocations: 0 / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3035, allocations: 2.469 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3035, allocations: 4 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.3037, allocations: 300.4 kB / 0.5221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3037, allocations: 0 / 0.5221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.447e-06/0.3037, allocations: 0 / 0.5221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3037, allocations: 3.938 kB / 0.5221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.3037, allocations: 0 / 0.5221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3037, allocations: 0 / 0.5221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3037, allocations: 0 / 0.5221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.109e-05/0.3038, allocations: 175 kB / 0.5223 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.384e-05/0.3038, allocations: 77.11 kB / 0.5223 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.3039, allocations: 4 kB / 0.5223 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.956e-05/0.3039, allocations: 2.938 kB / 0.5223 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.3039, allocations: 3.469 kB / 0.5223 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.3039, allocations: 0 / 0.5223 GB, free: 32.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.232e-05/0.304, allocations: 75.28 kB / 0.5224 GB, free: 31.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.304, allocations: 3.938 kB / 0.5224 GB, free: 31.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003983/0.3044, allocations: 167.3 kB / 0.5226 GB, free: 31.94 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.0008577/0.3052, allocations: 0.9486 MB / 0.5235 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.346e-05/0.3053, allocations: 57.47 kB / 0.5236 GB, free: 31.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3053, allocations: 0 / 0.5236 GB, free: 31.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.081e-05/0.3054, allocations: 64.45 kB / 0.5236 GB, free: 31.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.3056, allocations: 6.938 kB / 0.5236 GB, free: 31.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.306, allocations: 391 kB / 0.524 GB, free: 30.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.52e-05/0.3061, allocations: 0.6722 MB / 0.5247 GB, free: 29.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.3061, allocations: 10.22 kB / 0.5247 GB, free: 29.95 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3061, allocations: 0 / 0.5247 GB, free: 29.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.83/4.136, allocations: 3.551 MB / 0.5281 GB, free: 29.61 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches