Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",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.0009749/0.0009749, allocations: 91.05 kB / 16.65 MB, free: 6.602 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.001281/0.001281, allocations: 173.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.595/1.595, allocations: 223.3 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003206, allocations: 8 kB / 301.5 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1339, allocations: 50.41 MB / 351.9 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002963/0.137, allocations: 1.272 MB / 353.2 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003334/0.1404, allocations: 1.466 MB / 354.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.1405, allocations: 8 kB / 354.7 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.1407, allocations: 11.86 kB / 354.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.1408, allocations: 11.88 kB / 354.7 MB, free: 0.8516 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.1424, allocations: 299.3 kB / 355 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002458/0.1426, allocations: 127.6 kB / 355.1 MB, free: 444 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.914e-05/0.1427, allocations: 21.42 kB / 355.1 MB, free: 416 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1429, allocations: 51.7 kB / 355.2 MB, free: 364 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.1439, allocations: 78.02 kB / 355.3 MB, free: 288 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.144, allocations: 8 kB / 355.3 MB, free: 280 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009754/0.145, allocations: 439.1 kB / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.121e-05/0.145, allocations: 31.86 kB / 355.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.1452, allocations: 81.34 kB / 355.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000925/0.1461, allocations: 411.2 kB / 356.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1461, allocations: 0 / 356.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1461, allocations: 0 / 356.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1461, allocations: 0 / 356.2 MB, free: 15.32 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001069/0.1472, allocations: 498.8 kB / 356.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.1473, allocations: 8.031 kB / 356.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.565e-05/0.1474, allocations: 46.64 kB / 356.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003033/0.1477, allocations: 32.73 kB / 356.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.148, allocations: 213.4 kB / 357 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.148, allocations: 8 kB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.148, allocations: 8 kB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.1484, allocations: 134.9 kB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1484, allocations: 8 kB / 357.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.1484, allocations: 4 kB / 357.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.1484, allocations: 0 / 357.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.1487, allocations: 75.89 kB / 357.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009265/0.1496, allocations: 0.5633 MB / 357.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004019/0.15, allocations: 171.8 kB / 358 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1502, allocations: 66.61 kB / 358 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.1502, allocations: 3.984 kB / 358 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.1505, allocations: 161.8 kB / 358.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.502e-06/0.1505, allocations: 0 / 358.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006413/0.1512, allocations: 273.8 kB / 358.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.89e-05/0.1513, allocations: 122.7 kB / 358.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.1515, allocations: 195 kB / 358.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.253e-05/0.1516, allocations: 49.69 kB / 358.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.1516, allocations: 108.5 kB / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.1517, allocations: 51.38 kB / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.1518, allocations: 33.7 kB / 359 MB, free: 12.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1519, allocations: 342.8 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.1522, allocations: 103.8 kB / 359.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.1524, allocations: 143.2 kB / 359.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004035/0.1528, allocations: 232.2 kB / 359.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1528, allocations: 0 / 359.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005702/0.1534, allocations: 317.3 kB / 360.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1534, allocations: 4 kB / 360.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.1534, allocations: 3.938 kB / 360.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.1535, allocations: 4 kB / 360.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.1536, allocations: 36.02 kB / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.1537, allocations: 0 / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.1538, allocations: 31.73 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.1538, allocations: 4 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,globalSeed.seed,truncatedNormalNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,uniformNoise.actualGlobalSeed,uniformNoise.localSeed,globalSeed.id_impure,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * 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.0001646/0.154, allocations: 149.8 kB / 360.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/0.154, allocations: 11.81 kB / 360.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.1541, allocations: 25.34 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1541, allocations: 4 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1541, allocations: 3.984 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1541, allocations: 0 / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.1543, allocations: 217.5 kB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1543, allocations: 0 / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.869e-05/0.1544, allocations: 15.98 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.1544, allocations: 7.938 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.1545, allocations: 3.938 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.1545, allocations: 7.938 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1545, allocations: 4 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004289/0.1549, allocations: 234.5 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.657e-05/0.155, allocations: 100.9 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.155, allocations: 11.94 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.644e-05/0.1551, allocations: 11.98 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.63e-05/0.1552, allocations: 15.92 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.1552, allocations: 4 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001308/0.1553, allocations: 141.2 kB / 361.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1553, allocations: 0 / 361.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00051/0.1559, allocations: 120 kB / 361.3 MB, free: 9.848 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001749/0.1576, allocations: 1.08 MB / 362.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004721/0.1581, allocations: 199.8 kB / 362.5 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1581, allocations: 4.188 kB / 362.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.1583, allocations: 71.91 kB / 362.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.1585, allocations: 11.94 kB / 362.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.1617, allocations: 2.359 MB / 365 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.1621, allocations: 0.7202 MB / 365.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.6e-05/0.1622, allocations: 25.42 kB / 365.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.14e-05/0.1623, allocations: 47.42 kB / 365.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1623, allocations: 0 / 365.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.192, allocations: 4.991 MB / 370.8 MB, free: 332 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002678/0.1924, allocations: 227.7 kB / 371 MB, free: 76 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.366, allocations: 3.625 kB / 371 MB, free: 76 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches