Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",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.0009151/0.0009152, allocations: 94.34 kB / 17.3 MB, free: 6.387 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.001046/0.001046, allocations: 173.4 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004967/0.0004968, allocations: 12 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1108, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001248/0.1121, allocations: 0.9539 MB / 330 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000928/0.113, allocations: 464.9 kB / 330.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.715e-05/0.113, allocations: 0 / 330.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.746e-05/0.1131, allocations: 0 / 330.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003552/0.1134, allocations: 63.75 kB / 330.5 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001235/0.1136, allocations: 51.89 kB / 330.6 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.186e-05/0.1137, allocations: 35.89 kB / 330.6 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.251e-05/0.1137, allocations: 4 kB / 330.6 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.984e-05/0.1137, allocations: 15.94 kB / 330.6 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.955e-05/0.1138, allocations: 27.91 kB / 330.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.1138, allocations: 0 / 330.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.114, allocations: 115.8 kB / 330.8 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.1141, allocations: 39.84 kB / 330.8 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.421e-05/0.1141, allocations: 69.38 kB / 330.9 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.1144, allocations: 175.5 kB / 331.1 MB, free: 1.641 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1144, allocations: 0 / 331.1 MB, free: 1.641 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1144, allocations: 0 / 331.1 MB, free: 1.641 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1144, allocations: 0 / 331.1 MB, free: 1.641 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005335/0.1149, allocations: 0.5531 MB / 331.6 MB, free: 1.023 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.115, allocations: 15.97 kB / 331.6 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.725e-05/0.1151, allocations: 54.72 kB / 331.7 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.1152, allocations: 20.75 kB / 331.7 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.1154, allocations: 180.2 kB / 331.9 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.1154, allocations: 12.36 kB / 331.9 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.1154, allocations: 4.375 kB / 331.9 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.1157, allocations: 282.9 kB / 332.2 MB, free: 412 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.1157, allocations: 3.938 kB / 332.2 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.1157, allocations: 4 kB / 332.2 MB, free: 404 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1158, allocations: 4 kB / 332.2 MB, free: 400 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.1159, allocations: 148.2 kB / 332.3 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003798/0.1163, allocations: 381.6 kB / 332.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/0.1167, allocations: 0.4975 MB / 333.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/0.1171, allocations: 498 kB / 333.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.1171, allocations: 4 kB / 333.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004811/0.1176, allocations: 486.8 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.082e-06/0.1176, allocations: 0 / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008739/0.1185, allocations: 0.7332 MB / 334.9 MB, free: 13.54 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.1186, allocations: 160.5 kB / 335 MB, free: 13.35 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.757e-05/0.1187, allocations: 101.9 kB / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1187, allocations: 29.7 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.23e-05/0.1188, allocations: 89.12 kB / 335.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.88e-05/0.1189, allocations: 94.48 kB / 335.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.1189, allocations: 33.7 kB / 335.4 MB, free: 12.98 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1191, allocations: 326.8 kB / 335.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.237e-05/0.1192, allocations: 88.39 kB / 335.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.1193, allocations: 124.2 kB / 335.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.1197, allocations: 436.8 kB / 336.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1197, allocations: 3.938 kB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000376/0.12, allocations: 360.5 kB / 336.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.95e-05/0.1202, allocations: 111.3 kB / 336.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1202, allocations: 3.984 kB / 336.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1202, allocations: 0 / 336.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.027e-05/0.1203, allocations: 7.938 kB / 336.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.1203, allocations: 4 kB / 336.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.511e-05/0.1204, allocations: 23.78 kB / 336.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.1204, allocations: 8 kB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 (state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0003188/0.1207, allocations: 303.7 kB / 337.1 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/0.1208, allocations: 24.23 kB / 337.2 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.1208, allocations: 13.56 kB / 337.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1208, allocations: 3.938 kB / 337.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1208, allocations: 0 / 337.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.1208, allocations: 3.984 kB / 337.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/0.1221, allocations: 1.448 MB / 338.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1221, allocations: 0 / 338.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.818e-05/0.1222, allocations: 8 kB / 338.6 MB, free: 9.562 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1222, allocations: 4 kB / 338.7 MB, free: 9.559 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.1222, allocations: 15.98 kB / 338.7 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.1222, allocations: 4 kB / 338.7 MB, free: 9.539 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1222, allocations: 0 / 338.7 MB, free: 9.539 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.1234, allocations: 1.315 MB / 340 MB, free: 8.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/0.1235, allocations: 96.84 kB / 340.1 MB, free: 8.074 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.427e-05/0.1236, allocations: 71.94 kB / 340.2 MB, free: 8.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.982e-05/0.1236, allocations: 8 kB / 340.2 MB, free: 7.996 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.704e-05/0.1237, allocations: 12 kB / 340.2 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.191e-05/0.1237, allocations: 19.98 kB / 340.2 MB, free: 7.965 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.1e-05/0.1238, allocations: 87.2 kB / 340.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1238, allocations: 0 / 340.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.1241, allocations: 88 kB / 340.4 MB, free: 7.793 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.002385/0.1265, allocations: 2.325 MB / 342.7 MB, free: 5.441 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.1282, allocations: 2.136 MB / 344.8 MB, free: 3.277 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1283, allocations: 0 / 344.8 MB, free: 3.277 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.1299, allocations: 2.19 MB / 347 MB, free: 1.062 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.1301, allocations: 24.06 kB / 347 MB, free: 1.039 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.1337, allocations: 3.338 MB / 350.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.134, allocations: 0.7244 MB / 351.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.684e-05/0.1341, allocations: 4 kB / 351.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.1341, allocations: 35.42 kB / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1341, allocations: 0 / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02729/0.1614, allocations: 4.324 MB / 355.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/0.1617, allocations: 252.1 kB / 355.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/1.882, allocations: 0 / 355.7 MB, free: 8.195 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches