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.001254/0.001254, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001206/0.001206, allocations: 188.2 kB / 18.67 MB, free: 4.383 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.416/1.416, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001682/0.001682, allocations: 55.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.0981, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00228/0.1004, allocations: 1.237 MB / 375.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009492/0.1014, allocations: 462.3 kB / 376.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.963e-05/0.1014, allocations: 0 / 376.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.412e-05/0.1015, allocations: 4 kB / 376.3 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004519/0.1019, allocations: 71.73 kB / 376.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.1021, allocations: 67.75 kB / 376.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.1022, allocations: 43.91 kB / 376.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.162e-05/0.1023, allocations: 3.984 kB / 376.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.601e-05/0.1023, allocations: 19.92 kB / 376.5 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.038e-05/0.1024, allocations: 19.92 kB / 376.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.1024, allocations: 4 kB / 376.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002473/0.1026, allocations: 119.8 kB / 376.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.847e-05/0.1027, allocations: 31.89 kB / 376.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.1029, allocations: 55.62 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.1031, allocations: 175.3 kB / 376.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1031, allocations: 3.938 kB / 376.9 MB, free: 2.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1032, allocations: 0 / 376.9 MB, free: 2.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1032, allocations: 0 / 376.9 MB, free: 2.75 MB / 318.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.0008013/0.104, allocations: 0.576 MB / 377.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.104, allocations: 8.031 kB / 377.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.496e-05/0.1041, allocations: 54.69 kB / 377.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.1042, allocations: 24.83 kB / 377.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.1045, allocations: 176.2 kB / 377.8 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.1045, allocations: 8.375 kB / 377.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.1045, allocations: 4.375 kB / 377.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.1051, allocations: 282.9 kB / 378.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1051, allocations: 7.875 kB / 378.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.1051, allocations: 3.938 kB / 378.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1052, allocations: 7.984 kB / 378.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.1053, allocations: 140.3 kB / 378.2 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003911/0.1057, allocations: 385.6 kB / 378.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004853/0.1062, allocations: 0.5014 MB / 379.1 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1747/0.281, allocations: 479.2 kB / 379.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.281, allocations: 1.375 kB / 379.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005874/0.2816, allocations: 491.3 kB / 380.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.763e-06/0.2816, allocations: 1.375 kB / 380.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008542/0.2825, allocations: 0.7354 MB / 380.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.52e-05/0.2826, allocations: 166.5 kB / 381 MB, free: 12.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.585e-05/0.2826, allocations: 104.5 kB / 381.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.2827, allocations: 28.3 kB / 381.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.304e-05/0.2827, allocations: 85.22 kB / 381.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.2e-05/0.2828, allocations: 98.16 kB / 381.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.2828, allocations: 41.91 kB / 381.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.415e-05/0.2829, allocations: 331.8 kB / 381.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.283, allocations: 81.2 kB / 381.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.2832, allocations: 119.9 kB / 381.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/0.2836, allocations: 431.1 kB / 382.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2836, allocations: 6.781 kB / 382.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000353/0.284, allocations: 377.8 kB / 382.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.484e-05/0.2841, allocations: 107 kB / 382.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2841, allocations: 2.094 kB / 382.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.2841, allocations: 1.281 kB / 382.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.87e-05/0.2842, allocations: 5.906 kB / 382.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2842, allocations: 1.469 kB / 382.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.153e-05/0.2843, allocations: 27.42 kB / 382.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.2843, allocations: 11.94 kB / 382.8 MB, free: 11.54 MB / 318.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.0002212/0.2845, allocations: 300.5 kB / 383.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.2846, allocations: 29.62 kB / 383.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.2846, allocations: 8.328 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.2846, allocations: 1.5 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2846, allocations: 3.656 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2846, allocations: 2.203 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.2859, allocations: 1.441 MB / 384.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2859, allocations: 1.812 kB / 384.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.015e-05/0.2859, allocations: 4.969 kB / 384.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.2859, allocations: 0 / 384.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.286, allocations: 18.31 kB / 384.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.286, allocations: 2.5 kB / 384.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.286, allocations: 1.688 kB / 384.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.2872, allocations: 1.317 MB / 385.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.094e-05/0.2873, allocations: 99.47 kB / 386 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.935e-05/0.2874, allocations: 66.12 kB / 386.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.148e-05/0.2875, allocations: 8.844 kB / 386.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.2875, allocations: 12.92 kB / 386.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.2876, allocations: 23.58 kB / 386.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.663e-05/0.2876, allocations: 86.3 kB / 386.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2876, allocations: 0 / 386.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003755/0.288, allocations: 92.19 kB / 386.3 MB, free: 10.08 MB / 318.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.002199/0.2902, allocations: 2.322 MB / 388.6 MB, free: 8.973 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.2919, allocations: 2.142 MB / 390.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2919, allocations: 3.844 kB / 390.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.2934, allocations: 2.187 MB / 392.9 MB, free: 6.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.2937, allocations: 27.53 kB / 393 MB, free: 6.453 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003099/0.2968, allocations: 3.335 MB / 396.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2969, allocations: 0.7284 MB / 397 MB, free: 3.945 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.495e-05/0.2969, allocations: 2.031 kB / 397 MB, free: 3.945 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.896e-05/0.297, allocations: 38.45 kB / 397.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.297, allocations: 0 / 397.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.3251, allocations: 4.762 MB / 401.8 MB, free: 2.703 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.115/8.44, allocations: 14.09 kB / 401.8 MB, free: 2.691 MB / 318.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Random/Examples/GenerateRandomNumbers/GenerateRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches