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.001163/0.001163, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001319/0.001319, allocations: 187 kB / 18.66 MB, free: 4.406 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.296/1.296, 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.001537/0.001537, allocations: 47.94 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0807/0.08226, allocations: 46.62 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.002235/0.08454, allocations: 1.229 MB / 375.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009083/0.08547, allocations: 462.3 kB / 376.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.49e-05/0.08552, allocations: 0 / 376.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.91e-05/0.08558, allocations: 3.938 kB / 376.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.08602, allocations: 75.72 kB / 376.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001742/0.08621, allocations: 59.81 kB / 376.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.08633, allocations: 47.89 kB / 376.5 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.317e-05/0.08638, allocations: 4 kB / 376.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.583e-05/0.08642, allocations: 19.92 kB / 376.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.778e-05/0.08647, allocations: 27.91 kB / 376.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.08649, allocations: 0 / 376.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002535/0.08675, allocations: 119.8 kB / 376.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.661e-05/0.08681, allocations: 31.92 kB / 376.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.837e-05/0.08688, allocations: 55.59 kB / 376.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002724/0.08716, allocations: 175.4 kB / 376.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.08717, allocations: 0 / 376.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.08718, allocations: 0 / 376.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.08719, allocations: 0 / 376.9 MB, free: 2.766 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.0006331/0.08783, allocations: 0.5687 MB / 377.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.08788, allocations: 8.031 kB / 377.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.713e-05/0.08796, allocations: 58.72 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.0881, allocations: 16.75 kB / 377.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.08825, allocations: 188.1 kB / 377.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.08827, allocations: 384 / 377.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.0883, allocations: 8.375 kB / 377.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.08864, allocations: 278.9 kB / 378 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.08866, allocations: 3.938 kB / 378.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.08869, allocations: 12 kB / 378.1 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.0887, allocations: 3.984 kB / 378.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.08886, allocations: 144.3 kB / 378.2 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003765/0.08924, allocations: 381.5 kB / 378.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004041/0.08965, allocations: 0.4975 MB / 379.1 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1613/0.251, allocations: 487.6 kB / 379.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.251, allocations: 0 / 379.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006057/0.2516, allocations: 485 kB / 380 MB, free: 12.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/0.2517, allocations: 2.578 kB / 380 MB, free: 12.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0009769/0.2527, allocations: 0.7302 MB / 380.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.2527, allocations: 163.6 kB / 380.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.087e-05/0.2528, allocations: 103.9 kB / 381 MB, free: 12.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.2528, allocations: 27.08 kB / 381 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.248e-05/0.2529, allocations: 83.22 kB / 381.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.778e-05/0.2529, allocations: 101 kB / 381.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.33e-05/0.253, allocations: 44.53 kB / 381.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.287e-05/0.2531, allocations: 331.3 kB / 381.6 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.2532, allocations: 85.64 kB / 381.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.2534, allocations: 119.8 kB / 381.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000456/0.2538, allocations: 432.5 kB / 382.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2539, allocations: 4.469 kB / 382.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003878/0.2543, allocations: 368.7 kB / 382.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.586e-05/0.2544, allocations: 112.3 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.2544, allocations: 1.281 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.2544, allocations: 1.641 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.178e-05/0.2545, allocations: 5.734 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.2545, allocations: 3.734 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.2546, allocations: 24.89 kB / 382.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.2546, allocations: 7.625 kB / 382.7 MB, free: 11.57 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.0002463/0.2548, allocations: 312.1 kB / 383 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.713e-05/0.2549, allocations: 26.86 kB / 383.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.118e-05/0.2549, allocations: 7.312 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2549, allocations: 1.656 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.255, allocations: 0.875 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.255, allocations: 3 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.2562, allocations: 1.438 MB / 384.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.2563, allocations: 1.078 kB / 384.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.421e-05/0.2563, allocations: 7.922 kB / 384.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.2563, allocations: 7.547 kB / 384.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.2563, allocations: 18.14 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2563, allocations: 1.156 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2563, allocations: 1.797 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.2576, allocations: 1.308 MB / 385.9 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.43e-05/0.2577, allocations: 105.4 kB / 386 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.2578, allocations: 67.56 kB / 386 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.36e-05/0.2579, allocations: 11.06 kB / 386 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.2579, allocations: 13.17 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.258, allocations: 22.45 kB / 386.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.693e-05/0.258, allocations: 81.55 kB / 386.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.258, allocations: 0 / 386.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003734/0.2584, allocations: 90.42 kB / 386.2 MB, free: 10.13 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.00223/0.2606, allocations: 2.328 MB / 388.6 MB, free: 9.016 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.2624, allocations: 2.141 MB / 390.7 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2624, allocations: 0 / 390.7 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.2639, allocations: 2.19 MB / 392.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.2642, allocations: 28.39 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.003198/0.2674, allocations: 3.331 MB / 396.3 MB, free: 4.691 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001905/0.2676, allocations: 0.7249 MB / 397 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.552e-05/0.2676, allocations: 6.203 kB / 397 MB, free: 3.992 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.2677, allocations: 36.58 kB / 397 MB, free: 3.961 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2677, allocations: 0 / 397 MB, free: 3.961 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.2902, allocations: 4.892 MB / 401.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.41/7.7, allocations: 9.281 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