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/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 3.2.3+maint.om/package.mo", uses=false) 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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 98.52 kB / 16.94 MB, free: 5.984 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.0009229/0.0009229, allocations: 178.9 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.694/1.694, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004581/0.0004584, allocations: 12 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1147, allocations: 47.58 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.Distributions): time 0.001897/0.1167, allocations: 1.25 MB / 329.6 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.1191, allocations: 1.381 MB / 331 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.071e-05/0.1191, allocations: 0 / 331 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.1193, allocations: 7.875 kB / 331 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.762e-05/0.1193, allocations: 23.91 kB / 331 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008709/0.1202, allocations: 307.2 kB / 331.3 MB, free: 1.113 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.1204, allocations: 75.84 kB / 331.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.585e-05/0.1204, allocations: 17.36 kB / 331.4 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.039e-05/0.1205, allocations: 51.83 kB / 331.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.53e-05/0.1206, allocations: 55.75 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.1206, allocations: 8 kB / 331.5 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006278/0.1212, allocations: 435.3 kB / 331.9 MB, free: 492 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.305e-05/0.1213, allocations: 31.89 kB / 331.9 MB, free: 460 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.064e-05/0.1214, allocations: 45.64 kB / 332 MB, free: 408 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004049/0.1218, allocations: 279.8 kB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1218, allocations: 0 / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1218, allocations: 0 / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1218, allocations: 3.938 kB / 332.3 MB, free: 124 kB / 270.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.0008218/0.1226, allocations: 0.4909 MB / 332.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1227, allocations: 8.031 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.1229, allocations: 27.8 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.1232, allocations: 215.4 kB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.1232, allocations: 8 kB / 333 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.1232, allocations: 8 kB / 333 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003035/0.1235, allocations: 128.2 kB / 333.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1236, allocations: 4 kB / 333.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.1236, allocations: 3.938 kB / 333.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1236, allocations: 0 / 333.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.1238, allocations: 71.95 kB / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000844/0.1247, allocations: 0.5594 MB / 333.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003609/0.125, allocations: 159.8 kB / 333.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.1251, allocations: 4.062 kB / 333.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003432/0.1254, allocations: 157.9 kB / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 2.114e-06/0.1254, allocations: 0 / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007068/0.1261, allocations: 423.9 kB / 334.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.468e-05/0.1262, allocations: 118.8 kB / 334.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.1264, allocations: 202.8 kB / 334.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.1265, allocations: 45.69 kB / 334.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.606e-05/0.1266, allocations: 108.6 kB / 335 MB, free: 13.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.921e-05/0.1266, allocations: 51.38 kB / 335 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.1267, allocations: 4 kB / 335 MB, free: 13.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1268, allocations: 342.7 kB / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.127, allocations: 103.9 kB / 335.5 MB, free: 12.62 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.1272, allocations: 143.2 kB / 335.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.1275, allocations: 119.9 kB / 335.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1275, allocations: 0 / 335.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004999/0.128, allocations: 309.4 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.128, allocations: 6.812 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.128, allocations: 0 / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.128, allocations: 4 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.1282, allocations: 39.91 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.1282, allocations: 4 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.715e-05/0.1283, allocations: 23.75 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.1284, allocations: 8 kB / 336.1 MB, free: 11.96 MB / 286.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,$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): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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.0001483/0.1285, allocations: 157.8 kB / 336.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.1285, allocations: 19.8 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.52e-05/0.1286, allocations: 13.41 kB / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1286, allocations: 0 / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1286, allocations: 0 / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1286, allocations: 4 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.1288, allocations: 221.5 kB / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1288, allocations: 4 kB / 336.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.163e-05/0.1289, allocations: 19.92 kB / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1289, allocations: 0 / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.1289, allocations: 3.938 kB / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1289, allocations: 4 kB / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1289, allocations: 3.984 kB / 336.6 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004127/0.1294, allocations: 269.9 kB / 336.8 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.1294, allocations: 96.86 kB / 336.9 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.1295, allocations: 15.92 kB / 336.9 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.661e-05/0.1295, allocations: 8 kB / 336.9 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.1296, allocations: 23.92 kB / 337 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.1296, allocations: 4 kB / 337 MB, free: 10.99 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001139/0.1298, allocations: 141.2 kB / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1298, allocations: 0 / 337.1 MB, free: 10.85 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004718/0.1302, allocations: 124 kB / 337.2 MB, free: 10.73 MB / 286.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 (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.0007798/0.131, allocations: 356.3 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000432/0.1315, allocations: 203.8 kB / 337.8 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1315, allocations: 0 / 337.8 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.1316, allocations: 72.22 kB / 337.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1318, allocations: 4.188 kB / 337.8 MB, free: 10.11 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005502/0.1324, allocations: 311 kB / 338.1 MB, free: 9.777 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.1327, allocations: 0.7201 MB / 338.9 MB, free: 9.031 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.146e-05/0.1328, allocations: 25.41 kB / 338.9 MB, free: 9.004 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.1328, allocations: 15.44 kB / 338.9 MB, free: 8.988 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1328, allocations: 0 / 338.9 MB, free: 8.988 MB / 286.1 MB Notification: Performance of Templates: time 0.007211/0.14, allocations: 3.423 MB / 342.3 MB, free: 5.562 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.Distributions.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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