Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000938/0.000938, allocations: 175.5 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.7 MB / 243.9 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000834/0.0008338, allocations: 99.62 kB / 295.1 MB, free: 9.492 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3769/0.3769, allocations: 44.32 MB / 390.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005315/0.0005316, allocations: 12 kB / 463.1 MB, free: 476 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4306/0.4312, allocations: 61.89 MB / 0.5127 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0006263/0.4318, allocations: 233.8 kB / 0.513 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003262/0.4351, allocations: 3.417 MB / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.499e-05/0.4352, allocations: 0 / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.352e-05/0.4352, allocations: 0 / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.831e-06/0.4352, allocations: 0 / 0.5163 GB, free: 34.67 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001388/0.4366, allocations: 428.8 kB / 0.5167 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.658e-05/0.4366, allocations: 7.938 kB / 0.5167 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.212e-05/0.4367, allocations: 0 / 0.5167 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.041e-05/0.4367, allocations: 2.938 kB / 0.5167 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.008e-05/0.4368, allocations: 0 / 0.5167 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.059e-06/0.4368, allocations: 0 / 0.5167 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001199/0.438, allocations: 0.616 MB / 0.5173 GB, free: 34.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.098e-06/0.438, allocations: 3.938 kB / 0.5173 GB, free: 34.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.524e-05/0.438, allocations: 27.48 kB / 0.5173 GB, free: 34.27 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007976/0.4388, allocations: 389.3 kB / 0.5177 GB, free: 34.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.4389, allocations: 5.156 kB / 0.5177 GB, free: 34.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4389, allocations: 0 / 0.5177 GB, free: 34.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.4389, allocations: 0 / 0.5177 GB, free: 34.15 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.0004302/0.4393, allocations: 409.3 kB / 0.5181 GB, free: 33.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.4394, allocations: 13.66 kB / 0.5181 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.4394, allocations: 0.9375 kB / 0.5181 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.961e-05/0.4395, allocations: 164.4 kB / 0.5183 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.4395, allocations: 2.844 kB / 0.5183 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.4395, allocations: 384 / 0.5183 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.738e-05/0.4396, allocations: 48.45 kB / 0.5183 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.4396, allocations: 0 / 0.5183 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.4396, allocations: 0 / 0.5183 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.4397, allocations: 3.188 kB / 0.5183 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.881e-05/0.4397, allocations: 2.719 kB / 0.5183 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.4398, allocations: 141.7 kB / 0.5185 GB, free: 33.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.612e-05/0.4398, allocations: 17.27 kB / 0.5185 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.303e-05/0.4398, allocations: 8.797 kB / 0.5185 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-06/0.4399, allocations: 6.625 kB / 0.5185 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/0.4399, allocations: 67.34 kB / 0.5186 GB, free: 33.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.4399, allocations: 0 / 0.5186 GB, free: 33.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.00016/0.4401, allocations: 60.03 kB / 0.5186 GB, free: 33.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.4401, allocations: 80.06 kB / 0.5187 GB, free: 33.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.553e-05/0.4402, allocations: 93.8 kB / 0.5188 GB, free: 32.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.955e-06/0.4402, allocations: 25.7 kB / 0.5188 GB, free: 32.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.323e-05/0.4402, allocations: 87.08 kB / 0.5189 GB, free: 32.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.4402, allocations: 0 / 0.5189 GB, free: 32.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-06/0.4402, allocations: 0 / 0.5189 GB, free: 32.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.15e-05/0.4403, allocations: 314.8 kB / 0.5192 GB, free: 32.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.4403, allocations: 0 / 0.5192 GB, free: 32.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.099e-06/0.4403, allocations: 6.875 kB / 0.5192 GB, free: 32.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.728e-05/0.4403, allocations: 62.36 kB / 0.5193 GB, free: 32.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4403, allocations: 0 / 0.5193 GB, free: 32.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.829e-05/0.4404, allocations: 61.31 kB / 0.5193 GB, free: 32.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.4404, allocations: 39.52 kB / 0.5194 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.4405, allocations: 0 / 0.5194 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.4405, allocations: 6.312 kB / 0.5194 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.4405, allocations: 0 / 0.5194 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.4405, allocations: 0 / 0.5194 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.7e-05/0.4405, allocations: 0 / 0.5194 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.4405, allocations: 0 / 0.5194 GB, free: 32.3 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 6.053e-05/0.4406, allocations: 135 kB / 0.5195 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-06/0.4406, allocations: 11.91 kB / 0.5195 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.149e-05/0.4406, allocations: 9.422 kB / 0.5195 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4406, allocations: 0 / 0.5195 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4406, allocations: 0.7969 kB / 0.5195 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.4407, allocations: 3.938 kB / 0.5195 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.04e-05/0.4407, allocations: 143.8 kB / 0.5197 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4407, allocations: 3 kB / 0.5197 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.4407, allocations: 0 / 0.5197 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.4407, allocations: 4.688 kB / 0.5197 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-06/0.4408, allocations: 0 / 0.5197 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.4408, allocations: 0 / 0.5197 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4408, allocations: 4.516 kB / 0.5197 GB, free: 31.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.001e-05/0.4409, allocations: 90.02 kB / 0.5198 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.4409, allocations: 77.77 kB / 0.5198 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.4409, allocations: 7.672 kB / 0.5198 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.12e-05/0.4409, allocations: 4 kB / 0.5198 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.253e-05/0.4409, allocations: 4 kB / 0.5198 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.441, allocations: 0.7031 kB / 0.5198 GB, free: 31.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.518e-05/0.441, allocations: 79.31 kB / 0.5199 GB, free: 31.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.441, allocations: 6.906 kB / 0.5199 GB, free: 31.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005275/0.4415, allocations: 124.7 kB / 0.52 GB, free: 31.63 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0009477/0.4425, allocations: 304.4 kB / 0.5203 GB, free: 31.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.881e-05/0.4426, allocations: 66.39 kB / 0.5204 GB, free: 31.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4426, allocations: 7.875 kB / 0.5204 GB, free: 31.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.24e-05/0.4426, allocations: 55.48 kB / 0.5205 GB, free: 31.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.4427, allocations: 2.922 kB / 0.5205 GB, free: 31.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001678/0.4429, allocations: 81.5 kB / 0.5205 GB, free: 31.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.443, allocations: 0.6726 MB / 0.5212 GB, free: 30.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.302e-06/0.443, allocations: 0 / 0.5212 GB, free: 30.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.092e-05/0.4431, allocations: 8.656 kB / 0.5212 GB, free: 30.54 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.4431, allocations: 5 kB / 0.5212 GB, free: 30.53 MB / 378.7 MB Notification: Performance of Templates: time 0.007086/0.4502, allocations: 3.407 MB / 0.5245 GB, free: 30.26 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches