Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.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.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.UniformNoiseProperties,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 195.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 226.5 MB / 244.7 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000775/0.000775, allocations: 92.59 kB / 296.7 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002467/0.000247, allocations: 11.98 kB / 356.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2415, allocations: 51.29 MB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.UniformNoiseProperties): time 0.00159/0.2432, allocations: 1.533 MB / 409.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2444, allocations: 0.9451 MB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.879e-05/0.2445, allocations: 0 / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.2446, allocations: 23.8 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.2448, allocations: 13.14 kB / 410.6 MB, free: 25.11 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.0003979/0.2452, allocations: 144.7 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.2454, allocations: 191.5 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.2455, allocations: 70.64 kB / 411 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.979e-05/0.2456, allocations: 68.27 kB / 411.1 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003795/0.246, allocations: 106.3 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.246, allocations: 12 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.2462, allocations: 109 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.322e-05/0.2463, allocations: 35.84 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.636e-05/0.2463, allocations: 109.2 kB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.2465, allocations: 196.1 kB / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2466, allocations: 4 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2466, allocations: 0 / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.2466, allocations: 0 / 411.7 MB, free: 24.09 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.0008787/0.2475, allocations: 0.5448 MB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.2475, allocations: 8.031 kB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.466e-05/0.2476, allocations: 54.73 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.2478, allocations: 40.58 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.248, allocations: 245.6 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.248, allocations: 16.23 kB / 412.6 MB, free: 23.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/0.248, allocations: 31.88 kB / 412.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004283/0.2485, allocations: 214.5 kB / 412.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2485, allocations: 0 / 412.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.2485, allocations: 8 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.2485, allocations: 4 kB / 412.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/0.2489, allocations: 176.2 kB / 413 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008192/0.2498, allocations: 0.5903 MB / 413.6 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009595/0.2507, allocations: 374.4 kB / 414 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.251, allocations: 145.3 kB / 414.1 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.2511, allocations: 8.047 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003477/0.2514, allocations: 182 kB / 414.3 MB, free: 21.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.2514, allocations: 4 kB / 414.3 MB, free: 21.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009083/0.2523, allocations: 413.2 kB / 414.7 MB, free: 20.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.2524, allocations: 55.41 kB / 414.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.2525, allocations: 215.6 kB / 415 MB, free: 20.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.2526, allocations: 45.69 kB / 415 MB, free: 20.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.118e-05/0.2526, allocations: 128.5 kB / 415.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.2527, allocations: 74.98 kB / 415.2 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.2527, allocations: 4 kB / 415.2 MB, free: 20.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.2528, allocations: 342.8 kB / 415.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.2531, allocations: 151.7 kB / 415.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003014/0.2534, allocations: 173.6 kB / 415.9 MB, free: 19.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005439/0.2539, allocations: 308.6 kB / 416.2 MB, free: 19.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2539, allocations: 0 / 416.2 MB, free: 19.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006819/0.2546, allocations: 405.1 kB / 416.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.2547, allocations: 10.8 kB / 416.6 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2547, allocations: 0 / 416.6 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.2547, allocations: 4 kB / 416.6 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.255, allocations: 83.83 kB / 416.6 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.255, allocations: 4 kB / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.2551, allocations: 43.72 kB / 416.7 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.2552, allocations: 11.94 kB / 416.7 MB, free: 18.83 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.0001109/0.2553, allocations: 153.7 kB / 416.9 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.2553, allocations: 23.66 kB / 416.9 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.762e-05/0.2554, allocations: 17.88 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2554, allocations: 3.938 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2554, allocations: 3.984 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2554, allocations: 4 kB / 416.9 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000961/0.2564, allocations: 0.6777 MB / 417.6 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2564, allocations: 0 / 417.6 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.2566, allocations: 55.89 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2566, allocations: 0 / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.2567, allocations: 7.984 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2567, allocations: 8 kB / 417.7 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2567, allocations: 0 / 417.7 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008857/0.2576, allocations: 0.5332 MB / 418.2 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.2576, allocations: 100.8 kB / 418.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.2577, allocations: 8.062 kB / 418.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.2578, allocations: 23.98 kB / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.2579, allocations: 15.97 kB / 418.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.2579, allocations: 8 kB / 418.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.969e-05/0.258, allocations: 155.2 kB / 418.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.258, allocations: 0 / 418.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003069/0.2583, allocations: 60 kB / 418.5 MB, free: 16.88 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.001338/0.2597, allocations: 1.171 MB / 419.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006451/0.2603, allocations: 328 kB / 420 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2603, allocations: 0 / 420 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.2606, allocations: 131.9 kB / 420.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.261, allocations: 31.7 kB / 420.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.2633, allocations: 1.621 MB / 421.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.2635, allocations: 0.7401 MB / 422.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.2636, allocations: 67.41 kB / 422.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2636, allocations: 0 / 422.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.295/3.558, allocations: 3.797 MB / 426.4 MB, free: 8.914 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseProperties_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-09 Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_UniformNoiseProperties.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/UniformNoiseProperties/UniformNoiseProperties.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches