Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008538/0.0008539, allocations: 92.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009603/0.0009603, allocations: 204.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.7 MB / 246.8 MB, free: 11.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001954/0.0001955, allocations: 4 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07873/0.07894, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001363/0.08034, allocations: 1.089 MB / 360.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006643/0.08103, allocations: 356.6 kB / 360.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.354e-05/0.08107, allocations: 0 / 360.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.08109, allocations: 7.984 kB / 360.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.742e-05/0.08115, allocations: 3.938 kB / 360.8 MB, free: 11.74 MB / 302.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.0003703/0.08152, allocations: 63.88 kB / 360.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.259e-05/0.08157, allocations: 15.94 kB / 360.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.749e-05/0.08162, allocations: 4 kB / 360.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.263e-05/0.08165, allocations: 11.91 kB / 360.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.379e-05/0.08168, allocations: 11.94 kB / 360.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.08169, allocations: 0 / 360.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.08185, allocations: 79.91 kB / 361 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.08188, allocations: 4 kB / 361 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.08192, allocations: 37.64 kB / 361 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.08207, allocations: 87.75 kB / 361.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.08208, allocations: 0 / 361.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08209, allocations: 0 / 361.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.0821, allocations: 0 / 361.1 MB, free: 11.42 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003086/0.08241, allocations: 339.5 kB / 361.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.08245, allocations: 8.031 kB / 361.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.603e-05/0.0825, allocations: 35.03 kB / 361.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.281e-05/0.08253, allocations: 8.844 kB / 361.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.634e-05/0.08263, allocations: 168.3 kB / 361.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.08265, allocations: 4.375 kB / 361.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.739e-06/0.08267, allocations: 8.312 kB / 361.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.534e-05/0.08275, allocations: 38.25 kB / 361.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.08277, allocations: 3.938 kB / 361.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.08278, allocations: 0 / 361.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.08279, allocations: 3.938 kB / 361.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.053e-05/0.08281, allocations: 7.984 kB / 361.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003211/0.08314, allocations: 249 kB / 362 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.057e-05/0.0832, allocations: 30.5 kB / 362 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.205e-05/0.08323, allocations: 8.922 kB / 362 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.08324, allocations: 4 kB / 362 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.412e-05/0.08334, allocations: 55.34 kB / 362.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.08335, allocations: 0 / 362.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001464/0.08351, allocations: 65.58 kB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.08356, allocations: 51.41 kB / 362.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.08364, allocations: 105.8 kB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.08366, allocations: 25.7 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.704e-05/0.08371, allocations: 84.14 kB / 362.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.267e-05/0.08373, allocations: 11.84 kB / 362.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.512e-05/0.08376, allocations: 9.719 kB / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.08387, allocations: 318.8 kB / 362.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.54e-05/0.0839, allocations: 11.98 kB / 362.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.968e-05/0.08393, allocations: 21.97 kB / 362.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.475e-05/0.08398, allocations: 29.66 kB / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.08399, allocations: 0 / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.323e-05/0.08409, allocations: 61.84 kB / 362.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.08411, allocations: 4 kB / 362.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.08412, allocations: 128 / 362.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.08414, allocations: 0 / 362.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.135e-05/0.08421, allocations: 16.03 kB / 362.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.08422, allocations: 3.938 kB / 362.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.08424, allocations: 3.984 kB / 362.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.08426, allocations: 8 kB / 362.9 MB, free: 9.406 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 8.347e-05/0.08435, allocations: 118.8 kB / 363 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.359e-05/0.08437, allocations: 11.89 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.0844, allocations: 7.906 kB / 363 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.0844, allocations: 0 / 363 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.08441, allocations: 0 / 363 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.08442, allocations: 4 kB / 363 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.08466, allocations: 290.5 kB / 363.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.08467, allocations: 0 / 363.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.551e-05/0.08469, allocations: 4 kB / 363.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.0847, allocations: 3.984 kB / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.08471, allocations: 0 / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.08472, allocations: 0 / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.08472, allocations: 0 / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.08486, allocations: 155.5 kB / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.124e-05/0.0849, allocations: 81.02 kB / 363.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.08492, allocations: 0 / 363.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.833e-05/0.08496, allocations: 0 / 363.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.297e-05/0.08499, allocations: 7.984 kB / 363.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.085, allocations: 0 / 363.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.078e-05/0.08505, allocations: 87.22 kB / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.08505, allocations: 0 / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.08531, allocations: 27.98 kB / 363.7 MB, free: 8.516 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005841/0.0859, allocations: 0.7792 MB / 364.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.418e-05/0.08598, allocations: 19.98 kB / 364.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.08599, allocations: 0 / 364.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.226e-05/0.08602, allocations: 12 kB / 364.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.08622, allocations: 11.25 kB / 364.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008775/0.0871, allocations: 1.234 MB / 365.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.0873, allocations: 0.677 MB / 366.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.013e-05/0.08734, allocations: 4 kB / 366.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.593e-05/0.08737, allocations: 15.42 kB / 366.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08738, allocations: 0 / 366.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01026/0.09764, allocations: 1.686 MB / 368.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/0.09789, allocations: 239.9 kB / 368.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.74, allocations: 0 / 368.3 MB, free: 3.816 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches