Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.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.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestSpecial",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.001258/0.001258, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001228/0.001228, allocations: 183 kB / 18.72 MB, free: 4.332 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.423/1.423, 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.2292/0.2292, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3941, allocations: 60.82 MB / 0.5184 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001517/0.3956, allocations: 0.5015 MB / 0.5189 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.3984, allocations: 1.991 MB / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.546e-05/0.3985, allocations: 0 / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.003e-05/0.3985, allocations: 0 / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.3985, allocations: 3.938 kB / 0.5209 GB, free: 1.547 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:928:5-1011:16:writable] Warning: Pure function 'ModelicaTest.Math.Random.special' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.4001, allocations: 498.2 kB / 0.5213 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.849e-05/0.4001, allocations: 2.938 kB / 0.5213 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.589e-05/0.4002, allocations: 5.938 kB / 0.5213 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.67e-05/0.4002, allocations: 1 kB / 0.5213 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.685e-05/0.4002, allocations: 3.938 kB / 0.5213 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.4002, allocations: 5 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.4013, allocations: 0.6221 MB / 0.522 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.167e-06/0.4014, allocations: 1.125 kB / 0.522 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.014e-05/0.4014, allocations: 1.156 kB / 0.522 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000614/0.402, allocations: 388 kB / 0.5223 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.402, allocations: 1.594 kB / 0.5223 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.402, allocations: 0 / 0.5223 GB, free: 1.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.402, allocations: 0 / 0.5223 GB, free: 1.055 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.0003643/0.4024, allocations: 412.2 kB / 0.5227 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.4025, allocations: 8.906 kB / 0.5227 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.251e-05/0.4025, allocations: 33.75 kB / 0.5228 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.422e-05/0.4025, allocations: 5.781 kB / 0.5228 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.221e-05/0.4026, allocations: 161 kB / 0.5229 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.4026, allocations: 1.344 kB / 0.5229 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.984e-06/0.4026, allocations: 9.5 kB / 0.5229 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.873e-05/0.4027, allocations: 36.03 kB / 0.523 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.4027, allocations: 0 / 0.523 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.4028, allocations: 4 kB / 0.523 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.4028, allocations: 1.891 kB / 0.523 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.879e-05/0.4028, allocations: 2.031 kB / 0.523 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000171/0.403, allocations: 227.5 kB / 0.5232 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.449e-05/0.403, allocations: 35.23 kB / 0.5232 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.403, allocations: 10.75 kB / 0.5232 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.4031, allocations: 1.562 kB / 0.5232 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.902e-05/0.4031, allocations: 56.97 kB / 0.5233 GB, free: 15.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.4031, allocations: 1.531 kB / 0.5233 GB, free: 15.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001988/0.4033, allocations: 68.95 kB / 0.5234 GB, free: 15.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.4034, allocations: 82.83 kB / 0.5234 GB, free: 15.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.691e-05/0.4035, allocations: 98.59 kB / 0.5235 GB, free: 15.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.4035, allocations: 26.7 kB / 0.5236 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.737e-05/0.4035, allocations: 80.14 kB / 0.5236 GB, free: 15.58 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.4035, allocations: 5.938 kB / 0.5236 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/0.4036, allocations: 12.25 kB / 0.5237 GB, free: 15.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4037, allocations: 313.2 kB / 0.524 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.371e-05/0.4037, allocations: 5.156 kB / 0.524 GB, free: 15.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.718e-06/0.4038, allocations: 6.766 kB / 0.524 GB, free: 15.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.527e-05/0.4038, allocations: 62.81 kB / 0.524 GB, free: 15.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.4038, allocations: 3.938 kB / 0.524 GB, free: 15.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.908e-05/0.4039, allocations: 68.19 kB / 0.5241 GB, free: 15.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.404, allocations: 31.88 kB / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.404, allocations: 0 / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.404, allocations: 0.9375 kB / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.447e-05/0.404, allocations: 4.688 kB / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.404, allocations: 1.031 kB / 0.5241 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.843e-05/0.404, allocations: 9.031 kB / 0.5241 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.4041, allocations: 1.969 kB / 0.5241 GB, free: 15.06 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.0001128/0.4042, allocations: 142.2 kB / 0.5243 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.4042, allocations: 5.672 kB / 0.5243 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.4042, allocations: 7.734 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.4042, allocations: 1 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4042, allocations: 0 / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4043, allocations: 2 kB / 0.5243 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003567/0.4046, allocations: 303 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.4046, allocations: 5.297 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.647e-05/0.4047, allocations: 0 / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.4047, allocations: 5.859 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.4047, allocations: 0 / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4047, allocations: 1.156 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4047, allocations: 0.8438 kB / 0.5246 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.4048, allocations: 170.1 kB / 0.5248 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.898e-05/0.4049, allocations: 82.06 kB / 0.5248 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.4049, allocations: 2.766 kB / 0.5248 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.943e-05/0.405, allocations: 0 / 0.5248 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.059e-05/0.405, allocations: 7.016 kB / 0.5248 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.405, allocations: 0 / 0.5248 GB, free: 14.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.281e-05/0.405, allocations: 75.28 kB / 0.5249 GB, free: 14.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.405, allocations: 0 / 0.5249 GB, free: 14.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004994/0.4055, allocations: 131.2 kB / 0.525 GB, free: 14.17 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.001274/0.4068, allocations: 0.9039 MB / 0.5259 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.407, allocations: 64.94 kB / 0.526 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.407, allocations: 3.938 kB / 0.526 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.643e-05/0.407, allocations: 58.09 kB / 0.526 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.4072, allocations: 2.188 kB / 0.526 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.4083, allocations: 1.187 MB / 0.5272 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.4087, allocations: 0.6767 MB / 0.5279 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.441e-05/0.4087, allocations: 0.7188 kB / 0.5279 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.4087, allocations: 17.66 kB / 0.5279 GB, free: 11.36 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4087, allocations: 0 / 0.5279 GB, free: 11.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.4374, allocations: 4.368 MB / 0.5321 GB, free: 9.379 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.554, allocations: 14.28 kB / 0.5322 GB, free: 9.367 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_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_TestSpecial.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches