Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.ImpureGenerator,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 107 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 43.27 kB / 300.2 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1165, allocations: 49.44 MB / 349.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.004258/0.1208, allocations: 1.409 MB / 351.1 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1219, allocations: 360.3 kB / 351.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.265e-05/0.122, allocations: 0 / 351.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.348e-05/0.122, allocations: 0 / 351.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.707e-05/0.1222, allocations: 3.938 kB / 351.4 MB, free: 2.895 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0007261/0.1229, allocations: 75.8 kB / 351.5 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.496e-05/0.123, allocations: 19.98 kB / 351.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.36e-05/0.1231, allocations: 0 / 351.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.78e-05/0.1231, allocations: 11.94 kB / 351.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.628e-05/0.1232, allocations: 11.94 kB / 351.6 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.1232, allocations: 0 / 351.6 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002769/0.1235, allocations: 83.84 kB / 351.6 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.516e-05/0.1235, allocations: 7.984 kB / 351.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.935e-05/0.1236, allocations: 15.92 kB / 351.7 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002752/0.1239, allocations: 79.83 kB / 351.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1239, allocations: 0 / 351.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1239, allocations: 0 / 351.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1239, allocations: 0 / 351.7 MB, free: 2.594 MB / 286.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.000615/0.1245, allocations: 349.9 kB / 352.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.1246, allocations: 8.031 kB / 352.1 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.141e-05/0.1247, allocations: 39.02 kB / 352.1 MB, free: 2.152 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.144e-05/0.1247, allocations: 4.844 kB / 352.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.1249, allocations: 172.3 kB / 352.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.1249, allocations: 4.375 kB / 352.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.125, allocations: 4.312 kB / 352.3 MB, free: 1.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.1251, allocations: 45.61 kB / 352.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1251, allocations: 0 / 352.4 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.1251, allocations: 4 kB / 352.4 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1252, allocations: 4 kB / 352.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.355e-05/0.1252, allocations: 4 kB / 352.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005515/0.1258, allocations: 256.8 kB / 352.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.624e-05/0.1258, allocations: 26.58 kB / 352.6 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.615e-05/0.1259, allocations: 16.91 kB / 352.7 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.1259, allocations: 4 kB / 352.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/0.1262, allocations: 47.41 kB / 352.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.673e-06/0.1262, allocations: 0 / 352.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002249/0.1264, allocations: 61.53 kB / 352.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.1265, allocations: 51.41 kB / 352.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.1266, allocations: 105.8 kB / 352.9 MB, free: 1.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1266, allocations: 25.7 kB / 352.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.815e-05/0.1267, allocations: 88.14 kB / 353 MB, free: 1.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.1267, allocations: 11.89 kB / 353 MB, free: 1.078 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.817e-05/0.1268, allocations: 21.66 kB / 353.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1269, allocations: 314.8 kB / 353.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.524e-05/0.127, allocations: 11.98 kB / 353.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.567e-05/0.127, allocations: 25.72 kB / 353.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.703e-05/0.1271, allocations: 25.66 kB / 353.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1271, allocations: 4 kB / 353.4 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001263/0.1272, allocations: 53.69 kB / 353.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1273, allocations: 8 kB / 353.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1273, allocations: 0 / 353.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.1273, allocations: 7.922 kB / 353.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.048e-05/0.1274, allocations: 8 kB / 353.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.1274, allocations: 0 / 353.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.489e-05/0.1274, allocations: 3.938 kB / 353.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.1275, allocations: 4 kB / 353.5 MB, free: 0.5664 MB / 286.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.0001382/0.1276, allocations: 117.8 kB / 353.6 MB, free: 452 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.911e-05/0.1276, allocations: 7.906 kB / 353.6 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.632e-05/0.1277, allocations: 7.891 kB / 353.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1277, allocations: 0 / 353.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1277, allocations: 0 / 353.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1277, allocations: 384 / 353.7 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.128, allocations: 290.7 kB / 353.9 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.128, allocations: 4 kB / 353.9 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.03e-05/0.1281, allocations: 4 kB / 353.9 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.1281, allocations: 8 kB / 354 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.1281, allocations: 0 / 354 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1281, allocations: 3.984 kB / 354 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1281, allocations: 3.938 kB / 354 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001684/0.1283, allocations: 139.5 kB / 354.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.83e-05/0.1284, allocations: 81.02 kB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.1284, allocations: 0 / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.093e-05/0.1285, allocations: 4 kB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.601e-05/0.1285, allocations: 11.94 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.1285, allocations: 7.922 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.105e-05/0.1286, allocations: 79.28 kB / 354.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1286, allocations: 0 / 354.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003835/0.129, allocations: 28 kB / 354.3 MB, free: 15.68 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.0009408/0.1299, allocations: 0.776 MB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002219/0.1302, allocations: 35.86 kB / 355.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1302, allocations: 0 / 355.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.973e-05/0.1302, allocations: 8.062 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.1305, allocations: 11.94 kB / 355.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.132, allocations: 1.231 MB / 356.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.1324, allocations: 0.6768 MB / 357 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.96e-05/0.1325, allocations: 7.984 kB / 357.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.358e-05/0.1325, allocations: 15.44 kB / 357.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1326, allocations: 4 kB / 357.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01592/0.1485, allocations: 1.801 MB / 358.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002753/0.1488, allocations: 247 kB / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.073, allocations: 0 / 359.1 MB, free: 10.85 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_ImpureGenerator.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches