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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.00165/0.00165, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.386/1.386, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009707/0.0009707, allocations: 49.34 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1049, allocations: 49.44 MB / 349.6 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003027/0.108, allocations: 1.62 MB / 351.2 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002452/0.1105, allocations: 1.442 MB / 352.6 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.342e-05/0.1106, allocations: 4 kB / 352.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.1107, allocations: 3.938 kB / 352.6 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.693e-05/0.1108, allocations: 19.8 kB / 352.7 MB, free: 1.43 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.0009849/0.1118, allocations: 343.3 kB / 353 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.112, allocations: 127.6 kB / 353.1 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.406e-05/0.112, allocations: 13.44 kB / 353.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.635e-05/0.1121, allocations: 59.77 kB / 353.2 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006771/0.1128, allocations: 75.61 kB / 353.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.087e-05/0.1128, allocations: 12 kB / 353.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006138/0.1134, allocations: 443.1 kB / 353.7 MB, free: 380 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.907e-05/0.1135, allocations: 35.78 kB / 353.7 MB, free: 344 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.003e-05/0.1136, allocations: 71.59 kB / 353.8 MB, free: 272 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006157/0.1142, allocations: 407.2 kB / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1142, allocations: 0 / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1142, allocations: 4 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1143, allocations: 0 / 354.2 MB, free: 15.86 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.0009847/0.1153, allocations: 0.5064 MB / 354.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1153, allocations: 12.03 kB / 354.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002448/0.1156, allocations: 28.73 kB / 354.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.1158, allocations: 213.7 kB / 355 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.1158, allocations: 7.938 kB / 355 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.1158, allocations: 8 kB / 355 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.1161, allocations: 131.2 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1161, allocations: 3.984 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.1161, allocations: 4 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1162, allocations: 0 / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.1164, allocations: 67.89 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007325/0.1171, allocations: 0.5477 MB / 355.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003259/0.1174, allocations: 143.7 kB / 355.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.1176, allocations: 74.61 kB / 355.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.394e-05/0.1176, allocations: 7.938 kB / 356 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.1179, allocations: 149.1 kB / 356.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.402e-06/0.1179, allocations: 0 / 356.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005712/0.1185, allocations: 257.4 kB / 356.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.1185, allocations: 118.8 kB / 356.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.1187, allocations: 199 kB / 356.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.1188, allocations: 53.62 kB / 356.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.63e-05/0.1189, allocations: 108.5 kB / 356.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.723e-05/0.1189, allocations: 47.47 kB / 356.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.591e-05/0.119, allocations: 61.81 kB / 356.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1191, allocations: 326.8 kB / 357.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1193, allocations: 99.94 kB / 357.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.1196, allocations: 139.2 kB / 357.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.1199, allocations: 228.2 kB / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.12, allocations: 0 / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000504/0.1205, allocations: 305.2 kB / 358 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.1205, allocations: 8.094 kB / 358 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.1205, allocations: 0 / 358 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.1205, allocations: 4 kB / 358 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.1207, allocations: 27.92 kB / 358 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.1207, allocations: 11.92 kB / 358.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.824e-05/0.1208, allocations: 19.84 kB / 358.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.1208, allocations: 4 kB / 358.1 MB, free: 11.69 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,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],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]) * 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.0001339/0.121, allocations: 149.8 kB / 358.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.893e-05/0.121, allocations: 11.81 kB / 358.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.912e-05/0.1211, allocations: 21.48 kB / 358.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.1211, allocations: 15.86 kB / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.1211, allocations: 0 / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1211, allocations: 0 / 358.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.1213, allocations: 213.5 kB / 358.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1213, allocations: 11.88 kB / 358.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.793e-05/0.1214, allocations: 11.98 kB / 358.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1214, allocations: 0 / 358.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.1214, allocations: 12 kB / 358.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1214, allocations: 3.938 kB / 358.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1214, allocations: 0 / 358.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003793/0.1218, allocations: 235 kB / 358.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.919e-05/0.1219, allocations: 100.9 kB / 358.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.1219, allocations: 11.98 kB / 358.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.01e-05/0.122, allocations: 7.938 kB / 358.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.067e-05/0.122, allocations: 15.98 kB / 358.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.1221, allocations: 8 kB / 358.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.1222, allocations: 141.2 kB / 359 MB, free: 10.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1222, allocations: 0 / 359 MB, free: 10.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004273/0.1226, allocations: 116 kB / 359.1 MB, free: 10.52 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,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 (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.0007131/0.1233, allocations: 329.9 kB / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004593/0.1238, allocations: 203.7 kB / 359.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1238, allocations: 0 / 359.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.124, allocations: 63.91 kB / 359.7 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.1242, allocations: 11.94 kB / 359.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000497/0.1247, allocations: 313.5 kB / 360 MB, free: 9.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.125, allocations: 0.7201 MB / 360.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.832e-05/0.125, allocations: 17.42 kB / 360.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.334e-05/0.1251, allocations: 19.44 kB / 360.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1251, allocations: 3.938 kB / 360.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of Templates: time 0.006792/0.1319, allocations: 3.395 MB / 364.2 MB, free: 5.434 MB / 302.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/Distributions/Distributions.csv","/var/lib/jenkins/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