Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoise,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 204.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.336/1.336, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2653, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002809/0.2682, allocations: 1.485 MB / 410.2 MB, free: 52 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.2694, allocations: 0.5716 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.127e-05/0.2694, allocations: 0 / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.623e-05/0.2696, allocations: 11.81 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.906e-05/0.2697, allocations: 19.84 kB / 410.8 MB, free: 15.45 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.0005942/0.2703, allocations: 147.5 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.2704, allocations: 115.6 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.631e-05/0.2705, allocations: 13.12 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.625e-05/0.2705, allocations: 47.83 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005173/0.2711, allocations: 70.61 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.2711, allocations: 16 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00021/0.2713, allocations: 111.8 kB / 411.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.248e-05/0.2714, allocations: 31.86 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.925e-05/0.2714, allocations: 55.66 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003019/0.2718, allocations: 202.4 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2718, allocations: 0 / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2718, allocations: 0 / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.2718, allocations: 0 / 411.6 MB, free: 14.66 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006474/0.2724, allocations: 466.5 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.2725, allocations: 12.03 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.521e-05/0.2726, allocations: 38.75 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003064/0.2729, allocations: 36.81 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.2731, allocations: 204.1 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.2731, allocations: 8.312 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.2731, allocations: 8.375 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.2734, allocations: 123.3 kB / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.2734, allocations: 0 / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.2734, allocations: 0 / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2734, allocations: 0 / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.2736, allocations: 63.89 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006752/0.2743, allocations: 452.8 kB / 413 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.2746, allocations: 125.2 kB / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.2747, allocations: 57.75 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.517e-06/0.2747, allocations: 4 kB / 413.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002526/0.275, allocations: 133.1 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.275, allocations: 0 / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.000548/0.2755, allocations: 245.5 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.2756, allocations: 97.03 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.2758, allocations: 174.3 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.2758, allocations: 45.69 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.213e-05/0.2759, allocations: 108.5 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.984e-05/0.276, allocations: 47.67 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.073e-05/0.276, allocations: 53.92 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2762, allocations: 334.8 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.2764, allocations: 104.4 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.2766, allocations: 124.4 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.2769, allocations: 210.9 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.2769, allocations: 4 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004882/0.2774, allocations: 293.4 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.2774, allocations: 4 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.934e-06/0.2775, allocations: 4 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2775, allocations: 0 / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.2776, allocations: 23.98 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.2777, allocations: 15.92 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.966e-05/0.2777, allocations: 23.89 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.2778, allocations: 8 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,globalSeed.seed,uniformNoise2.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise1.localSeed,globalSeed.id_impure,uniformNoise2.r_raw,$PRE.uniformNoise2.r_raw,uniformNoise2.r,$PRE.uniformNoise2.r,uniformNoise2.state[4],$PRE.uniformNoise2.state[4],uniformNoise2.state[3],$PRE.uniformNoise2.state[3],uniformNoise2.state[2],$PRE.uniformNoise2.state[2],uniformNoise2.state[1],$PRE.uniformNoise2.state[1],uniformNoise1.r_raw,$PRE.uniformNoise1.r_raw,uniformNoise1.r,$PRE.uniformNoise1.r,uniformNoise1.state[4],$PRE.uniformNoise1.state[4],uniformNoise1.state[3],$PRE.uniformNoise1.state[3],uniformNoise1.state[2],$PRE.uniformNoise1.state[2],uniformNoise1.state[1],$PRE.uniformNoise1.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.000154/0.2779, allocations: 149.8 kB / 415.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/0.278, allocations: 15.91 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.278, allocations: 13.39 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.278, allocations: 4 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.278, allocations: 0 / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.278, allocations: 3.938 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.2782, allocations: 213.5 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2782, allocations: 0 / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.803e-05/0.2783, allocations: 15.86 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2783, allocations: 0 / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.2783, allocations: 4 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2783, allocations: 0 / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2783, allocations: 0 / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000352/0.2787, allocations: 229.7 kB / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.738e-05/0.2787, allocations: 89.02 kB / 415.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.2788, allocations: 11.98 kB / 415.9 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.711e-05/0.2788, allocations: 4 kB / 415.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.866e-05/0.2789, allocations: 19.86 kB / 416 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.2789, allocations: 7.984 kB / 416 MB, free: 9.914 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.534e-05/0.279, allocations: 128.2 kB / 416.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.279, allocations: 4 kB / 416.1 MB, free: 9.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.2793, allocations: 43.94 kB / 416.1 MB, free: 9.742 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw,$whenCondition1,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw) * Number of discrete states: 8 (uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.001054/0.2804, allocations: 0.9153 MB / 417.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003956/0.2808, allocations: 192 kB / 417.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2808, allocations: 4.062 kB / 417.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.2809, allocations: 63.95 kB / 417.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.2811, allocations: 14.58 kB / 417.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.2835, allocations: 2.1 MB / 419.4 MB, free: 6.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.2838, allocations: 0.708 MB / 420.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.205e-05/0.2839, allocations: 12.88 kB / 420.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.244e-05/0.284, allocations: 47.42 kB / 420.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.284, allocations: 0 / 420.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.3027, allocations: 3.614 MB / 423.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.113, allocations: 11.12 kB / 423.8 MB, free: 2.016 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Blocks_Examples_Noise_UniformNoise.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoise/UniformNoise.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches