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.001727/0.001727, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.00188/0.00188, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.439/1.439, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 48.23 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1296, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003398/0.133, allocations: 1.53 MB / 351.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.1358, allocations: 1.428 MB / 353.1 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.459e-05/0.1359, allocations: 0 / 353.1 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.1361, allocations: 15.8 kB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.703e-05/0.1362, allocations: 27.78 kB / 353.2 MB, free: 1.289 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.001049/0.1373, allocations: 374.9 kB / 353.5 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.1374, allocations: 135.6 kB / 353.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.655e-05/0.1375, allocations: 9.5 kB / 353.7 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.89e-05/0.1376, allocations: 59.7 kB / 353.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006172/0.1382, allocations: 87.12 kB / 353.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.1382, allocations: 12 kB / 353.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006579/0.1389, allocations: 407.3 kB / 354.2 MB, free: 228 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.764e-05/0.139, allocations: 35.84 kB / 354.3 MB, free: 192 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.116e-05/0.1391, allocations: 67.59 kB / 354.3 MB, free: 124 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006866/0.1397, allocations: 395.4 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1398, allocations: 0 / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1398, allocations: 0 / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1398, allocations: 4 kB / 354.7 MB, free: 15.73 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.0008947/0.1407, allocations: 0.5103 MB / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.1407, allocations: 11.89 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.995e-05/0.1408, allocations: 42.73 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.1411, allocations: 28.73 kB / 355.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.1413, allocations: 216.3 kB / 355.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.1413, allocations: 8 kB / 355.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.1413, allocations: 19.98 kB / 355.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002768/0.1416, allocations: 124.2 kB / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1417, allocations: 0 / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1417, allocations: 8 kB / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1417, allocations: 0 / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.1419, allocations: 67.89 kB / 355.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008364/0.1428, allocations: 0.5556 MB / 356.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.1431, allocations: 147.8 kB / 356.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.1433, allocations: 66.61 kB / 356.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.596e-05/0.1434, allocations: 4 kB / 356.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002983/0.1437, allocations: 152.5 kB / 356.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.1437, allocations: 0 / 356.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005973/0.1443, allocations: 261.7 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.64e-05/0.1444, allocations: 118.8 kB / 357 MB, free: 13.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.1446, allocations: 195.9 kB / 357.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.1447, allocations: 49.62 kB / 357.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.937e-05/0.1447, allocations: 116.4 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.246e-05/0.1448, allocations: 43.53 kB / 357.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.748e-05/0.1449, allocations: 53.69 kB / 357.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.145, allocations: 339 kB / 357.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.1452, allocations: 107.7 kB / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.1455, allocations: 131.9 kB / 358 MB, free: 12.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004104/0.1459, allocations: 228.2 kB / 358.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1459, allocations: 0 / 358.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005523/0.1465, allocations: 305.2 kB / 358.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1465, allocations: 4 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.1465, allocations: 7.938 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1466, allocations: 4.094 kB / 358.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.1467, allocations: 35.91 kB / 358.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.1467, allocations: 0 / 358.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.17e-05/0.1468, allocations: 19.84 kB / 358.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.1469, allocations: 12 kB / 358.6 MB, free: 11.48 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.0001892/0.1471, allocations: 141.8 kB / 358.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.1471, allocations: 15.91 kB / 358.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.1472, allocations: 33.31 kB / 358.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1472, allocations: 0 / 358.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.1472, allocations: 4 kB / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1472, allocations: 0 / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.1474, allocations: 225.4 kB / 359.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1475, allocations: 0 / 359.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.622e-05/0.1475, allocations: 11.98 kB / 359.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.1475, allocations: 4 kB / 359.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.1475, allocations: 3.938 kB / 359.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.114e-06/0.1476, allocations: 7.984 kB / 359.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1476, allocations: 15.86 kB / 359.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.148, allocations: 222.6 kB / 359.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.116e-05/0.1481, allocations: 92.92 kB / 359.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.856e-05/0.1481, allocations: 15.92 kB / 359.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.1482, allocations: 8 kB / 359.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.544e-05/0.1483, allocations: 15.98 kB / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.1483, allocations: 7.984 kB / 359.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.1484, allocations: 141.2 kB / 359.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1484, allocations: 0 / 359.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005089/0.1489, allocations: 120 kB / 359.7 MB, free: 10.31 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.001642/0.1506, allocations: 1.06 MB / 360.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004447/0.151, allocations: 192 kB / 361 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.151, allocations: 4.062 kB / 361 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.1512, allocations: 75.89 kB / 361 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.1514, allocations: 8 kB / 361 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.1544, allocations: 2.302 MB / 363.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.1548, allocations: 0.7201 MB / 364.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.232e-05/0.1549, allocations: 25.39 kB / 364.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.155, allocations: 43.42 kB / 364.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.155, allocations: 0 / 364.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.1811, allocations: 5.352 MB / 369.5 MB, free: 480 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.22/8.401, allocations: 11.92 kB / 369.5 MB, free: 468 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