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.001129/0.001129, allocations: 100.5 kB / 16.5 MB, free: 6.688 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.001071/0.001071, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.314/1.314, allocations: 222.9 MB / 241.1 MB, free: 15.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001197, allocations: 43.97 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1131, allocations: 49.45 MB / 349.5 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.003442/0.1166, allocations: 1.62 MB / 351.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003/0.1196, allocations: 1.497 MB / 352.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.255e-05/0.1197, allocations: 0 / 352.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.1199, allocations: 7.875 kB / 352.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.351e-05/0.12, allocations: 19.84 kB / 352.6 MB, free: 1.582 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.001209/0.1212, allocations: 303.3 kB / 352.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.1214, allocations: 119.6 kB / 353.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.931e-05/0.1215, allocations: 9.5 kB / 353.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.676e-05/0.1216, allocations: 55.7 kB / 353.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007627/0.1224, allocations: 78.42 kB / 353.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.654e-05/0.1224, allocations: 12 kB / 353.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009777/0.1234, allocations: 443.1 kB / 353.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.762e-05/0.1235, allocations: 39.83 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.47e-05/0.1236, allocations: 51.67 kB / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007872/0.1244, allocations: 411.2 kB / 354.1 MB, free: 88 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1244, allocations: 0 / 354.1 MB, free: 88 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1244, allocations: 0 / 354.1 MB, free: 88 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.1244, allocations: 4 kB / 354.1 MB, free: 84 kB / 286.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.001064/0.1255, allocations: 0.5127 MB / 354.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.1255, allocations: 8.031 kB / 354.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.23e-05/0.1256, allocations: 42.73 kB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002467/0.1259, allocations: 32.67 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.1261, allocations: 217.3 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.1261, allocations: 4 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.1262, allocations: 16 kB / 355 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.1265, allocations: 124.2 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1265, allocations: 0 / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1265, allocations: 7.984 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1265, allocations: 3.984 kB / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002152/0.1267, allocations: 71.83 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.1276, allocations: 0.5556 MB / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.128, allocations: 155.8 kB / 355.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.1282, allocations: 62.61 kB / 355.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.1282, allocations: 4 kB / 355.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.1286, allocations: 149.8 kB / 356.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.914e-06/0.1286, allocations: 0 / 356.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006238/0.1292, allocations: 257.8 kB / 356.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/0.1294, allocations: 122.7 kB / 356.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.1296, allocations: 203 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.294e-05/0.1296, allocations: 41.69 kB / 356.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.1297, allocations: 120.3 kB / 356.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.8e-05/0.1298, allocations: 43.53 kB / 356.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.1299, allocations: 53.7 kB / 356.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1301, allocations: 338.9 kB / 357.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.1303, allocations: 103.8 kB / 357.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.1305, allocations: 131.2 kB / 357.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/0.1309, allocations: 228.2 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1309, allocations: 0 / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005358/0.1315, allocations: 301.2 kB / 358 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1315, allocations: 4 kB / 358 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.1315, allocations: 7.938 kB / 358 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1315, allocations: 4.094 kB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.1317, allocations: 35.92 kB / 358 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1317, allocations: 3.984 kB / 358 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.62e-05/0.1318, allocations: 23.83 kB / 358.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1319, allocations: 8 kB / 358.1 MB, free: 11.82 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.0001529/0.132, allocations: 145.8 kB / 358.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.132, allocations: 15.81 kB / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.696e-05/0.1321, allocations: 25.33 kB / 358.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.1321, allocations: 0 / 358.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.1321, allocations: 8 kB / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1321, allocations: 96 / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.1324, allocations: 221.4 kB / 358.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1324, allocations: 3.984 kB / 358.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.1325, allocations: 15.92 kB / 358.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1325, allocations: 4 kB / 358.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.1325, allocations: 3.938 kB / 358.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.1325, allocations: 7.938 kB / 358.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1325, allocations: 4 kB / 358.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004245/0.133, allocations: 237.3 kB / 358.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.182e-05/0.133, allocations: 88.92 kB / 358.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.1331, allocations: 19.92 kB / 358.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.884e-05/0.1332, allocations: 8 kB / 358.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.561e-05/0.1332, allocations: 15.92 kB / 358.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.1332, allocations: 11.98 kB / 358.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.1334, allocations: 133.2 kB / 359 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1334, allocations: 0 / 359 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005048/0.1339, allocations: 120 kB / 359.1 MB, free: 10.66 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.001563/0.1354, allocations: 1.053 MB / 360.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000442/0.1359, allocations: 192 kB / 360.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1359, allocations: 4 kB / 360.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.1361, allocations: 67.91 kB / 360.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.1363, allocations: 11.98 kB / 360.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.1394, allocations: 2.322 MB / 362.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.1398, allocations: 0.724 MB / 363.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.095e-05/0.1399, allocations: 25.39 kB / 363.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.756e-05/0.14, allocations: 43.42 kB / 363.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.14, allocations: 0 / 363.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04626/0.1862, allocations: 5.12 MB / 368.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003899/0.1867, allocations: 228.3 kB / 368.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.289, allocations: 0 / 368.9 MB, free: 0.8086 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