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.002038/0.002038, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002251/0.002252, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 67.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2556, allocations: 50.54 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoise): time 0.002991/0.2587, allocations: 1.488 MB / 410.3 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.26, allocations: 0.5754 MB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.479e-05/0.2601, allocations: 0 / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.2602, allocations: 7.875 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.272e-05/0.2603, allocations: 19.78 kB / 410.9 MB, free: 15.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.0006532/0.2609, allocations: 151.5 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000173/0.2611, allocations: 111.7 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.09e-05/0.2612, allocations: 5.125 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.532e-05/0.2613, allocations: 51.83 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005791/0.2619, allocations: 66.72 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.2619, allocations: 8 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.2621, allocations: 115.8 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.477e-05/0.2622, allocations: 35.84 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.715e-05/0.2623, allocations: 55.66 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003159/0.2626, allocations: 198.4 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2626, allocations: 0 / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2626, allocations: 0 / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.2626, allocations: 0 / 411.6 MB, free: 14.62 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.000698/0.2633, allocations: 470.5 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2634, allocations: 8.031 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.47e-05/0.2634, allocations: 38.75 kB / 412.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.2638, allocations: 40.81 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.264, allocations: 200.2 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.264, allocations: 384 / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.264, allocations: 12.38 kB / 412.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.2643, allocations: 130.7 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2643, allocations: 0 / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.2643, allocations: 0 / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2643, allocations: 4 kB / 412.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.2645, allocations: 59.94 kB / 412.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007788/0.2653, allocations: 456.7 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.2656, allocations: 125.2 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.2658, allocations: 61.67 kB / 413.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.2658, allocations: 0 / 413.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.2661, allocations: 133.1 kB / 413.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.273e-06/0.2661, allocations: 0 / 413.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.000556/0.2666, allocations: 245.5 kB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/0.2667, allocations: 93.09 kB / 413.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.2669, allocations: 174.3 kB / 413.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.267, allocations: 49.62 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.897e-05/0.2671, allocations: 108.5 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/0.2671, allocations: 51.61 kB / 414 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.912e-05/0.2672, allocations: 57.94 kB / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.2674, allocations: 338.7 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.2676, allocations: 96.47 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.2678, allocations: 120.4 kB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.2682, allocations: 214.9 kB / 414.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2682, allocations: 4 kB / 414.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004921/0.2687, allocations: 297.3 kB / 415.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.2687, allocations: 4 kB / 415.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.2687, allocations: 0 / 415.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.2687, allocations: 4 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.2689, allocations: 27.97 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.2689, allocations: 4.062 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.67e-05/0.269, allocations: 23.83 kB / 415.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.269, allocations: 4 kB / 415.2 MB, free: 10.75 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.0001526/0.2692, allocations: 153.8 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.2692, allocations: 11.91 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.559e-05/0.2692, allocations: 17.39 kB / 415.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.2692, allocations: 4 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2692, allocations: 0 / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2693, allocations: 7.938 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.2695, allocations: 201.6 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2695, allocations: 4.031 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.091e-05/0.2695, allocations: 15.92 kB / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2696, allocations: 3.984 kB / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.2696, allocations: 4 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2696, allocations: 4 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2696, allocations: 0 / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003601/0.27, allocations: 225.7 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.739e-05/0.27, allocations: 89.02 kB / 415.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.2701, allocations: 7.984 kB / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.698e-05/0.2701, allocations: 8 kB / 416 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.2702, allocations: 15.92 kB / 416 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.2702, allocations: 3.984 kB / 416 MB, free: 9.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001145/0.2703, allocations: 136.2 kB / 416.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.154e-06/0.2703, allocations: 0 / 416.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.2706, allocations: 47.88 kB / 416.2 MB, free: 9.707 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.00115/0.2718, allocations: 0.9115 MB / 417.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004312/0.2722, allocations: 199.9 kB / 417.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2722, allocations: 0 / 417.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.2724, allocations: 55.98 kB / 417.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.2725, allocations: 15.92 kB / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.275, allocations: 2.097 MB / 419.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.2754, allocations: 0.708 MB / 420.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.174e-05/0.2754, allocations: 24.86 kB / 420.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.994e-05/0.2755, allocations: 39.42 kB / 420.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2755, allocations: 0 / 420.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.3001, allocations: 3.616 MB / 423.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.116/8.417, allocations: 7.938 kB / 423.8 MB, free: 1.984 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.1.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