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.00122/0.00122, 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.001307/0.001307, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.371/1.371, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001319/0.001319, allocations: 59.91 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09249, 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.002308/0.09484, allocations: 1.229 MB / 375.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009085/0.09577, allocations: 458.3 kB / 376.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.188e-05/0.09582, allocations: 0 / 376.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.09588, allocations: 11.94 kB / 376.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004656/0.09635, allocations: 67.73 kB / 376.4 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.09656, allocations: 75.73 kB / 376.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.09673, allocations: 43.91 kB / 376.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.634e-05/0.09679, allocations: 0 / 376.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.778e-05/0.09685, allocations: 23.91 kB / 376.5 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.705e-05/0.09689, allocations: 15.92 kB / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.09691, allocations: 4 kB / 376.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.09716, allocations: 123.8 kB / 376.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.8e-05/0.09723, allocations: 27.92 kB / 376.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.925e-05/0.0973, allocations: 55.61 kB / 376.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002856/0.09759, allocations: 179.3 kB / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.09761, allocations: 0 / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09761, allocations: 4 kB / 376.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.09762, allocations: 0 / 376.9 MB, free: 2.758 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.0006985/0.09833, allocations: 0.5643 MB / 377.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.09838, allocations: 8.031 kB / 377.5 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.66e-05/0.09847, allocations: 58.67 kB / 377.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.09861, allocations: 20.84 kB / 377.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.09877, allocations: 188.1 kB / 377.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.09879, allocations: 4.375 kB / 377.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.09882, allocations: 12.38 kB / 377.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.09914, allocations: 274.9 kB / 378.1 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.09916, allocations: 3.938 kB / 378.1 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.09918, allocations: 4 kB / 378.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.09919, allocations: 0 / 378.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.09942, allocations: 148.2 kB / 378.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003651/0.0998, allocations: 389.6 kB / 378.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.1002, allocations: 0.5014 MB / 379.1 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1661/0.2663, allocations: 481.3 kB / 379.6 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.2664, allocations: 0 / 379.6 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007185/0.2671, allocations: 486.6 kB / 380 MB, free: 12.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.2672, allocations: 1.203 kB / 380 MB, free: 12.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009405/0.2681, allocations: 0.7335 MB / 380.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.2682, allocations: 162.8 kB / 380.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.667e-05/0.2683, allocations: 102.7 kB / 381 MB, free: 12.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.2683, allocations: 27.45 kB / 381.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.623e-05/0.2683, allocations: 83.8 kB / 381.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.436e-05/0.2684, allocations: 101 kB / 381.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.727e-05/0.2685, allocations: 46.2 kB / 381.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.05e-05/0.2686, allocations: 331.6 kB / 381.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.2688, allocations: 83.62 kB / 381.7 MB, free: 11.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.2689, allocations: 116.7 kB / 381.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.2694, allocations: 438.6 kB / 382.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2694, allocations: 6.719 kB / 382.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004439/0.2699, allocations: 374.7 kB / 382.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.27, allocations: 108.1 kB / 382.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.27, allocations: 0 / 382.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.27, allocations: 1.938 kB / 382.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.566e-05/0.2701, allocations: 4.516 kB / 382.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2701, allocations: 1.844 kB / 382.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.525e-05/0.2702, allocations: 28.08 kB / 382.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.2703, allocations: 16.73 kB / 382.8 MB, free: 11.58 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.0002826/0.2705, allocations: 302.3 kB / 383.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.279e-05/0.2706, allocations: 30.75 kB / 383.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.2706, allocations: 7.344 kB / 383.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2707, allocations: 1.906 kB / 383.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.2707, allocations: 4.75 kB / 383.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2707, allocations: 0.6562 kB / 383.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.2723, allocations: 1.434 MB / 384.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.2723, allocations: 0 / 384.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-05/0.2723, allocations: 7.641 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2724, allocations: 1.25 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.2724, allocations: 21.86 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.2724, allocations: 1.062 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2724, allocations: 0 / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.2739, allocations: 1.319 MB / 385.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.2739, allocations: 99.77 kB / 386 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.2741, allocations: 66.2 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.317e-05/0.2742, allocations: 9.391 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.231e-05/0.2742, allocations: 13.45 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.2743, allocations: 21.95 kB / 386.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.865e-05/0.2743, allocations: 84.55 kB / 386.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2743, allocations: 0 / 386.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004188/0.2747, allocations: 92.06 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.002258/0.277, allocations: 2.329 MB / 388.6 MB, free: 9.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.2787, allocations: 2.138 MB / 390.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2788, allocations: 0 / 390.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.2802, allocations: 2.193 MB / 392.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.2805, allocations: 28.28 kB / 393 MB, free: 6.484 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003391/0.2839, allocations: 3.333 MB / 396.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001831/0.2841, allocations: 0.7256 MB / 397 MB, free: 3.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.162e-05/0.2842, allocations: 2.453 kB / 397 MB, free: 3.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.32e-05/0.2842, allocations: 35.95 kB / 397.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2842, allocations: 0 / 397.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.308, allocations: 4.762 MB / 401.8 MB, free: 2.727 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.034, allocations: 16.59 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