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.001096/0.001096, allocations: 114.5 kB / 17.73 MB, free: 5.324 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.001114/0.001114, allocations: 187 kB / 18.66 MB, free: 4.398 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.422/1.422, 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.001242/0.001242, allocations: 51.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.0923, allocations: 46.63 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002432/0.09477, allocations: 1.218 MB / 375.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000985/0.09578, allocations: 474.3 kB / 376.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.597e-05/0.09584, allocations: 0 / 376.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.949e-05/0.09592, allocations: 7.938 kB / 376.3 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005491/0.09648, allocations: 67.8 kB / 376.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.09674, allocations: 59.77 kB / 376.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.09688, allocations: 47.89 kB / 376.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.517e-05/0.09694, allocations: 11.97 kB / 376.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.812e-05/0.09699, allocations: 11.94 kB / 376.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.088e-05/0.09703, allocations: 23.91 kB / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.09705, allocations: 0 / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002972/0.09736, allocations: 123.8 kB / 376.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.311e-05/0.09742, allocations: 31.91 kB / 376.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.236e-05/0.09749, allocations: 59.61 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002964/0.09779, allocations: 175.4 kB / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.09781, allocations: 0 / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09781, allocations: 0 / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.09782, 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.0006054/0.09843, allocations: 0.5648 MB / 377.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.09849, allocations: 12.03 kB / 377.5 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.695e-05/0.09858, allocations: 54.72 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.09874, allocations: 24.73 kB / 377.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.0989, allocations: 176.2 kB / 377.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.09892, allocations: 12.38 kB / 377.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.09895, allocations: 4.375 kB / 377.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.09927, allocations: 274.9 kB / 378 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.09929, allocations: 7.875 kB / 378.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.09931, allocations: 4 kB / 378.1 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.09932, allocations: 0 / 378.1 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.09948, allocations: 148.3 kB / 378.2 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003533/0.09984, allocations: 385.5 kB / 378.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.1003, allocations: 0.4936 MB / 379.1 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1727/0.273, allocations: 482.6 kB / 379.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.273, allocations: 1 kB / 379.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005411/0.2736, allocations: 491.5 kB / 380 MB, free: 12.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.804e-06/0.2736, allocations: 0 / 380 MB, free: 12.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0008881/0.2745, allocations: 0.7359 MB / 380.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.2745, allocations: 165.2 kB / 380.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.876e-05/0.2746, allocations: 100.5 kB / 381 MB, free: 12.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.2746, allocations: 27.08 kB / 381 MB, free: 12.37 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.079e-05/0.2747, allocations: 83.41 kB / 381.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.458e-05/0.2747, allocations: 98.23 kB / 381.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.585e-05/0.2748, allocations: 44.97 kB / 381.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.596e-05/0.2749, allocations: 334.7 kB / 381.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.275, allocations: 84.14 kB / 381.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.2751, allocations: 115 kB / 381.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004443/0.2756, allocations: 437.3 kB / 382.2 MB, free: 11.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2756, allocations: 3.75 kB / 382.2 MB, free: 11.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000377/0.276, allocations: 369.7 kB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.2761, allocations: 107.5 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2761, allocations: 4.844 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.2761, allocations: 0 / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.772e-05/0.2762, allocations: 7.234 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.2762, allocations: 0 / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.236e-05/0.2763, allocations: 28.55 kB / 382.7 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.2763, allocations: 9.438 kB / 382.7 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.0002618/0.2766, allocations: 306.8 kB / 383 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.2767, allocations: 28.12 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.2767, allocations: 13.53 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2767, allocations: 2 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.2767, allocations: 3.406 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2767, allocations: 1.969 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.2782, allocations: 1.437 MB / 384.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2782, allocations: 1.75 kB / 384.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.612e-05/0.2783, allocations: 8.312 kB / 384.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2783, allocations: 1.281 kB / 384.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.2783, allocations: 17.23 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.2783, allocations: 1.672 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2783, allocations: 1.188 kB / 384.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.2797, allocations: 1.308 MB / 385.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.2798, allocations: 101.1 kB / 386 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.2799, allocations: 71.92 kB / 386 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.759e-05/0.28, allocations: 8.688 kB / 386 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.951e-05/0.2801, allocations: 19.14 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.744e-05/0.2801, allocations: 26.77 kB / 386.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.104e-05/0.2802, allocations: 80.92 kB / 386.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2802, allocations: 0 / 386.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000405/0.2806, allocations: 89.59 kB / 386.2 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.002246/0.2828, allocations: 2.321 MB / 388.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.2847, allocations: 2.145 MB / 390.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2848, allocations: 0 / 390.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.2862, 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.0002686/0.2865, allocations: 22.75 kB / 392.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.2895, allocations: 3.341 MB / 396.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.2897, allocations: 0.7256 MB / 397 MB, free: 3.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.445e-05/0.2897, allocations: 1.062 kB / 397 MB, free: 3.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.2897, allocations: 36.95 kB / 397 MB, free: 3.957 MB / 318.1 MB Notification: Performance of SimCode: time 8.21e-07/0.2898, allocations: 0 / 397 MB, free: 3.957 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.3131, allocations: 4.89 MB / 401.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.197, allocations: 18.09 kB / 401.9 MB, free: 2.629 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 & /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","/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