Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001338, allocations: 197.5 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 226.5 MB / 244.7 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007896/0.0007895, allocations: 92.19 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002783/0.0002785, allocations: 8 kB / 356.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.26, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise): time 0.0009458/0.261, allocations: 0.5822 MB / 408.7 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003951/0.2614, allocations: 236.2 kB / 409 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.438e-05/0.2614, allocations: 3.938 kB / 409 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.2615, allocations: 0.9688 kB / 409 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.2616, allocations: 11.92 kB / 409 MB, free: 26.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.262, allocations: 81.64 kB / 409 MB, free: 26.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.741e-05/0.2621, allocations: 43.84 kB / 409.1 MB, free: 26.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.194e-05/0.2622, allocations: 13.94 kB / 409.1 MB, free: 26.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.621e-05/0.2622, allocations: 11.92 kB / 409.1 MB, free: 26.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.537e-05/0.2623, allocations: 19.88 kB / 409.1 MB, free: 26.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.2623, allocations: 3.938 kB / 409.1 MB, free: 26.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.035e-05/0.2624, allocations: 48.38 kB / 409.2 MB, free: 26.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.003e-05/0.2624, allocations: 20.42 kB / 409.2 MB, free: 26.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.061e-05/0.2624, allocations: 46.02 kB / 409.3 MB, free: 26.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.862e-05/0.2625, allocations: 59.88 kB / 409.3 MB, free: 26.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.2625, allocations: 4.75 kB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2626, allocations: 0 / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.965e-06/0.2626, allocations: 1.969 kB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003986/0.263, allocations: 380.4 kB / 409.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.263, allocations: 8.031 kB / 409.7 MB, free: 26.08 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.531e-05/0.263, allocations: 42 kB / 409.7 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.314e-05/0.2631, allocations: 8.844 kB / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.2632, allocations: 198.5 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.2632, allocations: 384 / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.2632, allocations: 8.312 kB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.2635, allocations: 149.6 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2635, allocations: 3.938 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.2635, allocations: 0 / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2635, allocations: 4 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.584e-05/0.2636, allocations: 23.92 kB / 410.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002421/0.2638, allocations: 269.7 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.219e-05/0.2639, allocations: 42.58 kB / 410.4 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.247e-05/0.2639, allocations: 32.83 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004454/0.2644, allocations: 0.5817 MB / 411 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/0.2644, allocations: 34.5 kB / 411.1 MB, free: 24.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.163e-06/0.2644, allocations: 4 kB / 411.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001914/0.2646, allocations: 81.59 kB / 411.2 MB, free: 24.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.2647, allocations: 63.31 kB / 411.2 MB, free: 24.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.2648, allocations: 149.2 kB / 411.4 MB, free: 24.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.294e-06/0.2648, allocations: 25.7 kB / 411.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.21e-05/0.2648, allocations: 92.12 kB / 411.5 MB, free: 24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.2648, allocations: 7.906 kB / 411.5 MB, free: 23.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-06/0.2648, allocations: 3.938 kB / 411.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.087e-05/0.2649, allocations: 330.8 kB / 411.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.366e-05/0.2649, allocations: 15.98 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.476e-05/0.265, allocations: 65.94 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.964e-05/0.265, allocations: 81.88 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.265, allocations: 0 / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001116/0.2652, allocations: 105.7 kB / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.2652, allocations: 4 kB / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2652, allocations: 11.98 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.2652, allocations: 4 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.702e-05/0.2653, allocations: 12 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2653, allocations: 8.172 kB / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.66e-05/0.2653, allocations: 7.906 kB / 412.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.2653, allocations: 11.88 kB / 412.1 MB, free: 23.28 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (uniformNoise.seedState[3],$CLKPRE.uniformNoise.seedState[3],uniformNoise.seedState[2],$CLKPRE.uniformNoise.seedState[2],uniformNoise.seedState[1],$CLKPRE.uniformNoise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (uniformNoise.seedState[3],uniformNoise.seedState[2],uniformNoise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.693e-05/0.2654, allocations: 126.8 kB / 412.3 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.2655, allocations: 73.61 kB / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.2657, allocations: 94.33 kB / 412.4 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2657, allocations: 4 kB / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2657, allocations: 0 / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.2657, allocations: 3.984 kB / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.219e-05/0.2658, allocations: 177.5 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.2658, allocations: 0 / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.073e-05/0.2658, allocations: 7.984 kB / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.2658, allocations: 0 / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.2658, allocations: 4 kB / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2658, allocations: 0 / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.2658, allocations: 0 / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.745e-05/0.2659, allocations: 100.9 kB / 412.7 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4e-05/0.266, allocations: 101 kB / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.266, allocations: 4 kB / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.245e-05/0.266, allocations: 0 / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-06/0.266, allocations: 0 / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.2661, allocations: 0 / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.805e-05/0.2661, allocations: 123.2 kB / 412.9 MB, free: 22.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2661, allocations: 0 / 412.9 MB, free: 22.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001964/0.2663, allocations: 16 kB / 413 MB, free: 22.35 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (uniformNoise.seedState[1],uniformNoise.seedState[2],uniformNoise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (uniformNoise.seedState[1],uniformNoise.seedState[2],uniformNoise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003815/0.2667, allocations: 0.6749 MB / 413.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.326e-05/0.2668, allocations: 51.91 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2668, allocations: 0 / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.2668, allocations: 4 kB / 413.7 MB, free: 21.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.2671, allocations: 82.09 kB / 413.8 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006654/0.2678, allocations: 0.6299 MB / 414.4 MB, free: 20.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.981e-05/0.2679, allocations: 0.7082 MB / 415.1 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.895e-05/0.268, allocations: 15.44 kB / 415.1 MB, free: 20.06 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.268, allocations: 0 / 415.1 MB, free: 20.06 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.752/3.02, allocations: 1.524 MB / 416.6 MB, free: 18.54 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UniformNoise_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UniformNoise.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UniformNoise/UniformNoise.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,uniformNoise.y Variables in the result:const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(uniformNoise.seedState[1]),previous(uniformNoise.seedState[2]),previous(uniformNoise.seedState[3]),sample1.u,sample1.y,time,uniformNoise.firstSeed[1],uniformNoise.firstSeed[2],uniformNoise.firstSeed[3],uniformNoise.noise,uniformNoise.noiseMax,uniformNoise.noiseMin,uniformNoise.seedState[1],uniformNoise.seedState[2],uniformNoise.seedState[3],uniformNoise.u,uniformNoise.y