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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001267/0.001267, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001794, allocations: 63.88 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2602, allocations: 50.55 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.002715/0.263, allocations: 1.546 MB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.2655, allocations: 1.479 MB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.21e-05/0.2656, allocations: 0 / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.2657, allocations: 15.8 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.029e-05/0.2658, allocations: 23.78 kB / 411.9 MB, free: 14.41 MB / 334.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.001087/0.2669, allocations: 390.8 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001793/0.2671, allocations: 139.5 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.244e-05/0.2672, allocations: 9.484 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.288e-05/0.2672, allocations: 55.77 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006255/0.2679, allocations: 81.72 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.962e-05/0.2679, allocations: 16 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006792/0.2686, allocations: 411.3 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.681e-05/0.2687, allocations: 43.77 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.496e-05/0.2688, allocations: 59.61 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006115/0.2694, allocations: 405.8 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2694, allocations: 0 / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2694, allocations: 0 / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.2694, allocations: 0 / 413.5 MB, free: 12.82 MB / 334.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.0008075/0.2702, allocations: 0.5252 MB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2703, allocations: 8.031 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.461e-05/0.2704, allocations: 42.69 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.2706, allocations: 32.83 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.2708, allocations: 209.8 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.2708, allocations: 4.375 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.2708, allocations: 15.94 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.2711, allocations: 140.1 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.2711, allocations: 0 / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.2712, allocations: 0 / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.2712, allocations: 3.938 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.2714, allocations: 67.89 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007834/0.2722, allocations: 0.5555 MB / 415.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000366/0.2726, allocations: 151.9 kB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.2727, allocations: 66.55 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.2727, allocations: 3.938 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000292/0.273, allocations: 153.9 kB / 415.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.2731, allocations: 0 / 415.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006015/0.2737, allocations: 253.4 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.58e-05/0.2738, allocations: 122.8 kB / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.274, allocations: 199.6 kB / 416 MB, free: 10.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.274, allocations: 53.81 kB / 416 MB, free: 9.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.428e-05/0.2741, allocations: 108.5 kB / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.641e-05/0.2742, allocations: 43.67 kB / 416.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.392e-05/0.2743, allocations: 69.62 kB / 416.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2744, allocations: 330.8 kB / 416.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.2746, allocations: 91.95 kB / 416.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.2749, allocations: 140.2 kB / 416.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004104/0.2753, allocations: 223.7 kB / 417 MB, free: 8.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2753, allocations: 0 / 417 MB, free: 8.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005414/0.2759, allocations: 301.5 kB / 417.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.2759, allocations: 8 kB / 417.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2759, allocations: 0 / 417.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.2759, allocations: 7.984 kB / 417.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.2761, allocations: 35.91 kB / 417.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.2761, allocations: 7.938 kB / 417.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.65e-05/0.2762, allocations: 19.78 kB / 417.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.2763, allocations: 20.08 kB / 417.4 MB, free: 8.547 MB / 334.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.0001556/0.2764, allocations: 133.8 kB / 417.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.379e-05/0.2765, allocations: 23.89 kB / 417.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.941e-05/0.2765, allocations: 13.41 kB / 417.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.2765, allocations: 7.938 kB / 417.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2765, allocations: 3.938 kB / 417.6 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2765, allocations: 0 / 417.6 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002402/0.2768, allocations: 225.5 kB / 417.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2768, allocations: 4 kB / 417.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.614e-05/0.2769, allocations: 8 kB / 417.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2769, allocations: 0 / 417.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.2769, allocations: 7.984 kB / 417.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2769, allocations: 3.938 kB / 417.8 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.2769, allocations: 7.938 kB / 417.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000429/0.2773, allocations: 245.7 kB / 418.1 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.677e-05/0.2774, allocations: 100.9 kB / 418.2 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.2775, allocations: 4 kB / 418.2 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.14e-05/0.2775, allocations: 15.92 kB / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.749e-05/0.2776, allocations: 11.98 kB / 418.2 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.2776, allocations: 8 kB / 418.2 MB, free: 7.633 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001321/0.2778, allocations: 141.2 kB / 418.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2778, allocations: 0 / 418.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004594/0.2782, allocations: 123.7 kB / 418.5 MB, free: 7.375 MB / 334.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.001594/0.2798, allocations: 1.058 MB / 419.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004666/0.2803, allocations: 207.7 kB / 419.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2803, allocations: 0 / 419.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.2805, allocations: 59.97 kB / 419.8 MB, free: 6.047 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.2807, allocations: 8.25 kB / 419.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.2837, allocations: 2.338 MB / 422.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.284, allocations: 0.7239 MB / 422.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.595e-05/0.2841, allocations: 21.42 kB / 422.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.666e-05/0.2842, allocations: 47.41 kB / 422.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2842, allocations: 0 / 422.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.313, allocations: 5.509 MB / 428.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.151/9.464, allocations: 11.58 kB / 428.5 MB, free: 13.34 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > 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.1.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