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.001569/0.001576, allocations: 105.8 kB / 16.92 MB, free: 5.781 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.001793/0.001793, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.49/1.49, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 45.45 kB / 300.6 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1149, allocations: 49.45 MB / 350 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003664/0.1186, allocations: 1.514 MB / 351.6 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.1215, allocations: 1.439 MB / 353 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.349e-05/0.1216, allocations: 0 / 353 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.1218, allocations: 11.81 kB / 353 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.984e-05/0.1219, allocations: 23.8 kB / 353 MB, free: 1.348 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.00129/0.1232, allocations: 386.8 kB / 353.4 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001832/0.1234, allocations: 131.6 kB / 353.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.259e-05/0.1235, allocations: 5.5 kB / 353.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.873e-05/0.1236, allocations: 55.77 kB / 353.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008046/0.1244, allocations: 94.09 kB / 353.7 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.274e-05/0.1244, allocations: 15.94 kB / 353.7 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008147/0.1252, allocations: 403.3 kB / 354.1 MB, free: 284 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.289e-05/0.1253, allocations: 43.77 kB / 354.1 MB, free: 240 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.264e-05/0.1254, allocations: 55.67 kB / 354.2 MB, free: 184 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006571/0.1261, allocations: 403.3 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1261, allocations: 4 kB / 354.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1261, allocations: 0 / 354.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1261, allocations: 0 / 354.6 MB, free: 15.78 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.0008746/0.127, allocations: 0.5091 MB / 355.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.127, allocations: 8.031 kB / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.1273, allocations: 32.72 kB / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.1276, allocations: 213.7 kB / 355.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.1276, allocations: 7.938 kB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.1276, allocations: 16 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002798/0.1279, allocations: 124.2 kB / 355.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1279, allocations: 3.938 kB / 355.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1279, allocations: 0 / 355.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.128, allocations: 0 / 355.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002407/0.1282, allocations: 63.95 kB / 355.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000796/0.129, allocations: 0.5477 MB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004249/0.1294, allocations: 155.7 kB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.1296, allocations: 62.61 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.1296, allocations: 8 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003106/0.1299, allocations: 149.8 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.242e-06/0.13, allocations: 0 / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006612/0.1306, allocations: 253.3 kB / 356.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.1307, allocations: 122.8 kB / 356.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.131, allocations: 203 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.574e-05/0.131, allocations: 45.69 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.091e-05/0.1311, allocations: 112.5 kB / 357.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.099e-05/0.1312, allocations: 35.56 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.1313, allocations: 57.67 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1314, allocations: 338.9 kB / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.1316, allocations: 99.81 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.1319, allocations: 143.2 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/0.1323, allocations: 232.2 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1323, allocations: 0 / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005072/0.1328, allocations: 309.2 kB / 358.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1328, allocations: 7.938 kB / 358.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.1329, allocations: 4 kB / 358.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1329, allocations: 4.094 kB / 358.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.133, allocations: 35.86 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1331, allocations: 0 / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.789e-05/0.1332, allocations: 19.89 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.1332, allocations: 8 kB / 358.5 MB, free: 11.6 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.0001496/0.1333, allocations: 149.8 kB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.1334, allocations: 19.8 kB / 358.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.861e-05/0.1334, allocations: 17.41 kB / 358.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.1334, allocations: 7.922 kB / 358.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1334, allocations: 0 / 358.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.1335, allocations: 4 kB / 358.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.1337, allocations: 217.5 kB / 358.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1337, allocations: 4 kB / 358.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.719e-05/0.1338, allocations: 8 kB / 358.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1338, allocations: 3.984 kB / 358.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.1338, allocations: 4 kB / 358.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.1338, allocations: 7.875 kB / 358.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1338, allocations: 8 kB / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004116/0.1343, allocations: 228.9 kB / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.062e-05/0.1344, allocations: 96.84 kB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.1344, allocations: 12 kB / 359.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.898e-05/0.1345, allocations: 19.86 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.366e-05/0.1346, allocations: 15.92 kB / 359.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1346, allocations: 4 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001392/0.1347, allocations: 137.2 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1347, allocations: 4 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004714/0.1352, allocations: 120 kB / 359.5 MB, free: 10.43 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.0008902/0.1361, allocations: 315.6 kB / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004924/0.1366, allocations: 207.7 kB / 360 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1366, allocations: 0 / 360 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.1368, allocations: 67.95 kB / 360.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001913/0.137, allocations: 8 kB / 360.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005974/0.1376, allocations: 277.5 kB / 360.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.138, allocations: 0.7201 MB / 361.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.495e-05/0.1381, allocations: 21.41 kB / 361.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.1381, allocations: 15.44 kB / 361.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1381, allocations: 0 / 361.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of Templates: time 0.007597/0.1457, allocations: 3.469 MB / 364.6 MB, free: 5.32 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