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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 116.1 kB / 16.63 MB, free: 6.941 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.001197/0.001197, allocations: 193.9 kB / 17.55 MB, free: 6.039 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.393/1.393, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 47.16 kB / 300.2 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1193, allocations: 49.45 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003389/0.1227, allocations: 1.608 MB / 351.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.1252, allocations: 1.442 MB / 352.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.833e-05/0.1253, allocations: 0 / 352.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.1255, allocations: 7.938 kB / 352.7 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.1256, allocations: 15.86 kB / 352.8 MB, free: 1.562 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.001289/0.1269, allocations: 347.2 kB / 353.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001913/0.1271, allocations: 131.6 kB / 353.2 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.453e-05/0.1272, allocations: 13.5 kB / 353.2 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.662e-05/0.1273, allocations: 51.77 kB / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008221/0.1281, allocations: 89.27 kB / 353.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.322e-05/0.1282, allocations: 12 kB / 353.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007304/0.1289, allocations: 435.1 kB / 353.8 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-05/0.129, allocations: 43.83 kB / 353.9 MB, free: 472 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.376e-05/0.1291, allocations: 67.53 kB / 353.9 MB, free: 404 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007759/0.1299, allocations: 411.3 kB / 354.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1299, allocations: 4 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1299, allocations: 0 / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.1299, allocations: 0 / 354.3 MB, free: 15.98 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.0008868/0.1308, allocations: 0.5102 MB / 354.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.1309, allocations: 12.03 kB / 354.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.852e-05/0.1309, allocations: 42.67 kB / 354.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.1312, allocations: 32.73 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.1314, allocations: 209.4 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.1314, allocations: 8 kB / 355.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.1314, allocations: 15.97 kB / 355.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.1317, allocations: 132.1 kB / 355.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1317, allocations: 0 / 355.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.1318, allocations: 0 / 355.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1318, allocations: 0 / 355.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.132, allocations: 71.89 kB / 355.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007668/0.1328, allocations: 0.5438 MB / 355.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.1331, allocations: 159.9 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.1333, allocations: 66.61 kB / 356.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.1333, allocations: 3.938 kB / 356.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002779/0.1336, allocations: 149.8 kB / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.553e-06/0.1336, allocations: 0 / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006127/0.1342, allocations: 273.4 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.978e-05/0.1343, allocations: 114.8 kB / 356.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.1345, allocations: 203 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.248e-05/0.1346, allocations: 45.69 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.04e-05/0.1346, allocations: 116.4 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.143e-05/0.1347, allocations: 39.55 kB / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.344e-05/0.1348, allocations: 65.81 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1349, allocations: 326.8 kB / 357.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.1351, allocations: 103.8 kB / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.1353, allocations: 139.2 kB / 357.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.1357, allocations: 228.2 kB / 357.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1357, allocations: 0 / 357.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005296/0.1363, allocations: 297.2 kB / 358.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1363, allocations: 12.09 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1363, allocations: 3.938 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1363, allocations: 4 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.1365, allocations: 35.97 kB / 358.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1365, allocations: 7.938 kB / 358.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.328e-05/0.1366, allocations: 19.84 kB / 358.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.1366, allocations: 7.984 kB / 358.3 MB, free: 11.73 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,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],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]) * 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.0001444/0.1368, allocations: 149.8 kB / 358.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-05/0.1368, allocations: 11.81 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.1369, allocations: 21.33 kB / 358.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.1369, allocations: 7.938 kB / 358.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1369, allocations: 3.938 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1369, allocations: 0 / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.1371, allocations: 221.4 kB / 358.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1371, allocations: 0 / 358.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.031e-05/0.1372, allocations: 11.98 kB / 358.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1372, allocations: 0 / 358.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.1372, allocations: 11.94 kB / 358.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1372, allocations: 0 / 358.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1372, allocations: 3.984 kB / 358.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.1377, allocations: 234.5 kB / 358.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.007e-05/0.1377, allocations: 93.02 kB / 359 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.1378, allocations: 23.91 kB / 359 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.036e-05/0.1379, allocations: 4 kB / 359 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.8e-05/0.138, allocations: 11.98 kB / 359.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.138, allocations: 8.078 kB / 359.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.1381, allocations: 137.2 kB / 359.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1381, allocations: 0 / 359.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005246/0.1387, allocations: 124 kB / 359.3 MB, free: 10.57 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,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.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.001784/0.1405, allocations: 1.064 MB / 360.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004511/0.1409, allocations: 203.8 kB / 360.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1409, allocations: 4 kB / 360.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.1411, allocations: 67.89 kB / 360.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.1413, allocations: 8 kB / 360.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.1443, allocations: 2.326 MB / 363 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.1446, allocations: 0.7201 MB / 363.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.624e-05/0.1447, allocations: 21.41 kB / 363.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.132e-05/0.1448, allocations: 47.42 kB / 363.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.324e-06/0.1448, allocations: 0 / 363.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01627/0.1611, allocations: 5.217 MB / 369 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.1613, allocations: 232.5 kB / 369.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.283, allocations: 8 kB / 369.2 MB, free: 0.6172 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > 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/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_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches