Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001476/0.001476, allocations: 110.7 kB / 18.41 MB, free: 4.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 200.6 kB / 19.35 MB, free: 3.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 56.94 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1094, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002807/0.1123, allocations: 1.534 MB / 360.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.1147, allocations: 1.482 MB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.548e-05/0.1148, allocations: 7.938 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.1149, allocations: 11.81 kB / 361.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.212e-05/0.115, allocations: 19.8 kB / 362 MB, free: 10.26 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001068/0.1161, allocations: 398.8 kB / 362.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.1163, allocations: 127.6 kB / 362.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.899e-05/0.1164, allocations: 9.5 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.809e-05/0.1164, allocations: 55.78 kB / 362.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005902/0.117, allocations: 99.97 kB / 362.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.1171, allocations: 12 kB / 362.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005941/0.1177, allocations: 407.3 kB / 363 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.262e-05/0.1177, allocations: 35.84 kB / 363.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.289e-05/0.1178, allocations: 67.59 kB / 363.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005499/0.1184, allocations: 407 kB / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1184, allocations: 0 / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1184, allocations: 0 / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1184, allocations: 0 / 363.5 MB, free: 8.672 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.0008031/0.1192, allocations: 0.5142 MB / 364.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1193, allocations: 8.031 kB / 364.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002404/0.1195, allocations: 32.67 kB / 364.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.1197, allocations: 197.8 kB / 364.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.1197, allocations: 12.38 kB / 364.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.1198, allocations: 20.05 kB / 364.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002439/0.12, allocations: 124.1 kB / 364.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.12, allocations: 0 / 364.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.1201, allocations: 4 kB / 364.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1201, allocations: 3.938 kB / 364.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.1203, allocations: 67.95 kB / 364.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007529/0.121, allocations: 0.5437 MB / 365.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.1214, allocations: 151.7 kB / 365.2 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.1215, allocations: 62.61 kB / 365.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.1215, allocations: 4 kB / 365.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.1218, allocations: 153.8 kB / 365.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.1218, allocations: 0 / 365.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005634/0.1224, allocations: 257.5 kB / 365.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.581e-05/0.1225, allocations: 122.7 kB / 365.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.1227, allocations: 195 kB / 366 MB, free: 5.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.1227, allocations: 45.69 kB / 366 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.77e-05/0.1228, allocations: 116.5 kB / 366.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.478e-05/0.1228, allocations: 39.55 kB / 366.2 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.1229, allocations: 57.81 kB / 366.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1231, allocations: 338.8 kB / 366.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.1232, allocations: 95.94 kB / 366.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.1235, allocations: 136.1 kB / 366.8 MB, free: 5.121 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.1238, allocations: 239.6 kB / 367 MB, free: 4.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1239, allocations: 0 / 367 MB, free: 4.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004968/0.1244, allocations: 297.2 kB / 367.3 MB, free: 4.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1244, allocations: 4 kB / 367.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1244, allocations: 8.094 kB / 367.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1244, allocations: 0 / 367.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.1246, allocations: 39.86 kB / 367.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1246, allocations: 3.984 kB / 367.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.745e-05/0.1247, allocations: 19.83 kB / 367.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.1247, allocations: 12 kB / 367.4 MB, free: 4.488 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.0001321/0.1249, allocations: 154.8 kB / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.1249, allocations: 23.81 kB / 367.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.261e-05/0.1249, allocations: 17.39 kB / 367.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.1249, allocations: 0 / 367.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.125, allocations: 0 / 367.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.125, allocations: 7.938 kB / 367.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.1252, allocations: 217.4 kB / 367.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1252, allocations: 0 / 367.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.705e-05/0.1252, allocations: 15.92 kB / 367.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1252, allocations: 0 / 367.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.1253, allocations: 4 kB / 367.8 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1253, allocations: 4 kB / 367.8 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1253, allocations: 4 kB / 367.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.1257, allocations: 234.5 kB / 368.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.1257, allocations: 100.8 kB / 368.2 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.201e-05/0.1258, allocations: 12 kB / 368.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.689e-05/0.1258, allocations: 7.984 kB / 368.2 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.943e-05/0.1259, allocations: 15.92 kB / 368.2 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.1259, allocations: 4 kB / 368.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.1261, allocations: 141.2 kB / 368.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1261, allocations: 0 / 368.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000392/0.1265, allocations: 123.9 kB / 368.5 MB, free: 3.324 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.000667/0.1271, allocations: 336.6 kB / 368.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004246/0.1276, allocations: 203.8 kB / 369 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1276, allocations: 0 / 369 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.1277, allocations: 71.89 kB / 369.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/0.1279, allocations: 8 kB / 369.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004985/0.1284, allocations: 281.5 kB / 369.4 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.1287, allocations: 0.7123 MB / 370.1 MB, free: 1.688 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.523e-05/0.1288, allocations: 21.41 kB / 370.1 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.028e-05/0.1289, allocations: 15.44 kB / 370.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1289, allocations: 0 / 370.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of Templates: time 0.188/0.3169, allocations: 3.536 MB / 373.6 MB, free: 19.52 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches