Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",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.001316/0.001316, allocations: 117.1 kB / 17.78 MB, free: 5.246 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.001302/0.001303, allocations: 184.2 kB / 18.72 MB, free: 4.32 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.39/1.39, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2233/0.2233, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4107/0.4127, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001664/0.4144, allocations: 0.5039 MB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002934/0.4174, allocations: 2.035 MB / 0.5209 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.926e-05/0.4174, allocations: 0 / 0.5209 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.192e-05/0.4175, allocations: 3.938 kB / 0.5209 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.326e-06/0.4175, allocations: 0 / 0.5209 GB, free: 1.559 MB / 382.1 MB [/home/hudson/saved_omc/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.001576/0.4191, allocations: 0.5052 MB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.347e-05/0.4191, allocations: 1.641 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.556e-05/0.4192, allocations: 1.672 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.931e-05/0.4192, allocations: 1.578 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.132e-05/0.4192, allocations: 1.188 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.826e-06/0.4192, allocations: 0 / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.4203, allocations: 0.6068 MB / 0.522 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.366e-06/0.4203, allocations: 4 kB / 0.522 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.899e-05/0.4204, allocations: 1.062 kB / 0.522 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000809/0.4212, allocations: 388 kB / 0.5224 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4212, allocations: 0 / 0.5224 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.947e-06/0.4212, allocations: 0 / 0.5224 GB, free: 1.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.4212, allocations: 1.312 kB / 0.5224 GB, free: 1.051 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.0004986/0.4217, allocations: 416.8 kB / 0.5228 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.4218, allocations: 13.59 kB / 0.5228 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.654e-05/0.4219, allocations: 33.89 kB / 0.5228 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.4219, allocations: 1.641 kB / 0.5228 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.873e-05/0.422, allocations: 161.2 kB / 0.523 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.422, allocations: 4.312 kB / 0.523 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.422, allocations: 384 / 0.523 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.4221, allocations: 38.58 kB / 0.523 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4222, allocations: 4 kB / 0.523 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.4222, allocations: 0 / 0.523 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.4222, allocations: 0 / 0.523 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.585e-05/0.4222, allocations: 6.844 kB / 0.523 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002144/0.4224, allocations: 235.5 kB / 0.5232 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.838e-05/0.4225, allocations: 19.86 kB / 0.5233 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.787e-05/0.4225, allocations: 11.19 kB / 0.5233 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.4226, allocations: 4 kB / 0.5233 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.581e-05/0.4226, allocations: 66.33 kB / 0.5233 GB, free: 15.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 3.877e-06/0.4227, allocations: 0 / 0.5233 GB, free: 15.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002214/0.4229, allocations: 69.8 kB / 0.5234 GB, free: 15.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.4229, allocations: 83.08 kB / 0.5235 GB, free: 15.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.791e-05/0.423, allocations: 93.81 kB / 0.5236 GB, free: 15.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.423, allocations: 26.45 kB / 0.5236 GB, free: 15.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/0.4231, allocations: 85.42 kB / 0.5237 GB, free: 15.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.4231, allocations: 0 / 0.5237 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.4231, allocations: 14.42 kB / 0.5237 GB, free: 15.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.4233, allocations: 319.6 kB / 0.524 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.279e-05/0.4233, allocations: 2.156 kB / 0.524 GB, free: 15.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.052e-05/0.4233, allocations: 2.953 kB / 0.524 GB, free: 15.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.287e-05/0.4234, allocations: 66.16 kB / 0.5241 GB, free: 15.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4234, allocations: 4 kB / 0.5241 GB, free: 15.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.273e-05/0.4235, allocations: 72.39 kB / 0.5241 GB, free: 15.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.4235, allocations: 33.97 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.4236, allocations: 1.219 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.4236, allocations: 0 / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.465e-05/0.4236, allocations: 1.094 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.4236, allocations: 0.9375 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.077e-05/0.4236, allocations: 1.312 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.4236, allocations: 3.938 kB / 0.5242 GB, free: 15.05 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.0001201/0.4238, allocations: 146.8 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.4238, allocations: 5.734 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.296e-05/0.4238, allocations: 13.34 kB / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.4238, allocations: 0 / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.4239, allocations: 1.156 kB / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4239, allocations: 0 / 0.5243 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.4242, allocations: 299.9 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.4242, allocations: 0.5156 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-06/0.4242, allocations: 0 / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4242, allocations: 2.094 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.4242, allocations: 4.031 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.4242, allocations: 2.203 kB / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4242, allocations: 0 / 0.5246 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001587/0.4244, allocations: 178 kB / 0.5248 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.302e-05/0.4244, allocations: 77.77 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.4245, allocations: 2.031 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.195e-05/0.4245, allocations: 2.094 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.924e-05/0.4245, allocations: 4.031 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.4245, allocations: 2.25 kB / 0.5249 GB, free: 14.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.946e-05/0.4246, allocations: 75.28 kB / 0.525 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4246, allocations: 0 / 0.525 GB, free: 14.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005516/0.4251, allocations: 138.1 kB / 0.5251 GB, free: 14.14 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.001161/0.4263, allocations: 0.9047 MB / 0.526 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001188/0.4264, allocations: 65.17 kB / 0.526 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4265, allocations: 0 / 0.526 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.906e-05/0.4265, allocations: 63.17 kB / 0.5261 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001983/0.4267, allocations: 10 kB / 0.5261 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.4278, allocations: 1.191 MB / 0.5273 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.4281, allocations: 0.6749 MB / 0.5279 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.204e-05/0.4281, allocations: 0.75 kB / 0.5279 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.994e-05/0.4281, allocations: 10.22 kB / 0.5279 GB, free: 11.33 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4282, allocations: 0 / 0.5279 GB, free: 11.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02494/0.4531, allocations: 4.433 MB / 0.5323 GB, free: 9.309 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/8.237, allocations: 6.203 kB / 0.5323 GB, free: 9.305 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches