Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.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.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",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.00181/0.001809, allocations: 115.7 kB / 17.78 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.001945/0.001945, allocations: 185 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.518/1.518, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.226/0.226, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3443, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001533/0.3458, allocations: 0.5271 MB / 0.5189 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007811/0.3466, allocations: 449.2 kB / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.745e-05/0.3467, allocations: 0.9062 kB / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.44e-05/0.3468, allocations: 0 / 0.5194 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.3469, allocations: 12.05 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.3474, allocations: 167.5 kB / 0.5195 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001599/0.3476, allocations: 84.12 kB / 0.5196 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.766e-05/0.3477, allocations: 2.891 kB / 0.5196 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.021e-05/0.3477, allocations: 43.36 kB / 0.5197 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.882e-05/0.3478, allocations: 18.33 kB / 0.5197 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.3478, allocations: 3.438 kB / 0.5197 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.348, allocations: 94.08 kB / 0.5198 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.961e-05/0.3481, allocations: 29.83 kB / 0.5198 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.506e-05/0.3481, allocations: 25.59 kB / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.3484, allocations: 131.7 kB / 0.52 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3484, allocations: 0 / 0.52 GB, free: 2.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3484, allocations: 1.156 kB / 0.52 GB, free: 2.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.3484, allocations: 0 / 0.52 GB, free: 2.457 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005102/0.3489, allocations: 406.8 kB / 0.5204 GB, free: 2.047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.349, allocations: 9.156 kB / 0.5204 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.349, allocations: 38.77 kB / 0.5204 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.503e-05/0.3491, allocations: 9.406 kB / 0.5204 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.3492, allocations: 184.9 kB / 0.5206 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.705e-06/0.3493, allocations: 5.609 kB / 0.5206 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.3493, allocations: 7.406 kB / 0.5206 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.3495, allocations: 92.39 kB / 0.5207 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3495, allocations: 5.062 kB / 0.5207 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.3495, allocations: 1.672 kB / 0.5207 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3495, allocations: 0.5625 kB / 0.5207 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.972e-05/0.3496, allocations: 22.73 kB / 0.5207 GB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.3498, allocations: 169.3 kB / 0.5209 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.815e-05/0.3498, allocations: 41.09 kB / 0.5209 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.558e-05/0.3499, allocations: 26.52 kB / 0.5209 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.3499, allocations: 5.031 kB / 0.5209 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/0.3502, allocations: 134.9 kB / 0.5211 GB, free: 1.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.3502, allocations: 3.938 kB / 0.5211 GB, free: 1.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002938/0.3505, allocations: 133.6 kB / 0.5212 GB, free: 1.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.3505, allocations: 56.61 kB / 0.5213 GB, free: 1.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.829e-05/0.3506, allocations: 100.7 kB / 0.5214 GB, free: 1.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3506, allocations: 27.97 kB / 0.5214 GB, free: 1.148 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.171e-05/0.3507, allocations: 85.64 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.3507, allocations: 26.09 kB / 0.5215 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.3507, allocations: 35.02 kB / 0.5215 GB, free: 1.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.146e-05/0.3508, allocations: 316.1 kB / 0.5218 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.398e-05/0.3509, allocations: 25.2 kB / 0.5218 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.345e-05/0.3509, allocations: 78.89 kB / 0.5219 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.3511, allocations: 147 kB / 0.5221 GB, free: 500 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3511, allocations: 0.6562 kB / 0.5221 GB, free: 500 kB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002046/0.3513, allocations: 162.1 kB / 0.5222 GB, free: 396 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.3514, allocations: 33.28 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3514, allocations: 2.031 kB / 0.5222 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.3514, allocations: 3.344 kB / 0.5223 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3515, allocations: 22.59 kB / 0.5223 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.3515, allocations: 4.016 kB / 0.5223 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.798e-05/0.3516, allocations: 7.172 kB / 0.5223 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.3516, allocations: 10.36 kB / 0.5223 GB, free: 348 kB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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.0001328/0.3518, allocations: 128.5 kB / 0.5224 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.3518, allocations: 7.797 kB / 0.5224 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.379e-05/0.3518, allocations: 10.2 kB / 0.5224 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3518, allocations: 1.188 kB / 0.5224 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3518, allocations: 1.344 kB / 0.5224 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3519, allocations: 0.6094 kB / 0.5224 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.352, allocations: 181.2 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.352, allocations: 1.219 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.809e-05/0.3521, allocations: 9.375 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3521, allocations: 1.891 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.3521, allocations: 1.812 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.3521, allocations: 4.062 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3521, allocations: 1.641 kB / 0.5226 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/0.3523, allocations: 135.1 kB / 0.5228 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.715e-05/0.3524, allocations: 90.84 kB / 0.5228 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.3524, allocations: 4.734 kB / 0.5228 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.3526, allocations: 20.11 kB / 0.5229 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.143e-05/0.3527, allocations: 8.469 kB / 0.5229 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.3527, allocations: 5.531 kB / 0.5229 GB, free: 15.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.634e-05/0.3528, allocations: 79.2 kB / 0.523 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3528, allocations: 0 / 0.523 GB, free: 15.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003205/0.3531, allocations: 49.88 kB / 0.523 GB, free: 15.69 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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008495/0.354, allocations: 0.7314 MB / 0.5237 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.3542, allocations: 131 kB / 0.5238 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3542, allocations: 0 / 0.5238 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.854e-05/0.3543, allocations: 30.06 kB / 0.5239 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00017/0.3545, allocations: 18.27 kB / 0.5239 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.3561, allocations: 1.429 MB / 0.5253 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.3564, allocations: 0.6865 MB / 0.526 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.498e-05/0.3565, allocations: 14.45 kB / 0.526 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.181e-05/0.3565, allocations: 22.3 kB / 0.526 GB, free: 12.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3565, allocations: 0 / 0.526 GB, free: 12.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.3809, allocations: 3.012 MB / 0.5289 GB, free: 11.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.432, allocations: 8.406 kB / 0.5289 GB, free: 11.79 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches