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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000987/0.0009871, allocations: 179.8 kB / 17.4 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 241.4 MB, free: 9.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008403/0.0008402, allocations: 106.3 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004024/0.0004025, allocations: 15.98 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2758, allocations: 50.41 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.3796, allocations: 79.12 MB / 481.9 MB, free: 1.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.3799, allocations: 71.95 kB / 481.9 MB, free: 1.117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02305/0.403, allocations: 7.642 MB / 489.6 MB, free: 9.445 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4031, allocations: 0 / 489.6 MB, free: 9.445 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.4031, allocations: 4 kB / 489.6 MB, free: 9.441 MB / 362.7 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.0009278/0.404, allocations: 0.5067 MB / 490.1 MB, free: 8.883 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4041, allocations: 12.03 kB / 490.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002517/0.4043, allocations: 36.73 kB / 490.1 MB, free: 8.836 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.4046, allocations: 209.9 kB / 490.3 MB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.4046, allocations: 4.375 kB / 490.4 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.4046, allocations: 8.375 kB / 490.4 MB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.4049, allocations: 129.5 kB / 490.5 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.405, allocations: 192 / 490.5 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.405, allocations: 15.94 kB / 490.5 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.405, allocations: 0 / 490.5 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.4052, allocations: 67.89 kB / 490.6 MB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008896/0.4061, allocations: 0.5634 MB / 491.1 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003669/0.4065, allocations: 171.7 kB / 491.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.4067, allocations: 70.61 kB / 491.4 MB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.4067, allocations: 7.984 kB / 491.4 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.407, allocations: 160.5 kB / 491.5 MB, free: 7.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.407, allocations: 0 / 491.5 MB, free: 7.277 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006448/0.4077, allocations: 261.3 kB / 491.8 MB, free: 7.016 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.4078, allocations: 126.9 kB / 491.9 MB, free: 6.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.408, allocations: 199 kB / 492.1 MB, free: 6.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.4081, allocations: 41.69 kB / 492.1 MB, free: 6.617 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.947e-05/0.4082, allocations: 116.5 kB / 492.3 MB, free: 6.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.4082, allocations: 43.5 kB / 492.3 MB, free: 6.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.4083, allocations: 0 / 492.3 MB, free: 6.457 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4084, allocations: 334.8 kB / 492.6 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.4086, allocations: 95.8 kB / 492.7 MB, free: 6.027 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.4089, allocations: 135.3 kB / 492.9 MB, free: 5.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.4093, allocations: 220.2 kB / 493.1 MB, free: 5.652 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4093, allocations: 4 kB / 493.1 MB, free: 5.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005297/0.4098, allocations: 293.2 kB / 493.4 MB, free: 5.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.4099, allocations: 4 kB / 493.4 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.4099, allocations: 4 kB / 493.4 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.4099, allocations: 0 / 493.4 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.4101, allocations: 35.92 kB / 493.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.4101, allocations: 3.938 kB / 493.4 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.811e-05/0.4102, allocations: 27.89 kB / 493.4 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.4102, allocations: 12.09 kB / 493.4 MB, free: 5.27 MB / 362.7 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,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.4104, allocations: 161.6 kB / 493.6 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.4104, allocations: 15.81 kB / 493.6 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.4105, allocations: 17.39 kB / 493.6 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.4105, allocations: 0 / 493.6 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4105, allocations: 4 kB / 493.6 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4105, allocations: 4 kB / 493.6 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.4107, allocations: 221.5 kB / 493.9 MB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4107, allocations: 4 kB / 493.9 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.873e-05/0.4108, allocations: 12 kB / 493.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.4108, allocations: 0 / 493.9 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.4108, allocations: 11.98 kB / 493.9 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4108, allocations: 0 / 493.9 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4109, allocations: 0 / 493.9 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004195/0.4113, allocations: 254.4 kB / 494.1 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.891e-05/0.4114, allocations: 88.92 kB / 494.2 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.4114, allocations: 15.98 kB / 494.2 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.645e-05/0.4115, allocations: 8 kB / 494.2 MB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.55e-05/0.4116, allocations: 19.97 kB / 494.3 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.4116, allocations: 7.938 kB / 494.3 MB, free: 4.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001369/0.4117, allocations: 141.2 kB / 494.4 MB, free: 4.203 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4117, allocations: 0 / 494.4 MB, free: 4.203 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006862/0.4124, allocations: 151.7 kB / 494.6 MB, free: 4.055 MB / 362.7 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,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00124/0.4137, allocations: 403.9 kB / 495 MB, free: 3.695 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005008/0.4142, allocations: 255.2 kB / 495.2 MB, free: 3.434 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4142, allocations: 0 / 495.2 MB, free: 3.434 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.4144, allocations: 72.09 kB / 495.3 MB, free: 3.363 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.4146, allocations: 15.92 kB / 495.3 MB, free: 3.348 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005755/0.4152, allocations: 308 kB / 495.6 MB, free: 3.016 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.4155, allocations: 0.7162 MB / 496.3 MB, free: 2.273 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.734e-05/0.4156, allocations: 17.61 kB / 496.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/0.4157, allocations: 23.42 kB / 496.3 MB, free: 2.234 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4157, allocations: 3.938 kB / 496.4 MB, free: 2.23 MB / 362.7 MB Notification: Performance of Templates: time 0.008847/0.4245, allocations: 3.675 MB / 0.4883 GB, free: 14.57 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches