Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions") translateModel(Modelica.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise_y|truncatedNormalNoise_y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009676/0.0009675, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.757/1.757, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009216/0.0009216, allocations: 98.67 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.86e-05/3.895e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 47.57 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.385/0.4904, allocations: 78.15 MB / 448.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.4907, allocations: 67.39 kB / 448.2 MB, free: 15.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02191/0.5127, allocations: 7.518 MB / 455.8 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5127, allocations: 0 / 455.8 MB, free: 8.586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.5127, allocations: 4 kB / 455.8 MB, free: 8.582 MB / 330.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.0007927/0.5135, allocations: 0.4903 MB / 456.2 MB, free: 8.059 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.5136, allocations: 12.03 kB / 456.3 MB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002177/0.5138, allocations: 27.8 kB / 456.3 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.514, allocations: 195.7 kB / 456.5 MB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.514, allocations: 11.95 kB / 456.5 MB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.699e-05/0.5141, allocations: 11.88 kB / 456.5 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.5143, allocations: 119.3 kB / 456.6 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.5143, allocations: 0 / 456.6 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.5143, allocations: 0 / 456.6 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.5143, allocations: 0 / 456.6 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.036e-05/0.5144, allocations: 47.3 kB / 456.7 MB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007761/0.5152, allocations: 0.5652 MB / 457.2 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.5154, allocations: 126.7 kB / 457.4 MB, free: 6.922 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.94e-05/0.5155, allocations: 50.47 kB / 457.4 MB, free: 6.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.5155, allocations: 11.92 kB / 457.4 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/0.5157, allocations: 140.9 kB / 457.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.5158, allocations: 0 / 457.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003285/0.5161, allocations: 180.3 kB / 457.7 MB, free: 6.574 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.5162, allocations: 126.9 kB / 457.9 MB, free: 6.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.5163, allocations: 172.9 kB / 458 MB, free: 6.277 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/0.5164, allocations: 49.59 kB / 458.1 MB, free: 6.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.28e-05/0.5165, allocations: 111.7 kB / 458.2 MB, free: 6.129 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.078e-05/0.5165, allocations: 46.91 kB / 458.2 MB, free: 6.094 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/0.5165, allocations: 0 / 458.2 MB, free: 6.094 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.5167, allocations: 339.1 kB / 458.6 MB, free: 5.766 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.5168, allocations: 78.8 kB / 458.6 MB, free: 5.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.5169, allocations: 119.9 kB / 458.7 MB, free: 5.617 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.5171, allocations: 94.94 kB / 458.8 MB, free: 5.551 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.5171, allocations: 0 / 458.8 MB, free: 5.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003703/0.5175, allocations: 272.6 kB / 459.1 MB, free: 5.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.5175, allocations: 8 kB / 459.1 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.5175, allocations: 0 / 459.1 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.5176, allocations: 4 kB / 459.1 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.5177, allocations: 28.08 kB / 459.1 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.5177, allocations: 7.938 kB / 459.2 MB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.935e-05/0.5178, allocations: 30.3 kB / 459.2 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.5179, allocations: 8 kB / 459.2 MB, free: 5.262 MB / 330.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 () * 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.0001079/0.518, allocations: 131.7 kB / 459.3 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.518, allocations: 15.81 kB / 459.3 MB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.5181, allocations: 18.78 kB / 459.4 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.5181, allocations: 4 kB / 459.4 MB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5181, allocations: 3.938 kB / 459.4 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.5181, allocations: 3.984 kB / 459.4 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.5183, allocations: 221.5 kB / 459.6 MB, free: 4.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.5183, allocations: 7.938 kB / 459.6 MB, free: 4.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.053e-05/0.5184, allocations: 11.98 kB / 459.6 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.5184, allocations: 4 kB / 459.6 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.5184, allocations: 2.812 kB / 459.6 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5184, allocations: 4 kB / 459.6 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.5184, allocations: 4 kB / 459.6 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002998/0.5187, allocations: 245.4 kB / 459.9 MB, free: 4.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-05/0.5188, allocations: 96.34 kB / 459.9 MB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.5188, allocations: 8 kB / 460 MB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.767e-05/0.5189, allocations: 15.3 kB / 460 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.282e-05/0.519, allocations: 8.078 kB / 460 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.519, allocations: 19.11 kB / 460 MB, free: 4.422 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.5191, allocations: 138.4 kB / 460.1 MB, free: 4.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5191, allocations: 0 / 460.1 MB, free: 4.305 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005222/0.5197, allocations: 167.9 kB / 460.3 MB, free: 4.152 MB / 330.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]) * 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.001043/0.5207, allocations: 403.5 kB / 460.7 MB, free: 3.762 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003914/0.5211, allocations: 224.1 kB / 460.9 MB, free: 3.562 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5211, allocations: 0 / 460.9 MB, free: 3.562 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.639e-05/0.5212, allocations: 59.92 kB / 461 MB, free: 3.504 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.5214, allocations: 4.188 kB / 461 MB, free: 3.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003825/0.5218, allocations: 204.1 kB / 461.2 MB, free: 3.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.5221, allocations: 0.7201 MB / 461.9 MB, free: 2.523 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.782e-05/0.5222, allocations: 21.19 kB / 461.9 MB, free: 2.504 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.216e-05/0.5222, allocations: 15.44 kB / 461.9 MB, free: 2.488 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5222, allocations: 4 kB / 461.9 MB, free: 2.484 MB / 330.7 MB Notification: Performance of Templates: time 0.007046/0.5293, allocations: 3.556 MB / 465.5 MB, free: 14.93 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/Distributions/Distributions.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches