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.001638/0.001638, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001789/0.001789, allocations: 187 kB / 18.67 MB, free: 4.402 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.364/1.364, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001344/0.001344, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08654/0.0879, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002191/0.09012, allocations: 1.233 MB / 375.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009104/0.09106, allocations: 454.3 kB / 376.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.956e-05/0.09111, allocations: 0 / 376.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.155e-05/0.09117, allocations: 11.92 kB / 376.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004296/0.0916, allocations: 63.8 kB / 376.4 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001592/0.09178, allocations: 71.75 kB / 376.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.515e-05/0.09188, allocations: 47.89 kB / 376.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.647e-05/0.09193, allocations: 0 / 376.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.275e-05/0.09197, allocations: 23.92 kB / 376.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.328e-05/0.09201, allocations: 15.91 kB / 376.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.09203, allocations: 8 kB / 376.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.09226, allocations: 119.8 kB / 376.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.472e-05/0.09232, allocations: 35.91 kB / 376.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.233e-05/0.09238, allocations: 47.61 kB / 376.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.09264, allocations: 179.2 kB / 376.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.09265, allocations: 0 / 376.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.09266, allocations: 4 kB / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.09267, allocations: 0 / 376.9 MB, free: 2.762 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.0005573/0.09323, allocations: 0.5682 MB / 377.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.09328, allocations: 12.03 kB / 377.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/0.09336, allocations: 54.67 kB / 377.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.09349, allocations: 20.84 kB / 377.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.09365, allocations: 188.2 kB / 377.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.09367, allocations: 4.375 kB / 377.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.0937, allocations: 4.375 kB / 377.8 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.09401, allocations: 278.9 kB / 378.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.09403, allocations: 7.875 kB / 378.1 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.09405, allocations: 4 kB / 378.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.09406, allocations: 4 kB / 378.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000147/0.09421, allocations: 148.3 kB / 378.2 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003265/0.09455, allocations: 381.5 kB / 378.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.09493, allocations: 0.4975 MB / 379.1 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1869/0.2819, allocations: 486.5 kB / 379.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.2819, allocations: 1.375 kB / 379.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005276/0.2825, allocations: 485.2 kB / 380 MB, free: 12.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.773e-06/0.2825, allocations: 2.297 kB / 380 MB, free: 12.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008392/0.2833, allocations: 0.7327 MB / 380.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.2834, allocations: 161 kB / 380.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.056e-05/0.2835, allocations: 105 kB / 381 MB, free: 12.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.2835, allocations: 27.89 kB / 381.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.834e-05/0.2835, allocations: 83.03 kB / 381.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.055e-05/0.2836, allocations: 102.2 kB / 381.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.824e-05/0.2836, allocations: 42.73 kB / 381.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.411e-05/0.2837, allocations: 331.4 kB / 381.6 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.99e-05/0.2838, allocations: 84.09 kB / 381.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.2839, allocations: 117.9 kB / 381.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003832/0.2843, allocations: 435.9 kB / 382.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2843, allocations: 5.781 kB / 382.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003366/0.2847, allocations: 373.2 kB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.037e-05/0.2848, allocations: 113.1 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2848, allocations: 2 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.2848, allocations: 1.062 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.508e-05/0.2849, allocations: 5.188 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.2849, allocations: 1.844 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.224e-05/0.285, allocations: 31.55 kB / 382.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.285, allocations: 12.34 kB / 382.8 MB, free: 11.56 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.0002223/0.2852, allocations: 305.8 kB / 383.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.937e-05/0.2853, allocations: 30.41 kB / 383.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.026e-05/0.2853, allocations: 7.672 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2853, allocations: 1.438 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2853, allocations: 1.594 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2853, allocations: 0.6094 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.2866, allocations: 1.439 MB / 384.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2867, allocations: 2.188 kB / 384.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.536e-05/0.2867, allocations: 4.406 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2867, allocations: 1.156 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.2867, allocations: 18.67 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.2868, allocations: 0.9844 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2868, allocations: 0.9375 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.2881, allocations: 1.315 MB / 385.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.562e-05/0.2882, allocations: 101 kB / 386 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.2883, allocations: 66.41 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.519e-05/0.2884, allocations: 9.219 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.724e-05/0.2884, allocations: 16.16 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.459e-05/0.2885, allocations: 22.45 kB / 386.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.974e-05/0.2885, allocations: 84.81 kB / 386.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2885, allocations: 2.281 kB / 386.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004053/0.2889, allocations: 90.8 kB / 386.3 MB, free: 10.12 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.002128/0.291, allocations: 2.324 MB / 388.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.2925, allocations: 2.144 MB / 390.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2926, allocations: 1.5 kB / 390.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/0.294, allocations: 2.189 MB / 392.9 MB, free: 6.496 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2943, allocations: 23.41 kB / 393 MB, free: 6.492 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.2975, allocations: 3.337 MB / 396.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.2977, allocations: 0.727 MB / 397 MB, free: 3.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.779e-05/0.2977, allocations: 1.906 kB / 397 MB, free: 3.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.98e-05/0.2978, allocations: 39.84 kB / 397.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2978, allocations: 0 / 397.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.3204, allocations: 4.751 MB / 401.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/8.013, allocations: 17.27 kB / 401.8 MB, free: 2.711 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