Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001207/0.001207, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 59.53 kB / 306.5 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1338, allocations: 50.54 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003574/0.1374, allocations: 1.628 MB / 358.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.1405, allocations: 1.481 MB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.1407, allocations: 0 / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.141, allocations: 11.86 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.1413, allocations: 23.86 kB / 360.2 MB, free: 11.14 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001658/0.1429, allocations: 343.2 kB / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000243/0.1432, allocations: 131.6 kB / 360.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.89e-05/0.1433, allocations: 13.48 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.689e-05/0.1434, allocations: 63.69 kB / 360.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007757/0.1442, allocations: 77.38 kB / 360.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.525e-05/0.1442, allocations: 11.94 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007507/0.145, allocations: 459 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.1451, allocations: 27.92 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.171e-05/0.1451, allocations: 71.52 kB / 361.4 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006905/0.1458, allocations: 415.2 kB / 361.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.1459, allocations: 0 / 361.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1459, allocations: 0 / 361.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1459, allocations: 4 kB / 361.8 MB, free: 9.559 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.0008326/0.1467, allocations: 0.5142 MB / 362.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1468, allocations: 12.03 kB / 362.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.092e-05/0.1468, allocations: 42.73 kB / 362.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002399/0.1471, allocations: 28.73 kB / 362.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.1473, allocations: 213.6 kB / 362.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.1474, allocations: 8.375 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.1474, allocations: 7.938 kB / 362.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.1477, allocations: 132.2 kB / 362.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1477, allocations: 0 / 362.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.1477, allocations: 4 kB / 362.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.1477, allocations: 4 kB / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.1479, allocations: 71.81 kB / 362.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007552/0.1487, allocations: 0.5555 MB / 363.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.1491, allocations: 155.9 kB / 363.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.1492, allocations: 62.55 kB / 363.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.1492, allocations: 4 kB / 363.6 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002878/0.1495, allocations: 157.8 kB / 363.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.1495, allocations: 0 / 363.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005999/0.1501, allocations: 237.4 kB / 364 MB, free: 7.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/0.1502, allocations: 134.8 kB / 364.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.1504, allocations: 199 kB / 364.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.705e-05/0.1505, allocations: 45.7 kB / 364.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.037e-05/0.1506, allocations: 116.4 kB / 364.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.354e-05/0.1506, allocations: 35.55 kB / 364.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.1507, allocations: 61.67 kB / 364.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1508, allocations: 330.8 kB / 364.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.151, allocations: 104 kB / 365 MB, free: 6.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.1513, allocations: 143.2 kB / 365.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003629/0.1516, allocations: 228.2 kB / 365.4 MB, free: 5.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.1516, allocations: 0 / 365.4 MB, free: 5.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005124/0.1522, allocations: 301.2 kB / 365.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1522, allocations: 4 kB / 365.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.1522, allocations: 0 / 365.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1522, allocations: 4 kB / 365.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.1524, allocations: 35.86 kB / 365.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1524, allocations: 8.031 kB / 365.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.041e-05/0.1525, allocations: 23.83 kB / 365.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.1525, allocations: 4 kB / 365.7 MB, free: 5.305 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.0001474/0.1527, allocations: 158.9 kB / 365.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.1527, allocations: 15.81 kB / 365.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.1528, allocations: 17.41 kB / 365.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1528, allocations: 3.938 kB / 365.9 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.1528, allocations: 4 kB / 365.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1528, allocations: 3.984 kB / 365.9 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.153, allocations: 221.4 kB / 366.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.153, allocations: 0 / 366.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-05/0.1531, allocations: 15.98 kB / 366.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.1531, allocations: 7.938 kB / 366.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.1531, allocations: 0 / 366.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1531, allocations: 3.938 kB / 366.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1531, allocations: 4 kB / 366.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.1535, allocations: 226.6 kB / 366.4 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.1536, allocations: 97 kB / 366.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.1536, allocations: 11.94 kB / 366.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.107e-05/0.1537, allocations: 11.92 kB / 366.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.529e-05/0.1538, allocations: 19.92 kB / 366.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.1538, allocations: 8 kB / 366.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.1539, allocations: 145.2 kB / 366.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1539, allocations: 0 / 366.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004331/0.1544, allocations: 123.9 kB / 366.8 MB, free: 4.129 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.001476/0.1559, allocations: 1.059 MB / 367.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004418/0.1563, allocations: 203.7 kB / 368.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1563, allocations: 0 / 368.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.1565, allocations: 68.22 kB / 368.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.1567, allocations: 8 kB / 368.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.1595, allocations: 2.345 MB / 370.5 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1928/0.3523, allocations: 0.7116 MB / 371.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.3525, allocations: 22.2 kB / 371.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.606e-05/0.3526, allocations: 48.14 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3526, allocations: 0 / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3484/0.701, allocations: 5.314 MB / 376.6 MB, free: 19.21 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/0.7013, allocations: 226.5 kB / 376.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.126/2.827, allocations: 9.188 kB / 376.8 MB, free: 18.95 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches