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.001223/0.001223, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001147/0.001147, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.347/1.347, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 47.08 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1016, allocations: 49.44 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.002714/0.1044, allocations: 1.336 MB / 351.5 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008108/0.1052, allocations: 356.3 kB / 351.8 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.794e-05/0.1053, allocations: 0 / 351.8 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.243e-05/0.1054, allocations: 3.938 kB / 351.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.573e-05/0.1054, allocations: 0 / 351.8 MB, free: 2.641 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.0005428/0.106, allocations: 79.73 kB / 351.9 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.992e-05/0.106, allocations: 19.92 kB / 351.9 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.649e-05/0.1061, allocations: 7.984 kB / 351.9 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.574e-05/0.1061, allocations: 7.938 kB / 352 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.425e-05/0.1062, allocations: 7.938 kB / 352 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.1062, allocations: 4 kB / 352 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.1064, allocations: 87.84 kB / 352.1 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.1064, allocations: 8 kB / 352.1 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.1064, allocations: 7.922 kB / 352.1 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.1066, allocations: 79.83 kB / 352.1 MB, free: 2.336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1066, allocations: 0 / 352.1 MB, free: 2.336 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1066, allocations: 0 / 352.1 MB, free: 2.336 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1066, allocations: 0 / 352.1 MB, free: 2.336 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.0004052/0.107, allocations: 354 kB / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1071, allocations: 8.031 kB / 352.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.017e-05/0.1071, allocations: 31.03 kB / 352.5 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.1072, allocations: 12.84 kB / 352.5 MB, free: 1.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.1073, allocations: 176.2 kB / 352.7 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.1073, allocations: 4.312 kB / 352.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.1073, allocations: 8.312 kB / 352.7 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.025e-05/0.1074, allocations: 41.62 kB / 352.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.1074, allocations: 0 / 352.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-06/0.1074, allocations: 0 / 352.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.1074, allocations: 0 / 352.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.129e-05/0.1075, allocations: 4 kB / 352.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003484/0.1078, allocations: 260.9 kB / 353 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.356e-05/0.1079, allocations: 22.52 kB / 353 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.357e-05/0.1079, allocations: 12.92 kB / 353.1 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.1079, allocations: 0 / 353.1 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001405/0.1081, allocations: 55.39 kB / 353.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1081, allocations: 0 / 353.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001628/0.1083, allocations: 61.53 kB / 353.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.1083, allocations: 55.41 kB / 353.2 MB, free: 1.062 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.328e-05/0.1084, allocations: 105.8 kB / 353.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1084, allocations: 25.7 kB / 353.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.818e-05/0.1085, allocations: 84.14 kB / 353.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.205e-05/0.1085, allocations: 7.891 kB / 353.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.15e-05/0.1085, allocations: 25.7 kB / 353.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1087, allocations: 318.8 kB / 353.8 MB, free: 484 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.264e-05/0.1087, allocations: 8 kB / 353.8 MB, free: 476 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.869e-05/0.1087, allocations: 21.7 kB / 353.8 MB, free: 448 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.681e-05/0.1088, allocations: 33.83 kB / 353.8 MB, free: 408 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1088, allocations: 0 / 353.8 MB, free: 408 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.605e-05/0.1089, allocations: 53.69 kB / 353.9 MB, free: 348 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.1089, allocations: 8.031 kB / 353.9 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1089, allocations: 0 / 353.9 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1089, allocations: 4 kB / 353.9 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.94e-05/0.109, allocations: 11.92 kB / 353.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.109, allocations: 3.938 kB / 353.9 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.241e-05/0.109, allocations: 7.906 kB / 353.9 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.109, allocations: 0 / 353.9 MB, free: 312 kB / 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 9.095e-05/0.1091, allocations: 117.8 kB / 354 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.087e-05/0.1091, allocations: 0 / 354 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.509e-05/0.1092, allocations: 7.906 kB / 354.1 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1092, allocations: 4 kB / 354.1 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1092, allocations: 0 / 354.1 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1092, allocations: 3.938 kB / 354.1 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.1095, allocations: 290.9 kB / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1095, allocations: 0 / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.588e-05/0.1095, allocations: 8 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1095, allocations: 0 / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.1095, allocations: 0 / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1095, allocations: 0 / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1095, allocations: 7.938 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.1097, allocations: 139.5 kB / 354.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.35e-05/0.1098, allocations: 89 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.1098, allocations: 0 / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.827e-05/0.1098, allocations: 4 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.1099, allocations: 3.938 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.1099, allocations: 4 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.955e-05/0.1099, allocations: 87.27 kB / 354.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1099, allocations: 0 / 354.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.1102, allocations: 24 kB / 354.7 MB, free: 15.42 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.0006616/0.1109, allocations: 0.7781 MB / 355.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.742e-05/0.111, allocations: 19.94 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.111, allocations: 0 / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.535e-05/0.111, allocations: 11.98 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001985/0.1112, allocations: 7.938 kB / 355.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.1122, allocations: 1.231 MB / 356.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.1125, allocations: 0.6768 MB / 357.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.498e-05/0.1125, allocations: 7.938 kB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.817e-05/0.1126, allocations: 15.53 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1126, allocations: 3.938 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.1318, allocations: 1.893 MB / 359.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.656/7.788, allocations: 4.703 kB / 359.4 MB, free: 10.73 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches