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.001502/0.001502, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001764/0.001764, allocations: 187.9 kB / 18.71 MB, free: 4.371 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.372/1.372, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2067/0.2067, allocations: 44.17 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 71.88 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4453/0.4468, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001626/0.4485, allocations: 0.5049 MB / 0.5189 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003111/0.4516, allocations: 2.296 MB / 0.5211 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.066e-05/0.4517, allocations: 0.9688 kB / 0.5211 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.992e-05/0.4517, allocations: 7.875 kB / 0.5212 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.524e-06/0.4517, allocations: 0 / 0.5212 GB, free: 1.355 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.001887/0.4536, allocations: 0.5582 MB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.664e-05/0.4537, allocations: 1.219 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.967e-05/0.4538, allocations: 1.719 kB / 0.5217 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.392e-05/0.4538, allocations: 5.844 kB / 0.5217 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.043e-05/0.4538, allocations: 9.047 kB / 0.5217 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-06/0.4538, allocations: 0 / 0.5217 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.4554, allocations: 0.6845 MB / 0.5224 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.4554, allocations: 0.8438 kB / 0.5224 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.946e-05/0.4555, allocations: 5.375 kB / 0.5224 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009504/0.4564, allocations: 448.9 kB / 0.5228 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.4564, allocations: 1.156 kB / 0.5228 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4565, allocations: 3.938 kB / 0.5228 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.4565, 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.0005336/0.457, allocations: 437.1 kB / 0.5232 GB, free: 332 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.4571, allocations: 9.438 kB / 0.5233 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.622e-05/0.4571, allocations: 32.94 kB / 0.5233 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.4572, allocations: 1.453 kB / 0.5233 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.298e-05/0.4573, allocations: 167.1 kB / 0.5234 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.4573, allocations: 384 / 0.5234 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.4573, allocations: 1.469 kB / 0.5234 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.4574, allocations: 39.75 kB / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.4575, allocations: 0 / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.4575, allocations: 1.156 kB / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4575, allocations: 0 / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.878e-05/0.4575, allocations: 7.406 kB / 0.5235 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000327/0.4578, allocations: 234.3 kB / 0.5237 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.314e-05/0.4579, allocations: 21.2 kB / 0.5237 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.919e-05/0.458, allocations: 9.859 kB / 0.5237 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.458, allocations: 4 kB / 0.5237 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.145e-05/0.4581, allocations: 58.23 kB / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.093e-06/0.4581, allocations: 0 / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002409/0.4583, allocations: 78.64 kB / 0.5239 GB, free: 15.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.4584, allocations: 78.48 kB / 0.524 GB, free: 15.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.306e-05/0.4585, allocations: 90.66 kB / 0.524 GB, free: 15.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.4585, allocations: 25.7 kB / 0.5241 GB, free: 15.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.4585, allocations: 81.55 kB / 0.5241 GB, free: 15.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.411e-05/0.4586, allocations: 8.547 kB / 0.5241 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/0.4586, allocations: 16.86 kB / 0.5242 GB, free: 15.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.4588, allocations: 321 kB / 0.5245 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.492e-05/0.4588, allocations: 6.328 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.965e-06/0.4588, allocations: 1.5 kB / 0.5245 GB, free: 14.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.53e-05/0.4589, allocations: 70.94 kB / 0.5245 GB, free: 14.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.4589, allocations: 3.938 kB / 0.5246 GB, free: 14.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.338e-05/0.459, allocations: 67.5 kB / 0.5246 GB, free: 14.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.411e-05/0.4591, allocations: 32.95 kB / 0.5246 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4591, allocations: 0 / 0.5246 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.4591, allocations: 1.938 kB / 0.5246 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.81e-05/0.4591, allocations: 96 / 0.5246 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.4591, allocations: 4.656 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.746e-05/0.4592, allocations: 1.062 kB / 0.5247 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.4592, allocations: 1.188 kB / 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 0.0001104/0.4593, allocations: 142.5 kB / 0.5248 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.484e-05/0.4593, allocations: 2.031 kB / 0.5248 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.267e-05/0.4593, allocations: 7.078 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4594, allocations: 2.266 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4594, allocations: 3.984 kB / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4594, allocations: 0 / 0.5248 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.4597, allocations: 303.8 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4597, allocations: 1.438 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.528e-06/0.4597, allocations: 0.6562 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.4597, allocations: 0 / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.4597, allocations: 1.812 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4597, allocations: 0.875 kB / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4597, allocations: 0 / 0.5251 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.4599, allocations: 175 kB / 0.5253 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.63e-05/0.46, allocations: 87 kB / 0.5253 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.46, allocations: 1.438 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.205e-05/0.46, allocations: 0.6562 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.814e-05/0.46, allocations: 1.625 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.4601, allocations: 1.469 kB / 0.5254 GB, free: 13.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.435e-05/0.4601, allocations: 79.31 kB / 0.5254 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4601, allocations: 0 / 0.5254 GB, free: 13.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005784/0.4607, allocations: 163.4 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.001223/0.4619, allocations: 0.9351 MB / 0.5265 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000133/0.4621, allocations: 74.17 kB / 0.5266 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4621, allocations: 0 / 0.5266 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.18e-05/0.4621, allocations: 58.67 kB / 0.5266 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.4623, allocations: 5.219 kB / 0.5266 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.4636, allocations: 1.211 MB / 0.5278 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.4639, allocations: 0.6768 MB / 0.5285 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.274e-05/0.4639, allocations: 0 / 0.5285 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.464, allocations: 9.719 kB / 0.5285 GB, free: 11.01 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.464, allocations: 4.062 kB / 0.5285 GB, free: 11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.4893, allocations: 4.535 MB / 0.5329 GB, free: 8.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/8.256, allocations: 2.156 kB / 0.5329 GB, free: 8.887 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