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: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.NormalNoiseProperties,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoiseProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 192.1 kB / 17.38 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007902/0.0007903, allocations: 92.91 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002488/0.0002488, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2476, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.NormalNoiseProperties): time 0.00153/0.2492, allocations: 1.528 MB / 409.7 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.2506, allocations: 1.218 MB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.805e-05/0.2507, allocations: 5.875 kB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.78e-05/0.2508, allocations: 7.875 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.843e-05/0.2509, allocations: 19.84 kB / 410.9 MB, free: 24.89 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.0006368/0.2516, allocations: 240.9 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.2517, allocations: 191.6 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.2519, allocations: 69.06 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.999e-05/0.252, allocations: 75.62 kB / 411.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003938/0.2524, allocations: 100.6 kB / 411.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.2524, allocations: 8 kB / 411.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003536/0.2528, allocations: 293.5 kB / 411.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.479e-05/0.2528, allocations: 39.83 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.552e-05/0.2529, allocations: 105.2 kB / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.2531, allocations: 264.7 kB / 412.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2532, allocations: 0 / 412.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2532, allocations: 4 kB / 412.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2532, allocations: 0 / 412.3 MB, free: 23.54 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.0008675/0.254, allocations: 0.5546 MB / 412.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.2541, allocations: 15.97 kB / 412.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.587e-05/0.2542, allocations: 50.73 kB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.2543, allocations: 40.58 kB / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.2545, allocations: 245.6 kB / 413.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.2546, allocations: 16.23 kB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.844e-05/0.2546, allocations: 27.94 kB / 413.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.2551, allocations: 218.5 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2551, allocations: 0 / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.2551, allocations: 4 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2551, allocations: 4 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004281/0.2556, allocations: 180.2 kB / 413.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008522/0.2564, allocations: 0.5942 MB / 414.2 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.2574, allocations: 374.7 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002759/0.2577, allocations: 128.8 kB / 414.7 MB, free: 20.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.2578, allocations: 8 kB / 414.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003615/0.2581, allocations: 189.9 kB / 414.9 MB, free: 20.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.894e-06/0.2581, allocations: 4 kB / 414.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009015/0.259, allocations: 401.2 kB / 415.3 MB, free: 20.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.2591, allocations: 63.41 kB / 415.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.2592, allocations: 211.6 kB / 415.6 MB, free: 20.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.2593, allocations: 41.7 kB / 415.6 MB, free: 20 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.2593, allocations: 132.5 kB / 415.7 MB, free: 19.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.2594, allocations: 71.06 kB / 415.8 MB, free: 19.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.699e-05/0.2594, allocations: 15.94 kB / 415.8 MB, free: 19.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.569e-05/0.2595, allocations: 334.8 kB / 416.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.2598, allocations: 155.6 kB / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.2601, allocations: 177.6 kB / 416.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005712/0.2607, allocations: 296.7 kB / 416.8 MB, free: 18.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2607, allocations: 3.984 kB / 416.8 MB, free: 18.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006959/0.2614, allocations: 409 kB / 417.2 MB, free: 18.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2614, allocations: 7.984 kB / 417.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2614, allocations: 4 kB / 417.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2615, allocations: 0 / 417.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.2617, allocations: 79.89 kB / 417.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.2618, allocations: 4 kB / 417.2 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.2619, allocations: 47.72 kB / 417.3 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.2619, allocations: 15.94 kB / 417.3 MB, free: 18.25 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.0001084/0.2621, allocations: 145.7 kB / 417.5 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.2621, allocations: 23.66 kB / 417.5 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.608e-05/0.2622, allocations: 25.86 kB / 417.5 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2622, allocations: 4 kB / 417.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2622, allocations: 0 / 417.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2622, allocations: 0 / 417.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009502/0.2631, allocations: 0.6838 MB / 418.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2631, allocations: 0 / 418.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.2634, allocations: 47.97 kB / 418.2 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.2634, allocations: 3.984 kB / 418.2 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.2634, allocations: 8 kB / 418.2 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2634, allocations: 8 kB / 418.3 MB, free: 17.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2634, allocations: 0 / 418.3 MB, free: 17.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009098/0.2644, allocations: 0.545 MB / 418.8 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.253e-05/0.2644, allocations: 96.77 kB / 418.9 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.2644, allocations: 8.062 kB / 418.9 MB, free: 16.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.2646, allocations: 31.91 kB / 418.9 MB, free: 16.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.578e-05/0.2647, allocations: 19.97 kB / 419 MB, free: 16.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.2647, allocations: 7.984 kB / 419 MB, free: 16.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.826e-05/0.2648, allocations: 147.2 kB / 419.1 MB, free: 16.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2648, allocations: 0 / 419.1 MB, free: 16.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003613/0.2652, allocations: 95.98 kB / 419.2 MB, free: 16.26 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.001489/0.2667, allocations: 1.233 MB / 420.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006471/0.2673, allocations: 324.1 kB / 420.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2673, allocations: 0 / 420.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.2676, allocations: 135.9 kB / 420.9 MB, free: 14.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.2679, allocations: 30.12 kB / 420.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.2702, allocations: 1.638 MB / 422.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.2703, allocations: 0.7401 MB / 423.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.2705, allocations: 75.41 kB / 423.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2705, allocations: 0 / 423.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.489/3.76, allocations: 4.536 MB / 427.9 MB, free: 7.48 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoiseProperties_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-09 Modelica_trunk_cpp_Modelica_Blocks_Examples_Noise_NormalNoiseProperties.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.NormalNoiseProperties_res.mat","/var/lib/jenkins1/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