Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.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: translateModel(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,tolerance=1e-09,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mean.mu|standardDeviation.variance.mu|standardDeviation.variance.var|variance.mu|variance.var|meanError_y|sigmaError_y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties") translateModel(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,tolerance=1e-09,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mean.mu|standardDeviation.variance.mu|standardDeviation.variance.var|variance.mu|variance.var|meanError_y|sigmaError_y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 197.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.6 MB / 244.3 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007521/0.000752, allocations: 98.61 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002198/0.0002198, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2015, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.001518/0.2031, allocations: 1.523 MB / 409 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.2046, allocations: 1.219 MB / 410.2 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.942e-05/0.2047, allocations: 4 kB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.887e-05/0.2048, allocations: 11.86 kB / 410.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.098e-05/0.2049, allocations: 13.09 kB / 410.3 MB, free: 25.05 MB / 298.7 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.000601/0.2055, allocations: 252.7 kB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.2056, allocations: 191.5 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.2058, allocations: 57.06 kB / 410.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.793e-05/0.2058, allocations: 71.7 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.2061, allocations: 103.5 kB / 410.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.2061, allocations: 8 kB / 410.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003306/0.2064, allocations: 283.5 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.861e-05/0.2065, allocations: 45.58 kB / 411.3 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.2065, allocations: 49.62 kB / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.2068, allocations: 263.5 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2068, allocations: 0 / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2068, allocations: 0 / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.81e-06/0.2068, allocations: 7.938 kB / 411.6 MB, free: 23.75 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009002/0.2077, allocations: 0.5593 MB / 412.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2078, allocations: 11.97 kB / 412.1 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.208, allocations: 35.7 kB / 412.2 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.2082, allocations: 231.6 kB / 412.4 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.2082, allocations: 16.28 kB / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.765e-05/0.2083, allocations: 27.95 kB / 412.4 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.2087, allocations: 215.5 kB / 412.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2087, allocations: 0 / 412.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.2087, allocations: 4 kB / 412.7 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2088, allocations: 4 kB / 412.7 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004183/0.2092, allocations: 176.4 kB / 412.8 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008572/0.21, allocations: 0.5863 MB / 413.4 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009915/0.211, allocations: 370.8 kB / 413.8 MB, free: 21.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.2113, allocations: 136.9 kB / 413.9 MB, free: 21.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.2114, allocations: 8.062 kB / 413.9 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003464/0.2117, allocations: 187.2 kB / 414.1 MB, free: 21.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.2117, allocations: 0 / 414.1 MB, free: 21.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008784/0.2126, allocations: 415.2 kB / 414.5 MB, free: 20.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.2126, allocations: 63.34 kB / 414.6 MB, free: 20.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.2128, allocations: 199.9 kB / 414.8 MB, free: 20.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.2128, allocations: 45.69 kB / 414.8 MB, free: 20.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.692e-05/0.2129, allocations: 124.5 kB / 414.9 MB, free: 20.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.2129, allocations: 78.98 kB / 415 MB, free: 20.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.402e-05/0.213, allocations: 7.938 kB / 415 MB, free: 20.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.769e-05/0.213, allocations: 334.8 kB / 415.3 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.2133, allocations: 147.9 kB / 415.5 MB, free: 19.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/0.2136, allocations: 181.5 kB / 415.7 MB, free: 19.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.2139, allocations: 158.5 kB / 415.8 MB, free: 19.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.214, allocations: 0 / 415.8 MB, free: 19.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007115/0.2147, allocations: 410.8 kB / 416.2 MB, free: 18.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2147, allocations: 7.953 kB / 416.2 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.2147, allocations: 0 / 416.2 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2147, allocations: 7.984 kB / 416.2 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002829/0.215, allocations: 83.88 kB / 416.3 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.215, allocations: 8 kB / 416.3 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/0.2152, allocations: 47.67 kB / 416.4 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.2152, allocations: 7.984 kB / 416.4 MB, free: 18.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition1,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,globalSeed.id_impure,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 1 * 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 0.0001111/0.2153, allocations: 145.8 kB / 416.5 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.2154, allocations: 19.72 kB / 416.5 MB, free: 18.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.571e-05/0.2154, allocations: 29.81 kB / 416.6 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2154, allocations: 0 / 416.6 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2154, allocations: 4 kB / 416.6 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2155, allocations: 0 / 416.6 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009249/0.2164, allocations: 0.6777 MB / 417.3 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2164, allocations: 0 / 417.3 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.2166, allocations: 47.95 kB / 417.3 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2166, allocations: 4 kB / 417.3 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.2167, allocations: 4 kB / 417.3 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2167, allocations: 0 / 417.3 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2167, allocations: 11.98 kB / 417.3 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008638/0.2175, allocations: 0.5254 MB / 417.9 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.2176, allocations: 104.8 kB / 418 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.2176, allocations: 12.06 kB / 418 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.2178, allocations: 27.91 kB / 418 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.2179, allocations: 15.98 kB / 418 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.2179, allocations: 4 kB / 418 MB, free: 16.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.727e-05/0.218, allocations: 151.2 kB / 418.2 MB, free: 16.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.218, allocations: 4 kB / 418.2 MB, free: 16.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003659/0.2184, allocations: 103.9 kB / 418.3 MB, free: 16.72 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005139/0.2189, allocations: 269.8 kB / 418.5 MB, free: 16.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006367/0.2195, allocations: 323.6 kB / 418.8 MB, free: 16.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.2195, allocations: 0 / 418.8 MB, free: 16.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002735/0.2198, allocations: 130.3 kB / 419 MB, free: 16.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.2201, allocations: 31.77 kB / 419 MB, free: 16.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006657/0.2208, allocations: 0.5399 MB / 419.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.2209, allocations: 0.7437 MB / 420.3 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.169e-05/0.221, allocations: 23.42 kB / 420.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.221, allocations: 4 kB / 420.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of Templates: time 0.004839/0.2259, allocations: 4.056 MB / 424.4 MB, free: 10.58 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/NormalNoiseProperties/NormalNoiseProperties.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches