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.001383/0.001383, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001802, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 63.2 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1176, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002719/0.1204, allocations: 1.344 MB / 358.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007648/0.1212, allocations: 348.6 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.141e-05/0.1212, allocations: 4 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.982e-05/0.1213, allocations: 3.938 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.312e-05/0.1214, allocations: 4 kB / 359.3 MB, free: 12.31 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.0006148/0.122, allocations: 83.67 kB / 359.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.935e-05/0.1221, allocations: 19.92 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.178e-05/0.1221, allocations: 4 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.888e-05/0.1222, allocations: 7.922 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.875e-05/0.1222, allocations: 11.94 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.1222, allocations: 0 / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.1225, allocations: 87.84 kB / 359.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.677e-05/0.1225, allocations: 4 kB / 359.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.038e-05/0.1225, allocations: 7.938 kB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.1228, allocations: 95.8 kB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1228, allocations: 0 / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1228, allocations: 0 / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1228, allocations: 0 / 359.6 MB, free: 12 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.0004546/0.1233, allocations: 339.5 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1233, allocations: 12.03 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.491e-05/0.1234, allocations: 31.03 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.1234, allocations: 8.828 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.1236, allocations: 172.3 kB / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.1236, allocations: 384 / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.1236, allocations: 12.31 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.1237, allocations: 38.25 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.1238, allocations: 3.938 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.1238, allocations: 0 / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1238, allocations: 0 / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.981e-05/0.1238, allocations: 4 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004376/0.1243, allocations: 253 kB / 360.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.161e-05/0.1243, allocations: 30.45 kB / 360.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.098e-05/0.1244, allocations: 20.89 kB / 360.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.1244, allocations: 0 / 360.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/0.1246, allocations: 51.41 kB / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.1246, allocations: 0 / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001912/0.1248, allocations: 57.53 kB / 360.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.1248, allocations: 59.41 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.635e-05/0.1249, allocations: 101.8 kB / 360.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.1249, allocations: 29.7 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.051e-05/0.125, allocations: 84.14 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.23e-05/0.125, allocations: 3.906 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.005e-05/0.1251, allocations: 21.7 kB / 360.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1252, allocations: 318.8 kB / 361.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.609e-05/0.1252, allocations: 4 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.348e-05/0.1253, allocations: 29.64 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.23e-05/0.1253, allocations: 29.59 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1253, allocations: 4 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001004/0.1254, allocations: 53.69 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.1255, allocations: 4 kB / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1255, allocations: 384 / 361.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1255, allocations: 7.938 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.127e-05/0.1256, allocations: 15.95 kB / 361.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.1256, allocations: 0 / 361.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.622e-05/0.1256, allocations: 11.91 kB / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.1256, allocations: 0 / 361.4 MB, free: 9.973 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 0.0001007/0.1257, allocations: 122.8 kB / 361.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.1257, allocations: 0 / 361.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.1258, allocations: 3.906 kB / 361.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1258, allocations: 0 / 361.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1258, allocations: 7.984 kB / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1258, allocations: 0 / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.126, allocations: 294.5 kB / 361.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.126, allocations: 0 / 361.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.748e-05/0.1261, allocations: 4 kB / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1261, allocations: 0 / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.842e-06/0.1261, allocations: 0 / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1261, allocations: 0 / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1261, allocations: 0 / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.1262, allocations: 151.5 kB / 361.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.434e-05/0.1263, allocations: 81.34 kB / 362 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.1263, allocations: 8 kB / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.501e-05/0.1263, allocations: 0 / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.839e-05/0.1264, allocations: 3.984 kB / 362 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.1264, allocations: 0 / 362 MB, free: 9.203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.1264, allocations: 91.2 kB / 362.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1264, allocations: 0 / 362.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.1267, allocations: 24 kB / 362.1 MB, free: 9.09 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.0007085/0.1274, allocations: 0.7823 MB / 362.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.1276, allocations: 27.95 kB / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1276, allocations: 0 / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.482e-05/0.1276, allocations: 8 kB / 363 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.1278, allocations: 4 kB / 363 MB, free: 8.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.1289, allocations: 1.223 MB / 364.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.1291, allocations: 0.6807 MB / 364.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.268e-05/0.1292, allocations: 7.938 kB / 364.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.636e-05/0.1292, allocations: 19.42 kB / 364.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1292, allocations: 0 / 364.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.1495, allocations: 1.89 MB / 366.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/7.973, allocations: 4.906 kB / 366.8 MB, free: 4.395 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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